@@ -50,31 +50,6 @@ Other types of jobs for task queues include
5050* scheduling periodic jobs such as batch processes
5151
5252
53- ## Task queues learning checklist
54- <i class =" fa fa-check-square-o " ></i >
55- Pick a slow function in your project that is called during an HTTP request.
56-
57- <i class =" fa fa-check-square-o " ></i >
58- Determine if you can precompute the results on a fixed interval instead of
59- during the HTTP request. If so, create a separate function you can call
60- from elsewhere then store the precomputed value in the database.
61-
62- <i class =" fa fa-check-square-o " ></i >
63- Read the Celery documentation and the links in the resources section below
64- to understand how the project works.
65-
66- <i class =" fa fa-check-square-o " ></i >
67- Install a message broker such as RabbitMQ or Redis and then add Celery to your
68- project. Configure Celery to work with the installed message broker.
69-
70- <i class =" fa fa-check-square-o " ></i >
71- Use Celery to invoke the function from step one on a regular basis.
72-
73- <i class =" fa fa-check-square-o " ></i >
74- Have the HTTP request function use the precomputed value instead of the
75- slow running code it originally relied upon.
76-
77-
7853## Task queue projects
7954The defacto standard Python task queue is Celery. The other task queue
8055projects that arise tend to come from the perspective that Celery is overly
@@ -113,7 +88,32 @@ when scaling out a large deployment of distributed task queues.
11388 RabbitMQ installed and configured. This service is an option if you are
11489 using RabbitMQ and do not want to maintain RabbitMQ installations on your
11590 own servers.
116-
91+
92+
93+ ## Task queues learning checklist
94+ <i class =" fa fa-check-square-o " ></i >
95+ Pick a slow function in your project that is called during an HTTP request.
96+
97+ <i class =" fa fa-check-square-o " ></i >
98+ Determine if you can precompute the results on a fixed interval instead of
99+ during the HTTP request. If so, create a separate function you can call
100+ from elsewhere then store the precomputed value in the database.
101+
102+ <i class =" fa fa-check-square-o " ></i >
103+ Read the Celery documentation and the links in the resources section below
104+ to understand how the project works.
105+
106+ <i class =" fa fa-check-square-o " ></i >
107+ Install a message broker such as RabbitMQ or Redis and then add Celery to your
108+ project. Configure Celery to work with the installed message broker.
109+
110+ <i class =" fa fa-check-square-o " ></i >
111+ Use Celery to invoke the function from step one on a regular basis.
112+
113+ <i class =" fa fa-check-square-o " ></i >
114+ Have the HTTP request function use the precomputed value instead of the
115+ slow running code it originally relied upon.
116+
117117
118118## Task queue resources
119119* [ Distributing work without Celery] ( http://justcramer.com/2012/05/04/distributing-work-without-celery/ )
0 commit comments