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
61
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
Python札幌 LT資料
t3tra
7
1.1k
はじめてのカスタムエージェント【GitHub Copilot Agent Mode編】
satoshi256kbyte
0
140
Grafana:建立系統全知視角的捷徑
blueswen
0
270
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
150
PC-6001でPSG曲を鳴らすまでを全部NetBSD上の Makefile に押し込んでみた / osc2025hiroshima
tsutsui
0
200
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
470
これならできる!個人開発のすゝめ
tinykitten
PRO
0
140
Java 25, Nuevas características
czelabueno
0
130
愛される翻訳の秘訣
kishikawakatsumi
3
370
脳の「省エネモード」をデバッグする ~System 1(直感)と System 2(論理)の切り替え~
panda728
PRO
0
130
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
260
AIの誤りが許されない業務システムにおいて“信頼されるAI” を目指す / building-trusted-ai-systems
yuya4
6
4.1k
Featured
See All Featured
New Earth Scene 8
popppiees
0
1.3k
Automating Front-end Workflow
addyosmani
1371
200k
Embracing the Ebb and Flow
colly
88
4.9k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
280
Designing for Performance
lara
610
70k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.9k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
100
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.2k
A Modern Web Designer's Workflow
chriscoyier
698
190k
What's in a price? How to price your products and services
michaelherold
246
13k
Unsuck your backbone
ammeep
671
58k
Skip the Path - Find Your Career Trail
mkilby
0
29
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