I started to get to know about workers as I was researching on how to protect my rest api service from DDoS attacks.
Read an article that
“Powerful DDOS protection. Cloudflare has one of the best DDOS protections available for small-businesses included in the price.”"
I was wondering if I can move my authentication code to workers so that I can avoid these attacks at cloud flare workers level.
I’m not still sure as some other threads still mention that we are still charged for the worker invocations during a DDoS attack which actually nullifies the whole effort.
Also $5/1M requests Rate Limiting service offered separately on cloud flare will be too expensive for us as we scale up.
Initially I wanted to go with Kong as an API Gateway but after seeing that post I felt like workers come with double edge - DDoS protection + Rate Limiting(with in workers using memory, IP based ) options.
Can someone suggest Is it ideal to rely on workers to handle ddos attacks + rate limiting for the rest api service?