@@ -90,31 +90,6 @@ when scaling out a large deployment of distributed task queues.
9090 own servers.
9191
9292
93- ## Task queue 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-
117-
11893## Task queue resources
11994* [ Distributing work without Celery] ( http://justcramer.com/2012/05/04/distributing-work-without-celery/ )
12095 provides a scenario in which Celery and RabbitMQ are not the right tool
@@ -146,4 +121,29 @@ slow running code it originally relied upon.
146121 why you shouldn't use your database as one.
147122
148123
124+ ## Task queue learning checklist
125+ <i class =" fa fa-check-square-o " ></i >
126+ Pick a slow function in your project that is called during an HTTP request.
127+
128+ <i class =" fa fa-check-square-o " ></i >
129+ Determine if you can precompute the results on a fixed interval instead of
130+ during the HTTP request. If so, create a separate function you can call
131+ from elsewhere then store the precomputed value in the database.
132+
133+ <i class =" fa fa-check-square-o " ></i >
134+ Read the Celery documentation and the links in the resources section below
135+ to understand how the project works.
136+
137+ <i class =" fa fa-check-square-o " ></i >
138+ Install a message broker such as RabbitMQ or Redis and then add Celery to your
139+ project. Configure Celery to work with the installed message broker.
140+
141+ <i class =" fa fa-check-square-o " ></i >
142+ Use Celery to invoke the function from step one on a regular basis.
143+
144+ <i class =" fa fa-check-square-o " ></i >
145+ Have the HTTP request function use the precomputed value instead of the
146+ slow running code it originally relied upon.
147+
148+
149149### What's next after task queues?
0 commit comments