3 ms·
The solution is to optimize your code and have rate limiting
by rubatuga 5y ago
The solution is to optimize your code and have rate limiting
- crtasm 5y agoWhen your network bandwidth is overloaded with traffic that isn't going to make a difference.
- TYMorningCoffee 5y agoWhat if the request rate exceeds the capacity of the network, before the rate limiter is even invoked?
- stevenicr 5y agoWhile those things may be good and me be helpful to a degree - the solution is generally to move your dns and pipes to the internet to a provider that can handle a larger spike in traffic - things like cloudflare and specialty ddos hosting center may be necessary - unless it's a short and cheap ddos - like a 30 minute attack - then just wait it out. A decent ddos attack, even ones that you can buy for 20 dollars on the clearnet, is going to overwhelm the most optimized code base since it will disrupt most of the average data centers, regardless of the rate limiting that you try to make happen on the box itself. at least in my experiences and from the things I was forced to learn on the fly for some time.