Can sending a large number of requests to the server cause any performance issues on the server?
-
I have created a web API. If someone tried to loop through thousands of requests to the server (Programmatically), would it lower the performance of the web API?
-
I have created a web API. If someone tried to loop through thousands of requests to the server (Programmatically), would it lower the performance of the web API?
Almost certainly. But only you can answer that - we don't have access to your server or your code. Most APIs implement some form of rate limiting - if a single API key issues too many requests within a given window, the API responds with a
429
status code, and sets a header telling the caller how long they need to wait before trying again. This won't prevent malicious or misconfigured clients from trying to overwhelm your service, but it should reduce the amount of strain they're able to put on your server. If you're really worried, then you'll need to sign up for a DDoS protection service.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer