Installing Celery

Celery is a set of tools that allows us to easily work with multiple services, with some syntactic sugar and annotations in the code. It is a way of launching services that see them as tasks. First, we will need to install Celery with the following command:

pip install celery

The most important concept that Celery handles are tasks. Celery offers the ability to execute them in real time, or to be scheduled synchronously or asynchronously through the use of processes or system events.

The broker is the channel that's used to transport messages from one service to another. In this case, we are going to use a message queue. Celery can use other services to send and receive messages. These messages are usually the tasks or the results of the tasks. In this case, we will use Redis since it is very easy to install and configure for related tasks such as caching and publisher/subscriber models.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset