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
An Introduction to Celery
Search
Gilang Chandrasa
January 26, 2012
Programming
8
5k
An Introduction to Celery
Python Meetup @Detik
Gilang Chandrasa
January 26, 2012
Tweet
Share
More Decks by Gilang Chandrasa
See All by Gilang Chandrasa
Docker + Django
gchandrasa
2
310
Haystack + ElasticSearch
gchandrasa
2
2.2k
Other Decks in Programming
See All in Programming
Ruby Function Composition
bkuhlmann
1
330
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
370
Ruby Pattern Matching
bkuhlmann
0
930
FigmaとPHPで作る1ミリたりとも表示崩れしない最強の帳票印刷ソリューション
ttskch
43
19k
Anthropic Cookbook のおすすめレシピ
schroneko
7
920
Random\Randomizer クラスで日常のあれこれを解決しよう! / Random\Randomizer class solves familiar trouble
cocoeyes02
0
230
ゆるい個人開発のススメ
kuroppe1819
10
990
ONE WEDGE_company_guide
1wedge_one
0
470
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
270
今、知っておきたい! 生成AIエージェントの世界
elith
3
350
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
230
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
73
8.2k
The Invisible Customer
myddelton
114
12k
Imperfection Machines: The Place of Print at Facebook
scottboms
260
12k
The Cost Of JavaScript in 2023
addyosmani
16
3.9k
Debugging Ruby Performance
tmm1
70
11k
Bash Introduction
62gerente
604
210k
Clear Off the Table
cherdarchuk
84
310k
Music & Morning Musume
bryan
41
5.6k
Code Review Best Practice
trishagee
55
15k
KATA
mclloyd
15
12k
Teambox: Starting and Learning
jrom
128
8.4k
Typedesign – Prime Four
hannesfritz
36
2.1k
Transcript
An Introduction to Celery
WHAT IS CELERY? Celery is an asynchronous task queue/job queue
WORKING WITH CELERY MEANS : NON BLOCKING · SCALE ·
SPEED
USE CASES IMAGE PROCESSING SENDING 1K EMAILS INTERACTIONS WITH EXTERNAL
API PERIODIC TASKS (instead of cron)
HOW DOES IT WORK?
USER REQUEST APPLICATION TASKS MESSAGE QUEUE CELERY WORKERS STORE RESULTS
WHAT DO I NEED?
CELERY Django (django-celery) Pylons (celery-pylons) Flask (Flask-Celery) Python
MESSAGE QUEUE RABBITMQ REDIS BEANSTALK MONGODB COUCHDB
CELERY (pip install celery) RABBITMQ (http://www.rabbitmq.com/download.html) EXAMPLE from celery.task import
task @task def add(x, y): return x + y
WHAT'S NEXT? celeryproject.org IRC #celery mailing list celery-users
THANK YOU @gchandrasa github.com/gchandrasa