Python Celery Tutorial — Distributed Task Queue explained for beginners to Professionals(Part-1)

Chaitanya Volkaji
Analytics Vidhya
Published in
5 min readSep 3, 2020

--

Hello, I have used Celery extensively in my projects at my company. In this series, I’ll demystify everything about Python Celery, it’s applications, my experiences and experiments with Celery in detail.

What is Celery? (Let’s get it’s definition from Official website first.)

Celery is a simple, flexible, and reliable distributed system to process vast amounts of messages, while providing operations with the tools required to maintain such a system.

It’s a task queue with focus on real-time processing, while also supporting task scheduling.

Source : https://docs.celeryproject.org/en/stable/

Above definition sounds so complicated right? Don’t worry. I will simplify the definition with a real world example.

Assume you are at your favorite Restaurant for a dinner with your girlfriend.

  1. A waiter has come to you and has taken your order.
  2. Waiter went to Kitchen and informed your order to cooks.
  3. Cooks has so many orders in Queue. They were processing one by one from Queue.
  4. Your order has come from the Queue. A Cook prepared the dishes and confirmed the waiter.

--

--

Chaitanya Volkaji
Analytics Vidhya

Into math🔋, stats📊, tech🧑‍💻 and movies 🎞️.