DjangoCon US 2017 - Tasks: you gotta know how to run 'em... by Filipe Ximenes

DjangoCon US 2017 - Tasks: you gotta know how to run 'em, you gotta know how to safe' em by Filipe Ximenes

Web developers often find themselves in situations where server processing takes longer than a user would accept. One very common situation is when sending emails. Although simple and relatively quick task, it requires the communication with an external service. In this situation, itโ€™s not possible to foresee how long that service will take to answer. Not to mention the many unexpected situations that can arise, such as errors and bugs. The solution to this problem is to delegate long lasting tasks while responding quickly to the user. This is the point where we need async tasks. There are some tools available that can assist in this job. In this talk, you will learn about the concepts, caveats and best practices for when developing async tasks. For this, I will use Pythonโ€™s most popular tool for the task: Celery.

Rundown:

Setting the context

The architecture: Brokers Workers

Use cases: External calls Long computations Data caching

Tools available

Celery: Callbacks Canvas Logging Retrying Monitoring Tests and debugging

This talk was presented at: https://2017.djangocon.us/talks/tasks-you-gotta-know-how-to-run-em-you-gotta-know-how-to-safe-em/

LINKS: Follow Filipe Ximenes ๐Ÿ‘‡ On Twitter: https://twitter.com/xima Official homepage: https://www.vinta.com.br/blog/author/filipeximenes/

Follow DjangCon US ๐Ÿ‘‡ https://twitter.com/djangocon

Follow DEFNA ๐Ÿ‘‡ https://twitter.com/defnado https://www.defna.org/

Date Added: September 19, 2024

Watch Video