After you’ve integrated Celery and refactored your Django code, sending feedback in your app is such a great experience that you don’t want to stop sending positive feedback messages!
Handling long-running or compute-expensive tasks asynchronously in the background with Celery, instead of bogging down your web app with tasks that it wasn’t intended to handle, can breathe fresh air into a slow-running application.
Celery aims to provide a quick interface for sending messages to its distributed task queue. In this example, you experienced how little you might need to change to use Celery in your Django app.
In this video course, you learned how to:
- Recognize effective use cases for Celery
- Differentiate between Celery beat and Celery workers
- Integrate Celery and Redis in a Django project
- Set up asynchronous tasks that run independently of your Django app
- Refactor Django code to run a task with Celery instead
danilolimadutra on March 24, 2024
For anyone who want to run this project in docker, follow the files.
Dockerfile
docker-compose.yaml
requirements.txt