Replies: 1 comment 2 replies
-
Django Ninja throttling copied NinjaExtra Throttling implementation but with different usage. So what you can do with Django Ninja throttling is also applicable to NinjaExtra throttling. They are all the same. Its just your choice on which you want to use. I plan to deprecate throttling in NinjaExtra since the same codebase now exist in Django Ninja. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I'm thinking of a way to improve the throttling feature. It would be good if this feature could also be based on user characteristics. In many APIs we often want to have different rate limits for different types of clients. Actually, I don't think this is possible with Django Ninja Extra.
I see that in Django Ninja, we can create a custom throttling class, this is perhaps an option for me.
Also, is it possible to use the decorator feature (at the bottom of the page) of Django Ninja? This will allow me to use a third-party package such as django-ratelimit.
Thanks in advance for the answers.
Beta Was this translation helpful? Give feedback.
All reactions