2024-04-03 –, Room 111
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 set 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 removing performance issues 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:
- Django vs. other faster frameworks: reviewing architectural differences.
- Request-Response Flow: Identifying elements that can be easily omitted.
- Forms and Data validation: Balancing flexibility and performance.
- The quickest methods for data serialization.
- Debunking myths about async-await productivity.
- Fire and Forget: FTL Client-Server Communication.
- Improving Time to First Byte (TTFB). Less known Responce classes.
- Reviewing other utilities to expedite our project.
- Q&A.
By comparing performance before and after, every developer attending this talk can decide which advice to implement in their own projects.
Python/Django Senior Software Engineer, Solution Architect and Tech Speaker.
I start my career as a programmer specializing in embedded solutions in 1997, and grow to the role of Chief Technology Officer in 2023. Through many successful projects, I gained a robust understanding of various software development paradigms. After more than 10 years as a code mentor, I finally earned the title 'Super Mentor in Engineering' in December 2023.