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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Mushfiq-E Mahabub
November 28, 2014
Programming
64
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Celery - Distributed task queue system
Mushfiq-E Mahabub
November 28, 2014
More Decks by Mushfiq-E Mahabub
See All by Mushfiq-E Mahabub
Kanban as a Software Development Process
mushfiq
0
170
Kick Start your freelance career.
mushfiq
0
110
Other Decks in Programming
See All in Programming
AI駆動開発を妨げる技術的負債の解消アプローチ / ai-refactoring-approach
minodriven
17
9.3k
【やさしく解説 設計編・中級 #1】一つの車に、運転手は一人 ~ある倉庫システムの事例から~
panda728
PRO
0
190
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
340
アルゴリズムは何を圧縮しているのか ─ Haskell から育った「圧縮代数」というメンタルモデル
naoya
16
3.6k
Prismを使った型安全な暗号化_関数型まつり2026
_fhhmm
0
150
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
610
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
230
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
130
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
210
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
350
Claude Team Plan導入・ガイド
tk3fftk
0
220
継続モナドとリアクティブプログラミング
yukikurage
3
630
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1033
470k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
340
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
510
RailsConf 2023
tenderlove
30
1.5k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
New Earth Scene 8
popppiees
3
2.4k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
230
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
Documentation Writing (for coders)
carmenintech
77
5.4k
Test your architecture with Archunit
thirion
1
2.3k
Ethics towards AI in product and experience design
skipperchong
2
330
The Mindset for Success: Future Career Progression
greggifford
PRO
0
430
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