question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--jitter option to simulate variable latency

See original GitHub issue

json-server currently offers a --delay setting, which is very helpful in making a simulated-API respond not-quite-instantly.

I suggest an additional feature --jitter N, which adds an additional random delay of 0-N milliseconds for each request. This would further instead the realism of the simulated API, and make it possible to demonstrate more client-side behaviors an ideas.

If this idea is appealing to @typicode , I will be happy to implement it and make a PR.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:8
  • Comments:7

github_iconTop GitHub Comments

2reactions
kylecordescommented, Feb 25, 2020

This is a great contribution, I really hope it gets merged.

1reaction
arnaudNYCcommented, Feb 15, 2020

I published the fork with the --jitter option to npmjs: $ npm install ad-json-server -D $ npm install -g ad-json-server

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Latency and Latency Jitter Simulation Framework with OSVR
Latency jitter, i.e. variance in the pattern of latency, prevent coping mechanisms as users ... This leads to the physics simulation working with...
Read more >
Solved: Simulate jitter in network - Cisco Community
Solved: Hello Team, Can you recommend some software which can work as a bridge between point A and point B and introduce variable...
Read more >
Jitter vs Latency: Discover the Causes, the Differences & the ...
Jitter, in more detail, is the variation in the delay times of data packets being received. If we were to consider an ideal...
Read more >
How to simulate jitter - Connection Emulator Help - SoftPerfect
Jitter is essentially a variation in latency (packet delay). When you configure a random latency between 100 and 200 ms, you will also...
Read more >
Network Latency and Packet Loss Emulation - Calomel.org
Loss emulation is a standardized method to simulate a bad network ... path with variable packets loss, latency, re-ordering and jitter.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found