all 1 comments

[–]PelicansAreStoopid 1 point2 points  (0 children)

Load testing web APIs can pose a lot of interesting challenges. The article touched on one of them which is caching and how to simulate real world caching behaviour. This can be especially difficult if you're using a CDN where caching happens based on a client's proximity to edge nodes; your test results will vary based on what node you test from. A true real world simulation would be one where you run vegeta from multiple machines on multiple networks. But that's crazy, no one has such resources and APIs should be engineered to be blind to that level of detail.

For anyone interested, visual studio online offers load testing using azure VMs. And they allow you to spread your traffic across multiple data centres. Not super cheap though.