FastAPI-Celery-Flower-Docker async example — part1

Anders Wiklund
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:

  1. Introduction and installation of required components (this article).
  2. A code walkthrough of configuration and tools components.
  3. A code walkthrough of API components.
  4. A code walkthrough of main components testing.
  5. How to run the development environment.
  6. 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.

--

--