Skip to content

aykutyaman/getting-started-with-celery-and-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Celery and Redis


This repo is a demonstration of the use case for celery in python.

Agenda:

  • when to use Celery
  • Why to use Celery
  • A simple celery program
  • Having a slow script and making it faster using celery

To run the program without celery

python3 fetch-without-celery.py

Make sure you have redis installed and you are able to run redis-server

Make sure you have celery installed

Start three terminals

  • On the first terminal, run redis using redis-server
  • On the second terminal, run celery worker using celery worker -A fetch-with-celery -l info -c 5
  • On the third, run your script, python3 fetch-with-celery.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages