Django FTL: Resolving bottlenecks on the path to high performance

danilovmy


1

Vote

Description:

Raw Django doesn't take the first places when comparing the performance of Python web frameworks. However, it can be pretty fast if we identify the bottlenecks and find ways to avoid them. Comparing performance and implementation complexity before and after gives us an understanding of which features should be implemented and what can be skipped.


The Django framework offers a beautiful collection of diverse tools that are easy to understand, set up, and start working with. However, after some time, appearing disadvantages of the framework's features may increase the complexity of the development process and fatally reduce project performance. While the new version of Django successfully improves the developers effictivity, the task to improving performance requires a good understanding of how Django works.

In this talk, I will review the most significant performance-reducing factors in Django and provide examples of how to avoid them.

Overview of the talk from a 10,000-feet view:

  1. Django vs. other faster frameworks: reviewing architectural differences.
  2. Request-Response Flow: Identifying elements that can be easily omitted.
  3. Forms and Data validation: Balancing flexibility and performance.
  4. The quickest methods for data serialization.
  5. Debunking myths about async-await productivity.
  6. Fire and Forget: FTL Client-Server Communication.
  7. Improving Time to First Byte (TTFB). Less known Responce classes.
  8. Reviewing other utilities to expedite our project.
  9. Q&A.

By comparing performance before and after, every developer attending this talk can decide which advice to implement in their own projects.

Prerequisites:

Knowlege in Django

Video URL:

https://youtu.be/XnR22nkH7GQ

Content URLs:

Slides

Repository

Speaker Info:

Python/Django Senior Engineer, Solution Architect, DevRel and Tech Speaker.

I start my career as an embedded systems programmer in 1997, and in recent years have grown to CTO. Through many successful projects, I gained a robust understanding of various software development paradigms. In last 10 years as a code tutor and mentor , I 've got three times the Award 'Super Mentor in Engineering'

Speaker Links:

linkedin

repository

Section: Python in Web and Applications
Type: Talk
Target Audience: Intermediate
Last Updated: