Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Celery - Distributed task queue system
Search
Mushfiq-E Mahabub
November 28, 2014
Programming
0
62
Celery - Distributed task queue system
Mushfiq-E Mahabub
November 28, 2014
Tweet
Share
More Decks by Mushfiq-E Mahabub
See All by Mushfiq-E Mahabub
Kanban as a Software Development Process
mushfiq
0
160
Kick Start your freelance career.
mushfiq
0
100
Other Decks in Programming
See All in Programming
Smarter Angular mit Transformers.js & Prompt API
christianliebel
PRO
1
100
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
170
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
1.1k
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
210
PHPで TLSのプロトコルを実装してみる
higaki_program
0
520
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
180
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
180
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
280
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
260
おれのAgentic Coding 2026/03
tsukasagr
1
110
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
1.2k
存在論的プログラミング: 時間と存在を記述する
koriym
5
540
Featured
See All Featured
Visualization
eitanlees
150
17k
Facilitating Awesome Meetings
lara
57
6.8k
Agile that works and the tools we love
rasmusluckow
331
21k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
170
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
850
Darren the Foodie - Storyboard
khoart
PRO
3
3k
Accessibility Awareness
sabderemane
0
86
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
300
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Transcript
Celery Distributed task queue system 1
Outline ! • What ? • Why ? • When
? • Who? • How ? 2
What? “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.” Official Celery Docs. ! “Asynchronous task management system” 3
What? • Tasks • Worker • Broker 4
Tasks • Tasks can be created by any callable •
do something (?) when a worker receives the message • do something (?) when it is called 5
Worker • message consumer • execute tasks 6
Broker • message storage • executes task • store the
result (optional) 7
Architecture 8
When? • For background processing • Distributed computing • Eg.
Bulk email sending • Eg. Content aggregation • Eg. Long running data processing jobs • Eg. Periodic task 9
Who uses? 10
Who else? 11
Hello World? 12
Real World? 13
Common Issues • How to lock? • How to have
results? • Pythonic Cron? • How to distribute? • How to execute dependent task? 14
How to lock? 15
How to save result? 16
Cron (Pythonic)? 17
Distribute • start workers in separate machine • use (same/a
new one) message queue 18
Dependent tasks 19
Demo? 20
Image Sources • http://thenewstack.io/wp-content/uploads/2014/06/ redis.png • https://shiori2309.files.wordpress.com/2014/06/ what-not-to-say-to-mixed-race-4.gif • http://3.bp.blogspot.com/-9pKvE5OCXeM/
UtTnAGXrylI/AAAAAAAAQ_0/MlXbQnQqpAk/ s1600/rabbit_header_logo.jpg 21