You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-res...@googlegroups.com
Has anyone tried using throttling across multiple Django server instances?
I have multiple Django web servers running DRF behind a load balancer that auto-scale. It wasn't clear to me from the docs how I'd go about setting a global throttling policy (e.g. if a user is only permitted 1 request at a time, how can this be enforced across the cluster?).
I suspect that I may have to implement a custom throttle which backs onto some sort of store that supports atomic counters (e.g. redis). If someone knows of any resources, examples or modules that already do this it would be a massive help.
Ganesh Swami
unread,
Feb 6, 2014, 1:47:33 PM2/6/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-res...@googlegroups.com
Hi David,
Yes, you're right. You'll have to have shared state in an external store.
You can use either memcached or redis as both provide atomic counters
with time expiry.
cheers,
Ganesh
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-fram...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.