kernelsauce / turbo

Turbo is a framework built for LuaJIT 2 to simplify the task of building fast and scalable network applications. It uses a event-driven, non-blocking, no thread design to deliver excellent performance and minimal footprint to high-load applications while also providing excellent support for embedded uses.
http://turbo.readthedocs.io/
Apache License 2.0
525 stars 84 forks source link

Rate limit the concurrent request #355

Open plmanik opened 4 years ago

plmanik commented 4 years ago

Do we have any option to limit number of request to turbo like 10 or 20 at same time or allow only 3 request from single ip? If there is no in-built option, do we have any external module to achieve this?

Thanks, Mani

kernelsauce commented 3 years ago

I would use nginx as a proxy to do this kind of limiting. It is possible with turbo to acheive the same, but it is probably better to offload this to some kind of traffic controller.

plmanik commented 3 years ago

Hi, Thanks for reply. But when we give continuous request vmrss, cpu usage increases, so only we are asking to achieve through turbo. Please tell us the option for achieve in turbo itself

Thanks, Mani