Limiting user access with Throttling policies: Django Rest Framework classes

Aseem Yadav (~aseemydv)


Description:

In this talk I'll be presenting about how imposing constraints on different parts of API is done using throttling policies of DRF. For example, limiting user to access API only once per hour or 100 times or more per day using burst throttling and sustained throttling rates.

Whether it’d be an authenticated user or anonymous user, throttling policies let you restrict user access to services that are resource intensive.

Content which will be covered in this talk are as follows:

  • DRF classy views
  • Viewsets and Routers
  • Throttling Classes
    • AnonRate Throttle
    • UserRate Throttle
    • ScopedRate Throttle

Prerequisites:

  • Basic python 3 & OOP concepts
  • HTTP methods
  • Django Models
  • Request & Response
    • Status Codes

Content URLs:

https://www.django-rest-framework.org/api-guide/throttling/

https://www.youtube.com/watch?v=1Z33iKFY97M

Speaker Info:

Aseem Yadav:

Aseem is currently working at A10 Networks, Bengaluru. He has 5 years of experience in Python/Django, which includes building RESTful APIs to be used in Load Balancing architecture by ADCs (application delivery controllers). Nowadays, he is experimenting with Flutter SDK and uses django-rest-framework to build APIs for mobile apps.

Speaker Links:

Github: https://github.com/aseemydv

Linkedin: https://in.linkedin.com/in/aseemy

StackExchange: https://stackexchange.com/users/5376896/aseem-yadav?tab=accounts

Id: 1292
Section: Web development
Type: Talks
Target Audience: Intermediate
Last Updated: