Throttling Feature for Ellar
Setup with Module
python
from ellar.common import Module
from ellar_throttler import ThrottlerModule
Module(modules=[
ThrottlerModule.setup(ttl=60, limit=10)
])
class ApplicationModule:
pass
Apply to Controller
python
project_name/controller.py
from ellar.common import Controller, guards
from ellar_throttler import throttle, ThrottlerGuard
Controller()
class AppController:
guards(ThrottlerGuard)
throttle(limit=5, ttl=30)
def normal(self):
pass
**Full Changelog**: https://github.com/eadwinCode/ellar-throttler/commits/0.0.2