I have a get api that gives data pertaining to a store based on the storeid passed in the api endpoint. The implementation is such that if more than 50 hits in a second, the api is throttled and a message ought to be displayed as 'Throttled, wait 7 seconds' wth http code 503
When I simulate with 100 hits or even 200 hits via JMeter the spi gives 200 every tine and there's no throttling but when I simulate the same via shell the api gets throttled properly most 50 responses and the aforementioned throttled message is displayed.
What could be the reason?