--jitter option to simulate variable latency
See original GitHub issuejson-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:
- Created 7 years ago
- Reactions:8
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is a great contribution, I really hope it gets merged.
I published the fork with the --jitter option to npmjs:
$ npm install ad-json-server -D
$ npm install -g ad-json-server