Struggling with slow I/O in your Django apps? Want to maximize server resources? This talk explores asynchronous Python and its impact on Django.
Let's clarify parallel vs. concurrent programming, and demystify Python's concurrency model, focusing on coroutines and the event loop. Learn how asyncio enables efficient, non-blocking code, handling concurrent requests without thread/process overhead and how everything is integrated into the Django framework.
At least knowing how to code in Python. Knowledge of parallel or concurrent programming might help, but this will still be explained in the beginning.
Are you struggling with slow I/O operations in your Django applications? Do you want to unlock the full potential of your server's resources? This talk dives into the world of asynchronous programming in Python and explores how it can work for your Django applications!
Let's clarify parallel vs. concurrent programming, and demystify Python's concurrency model, focusing on coroutines and the event loop. Learn how asyncio enables efficient, non-blocking code, handling concurrent requests without thread/process overhead and how everything is integrated into the Django framework.
The core of the talk will focus on practical applications within Django. We'll explore what parts of a Django application can benefit most from asynchronous execution, including handling external API calls, database interactions, and long-running tasks. We'll demonstrate how to integrate asyncio into your Django views and other components, showcasing real-world examples and best practices.
Finally, we'll discuss the benefits of running Django in asynchronous mode. We'll cover performance improvements, increased throughput, and better resource utilization, demonstrating how asynchronous Django can lead to more responsive and scalable web applications.
Join this talk to discover the magic of coroutines and the event loop and learn how to bring the power of asynchronous programming to your Django applications.
Antonis is a Software Engineer at Platform.sh, a Docker Captain and a Python lover and developer who helps teams embrace containers and improve their development workflow.