Sie sind auf Seite 1von 12

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?

Django (django-celery) Pylons (celery-pylons) Flask (Flask-Celery) Python

CELERY

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

celeryproject.org IRC #celery mailing list celery-users

WHAT'S NEXT?

@gchandrasa github.com/gchandrasa

THANK YOU

Das könnte Ihnen auch gefallen