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
Basic Architectures
denyspoltorak
0
660
Data-Centric Kaggle
isax1015
2
760
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
590
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
組織で育むオブザーバビリティ
ryota_hnk
0
170
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
690
CSC307 Lecture 09
javiergs
PRO
1
830
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
4
250
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
400
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
420
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
230
Statistics for Hackers
jakevdp
799
230k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
3.9k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
52
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
72
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
110
Technical Leadership for Architectural Decision Making
baasie
1
240
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