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
5.1k
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
320
Haystack + ElasticSearch
gchandrasa
2
2.3k
Other Decks in Programming
See All in Programming
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
880
as(型アサーション)を書く前にできること
marokanatani
10
2.7k
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
220
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
930
ヤプリ新卒SREの オンボーディング
masaki12
0
130
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
CSC509 Lecture 11
javiergs
PRO
0
180
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
190
Better Code Design in PHP
afilina
PRO
0
130
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
1
290
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Producing Creativity
orderedlist
PRO
341
39k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Optimizing for Happiness
mojombo
376
70k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Designing the Hi-DPI Web
ddemaree
280
34k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
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