FastAPI-Celery-Flower-Docker async example — part1
7 min readJul 16, 2023
Introduction
This is part1 in the series. This part talks briefly about what Celery is and when to use it. It covers the overall architecture of the example and the installation of required components.
Here’s a brief outline of the article parts:
- Introduction and installation of required components (this article).
- A code walkthrough of configuration and tools components.
- A code walkthrough of API components.
- A code walkthrough of main components testing.
- How to run the development environment.
- How to create and run the Docker environment.
A brief description of Celery
So what is Celery? It’s described as a distributed task queue. Hmm, then what does that mean? According to themselves:
Task queues are used as a mechanism to distribute work across threads or machines.
A task queue’s input is a unit of work called a task. Dedicated worker processes constantly monitor task queues for new work to perform.