Skip to content

Commit 36789a9

Browse files
committed
moving the location of learning checklist for task queues
1 parent a85236b commit 36789a9

File tree

3 files changed

+45
-45
lines changed

3 files changed

+45
-45
lines changed

feeds/all.atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-05-10T14:50:02Z</updated></feed>
2+
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-05-10T18:08:45Z</updated></feed>

source/content/pages/07-performance/0705-task-queues.markdown

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -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
7954
The defacto standard Python task queue is Celery. The other task queue
8055
projects 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/)

task-queues.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,6 @@ <h2>Why are tasks queues necessary?</h2>
7676
<p>scheduling periodic jobs such as batch processes</p>
7777
</li>
7878
</ul>
79-
<h2>Task queues learning checklist</h2>
80-
<p><i class="fa fa-check-square-o"></i>
81-
Pick a slow function in your project that is called during an HTTP request.</p>
82-
<p><i class="fa fa-check-square-o"></i>
83-
Determine if you can precompute the results on a fixed interval instead of
84-
during the HTTP request. If so, create a separate function you can call
85-
from elsewhere then store the precomputed value in the database.</p>
86-
<p><i class="fa fa-check-square-o"></i>
87-
Read the Celery documentation and the links in the resources section below
88-
to understand how the project works.</p>
89-
<p><i class="fa fa-check-square-o"></i>
90-
Install a message broker such as RabbitMQ or Redis and then add Celery to your
91-
project. Configure Celery to work with the installed message broker.</p>
92-
<p><i class="fa fa-check-square-o"></i>
93-
Use Celery to invoke the function from step one on a regular basis.</p>
94-
<p><i class="fa fa-check-square-o"></i>
95-
Have the HTTP request function use the precomputed value instead of the
96-
slow running code it originally relied upon.</p>
9779
<h2>Task queue projects</h2>
9880
<p>The defacto standard Python task queue is Celery. The other task queue
9981
projects that arise tend to come from the perspective that Celery is overly
@@ -140,6 +122,24 @@ <h2>Hosted message and task queue services</h2>
140122
own servers.</p>
141123
</li>
142124
</ul>
125+
<h2>Task queues learning checklist</h2>
126+
<p><i class="fa fa-check-square-o"></i>
127+
Pick a slow function in your project that is called during an HTTP request.</p>
128+
<p><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.</p>
132+
<p><i class="fa fa-check-square-o"></i>
133+
Read the Celery documentation and the links in the resources section below
134+
to understand how the project works.</p>
135+
<p><i class="fa fa-check-square-o"></i>
136+
Install a message broker such as RabbitMQ or Redis and then add Celery to your
137+
project. Configure Celery to work with the installed message broker.</p>
138+
<p><i class="fa fa-check-square-o"></i>
139+
Use Celery to invoke the function from step one on a regular basis.</p>
140+
<p><i class="fa fa-check-square-o"></i>
141+
Have the HTTP request function use the precomputed value instead of the
142+
slow running code it originally relied upon.</p>
143143
<h2>Task queue resources</h2>
144144
<ul>
145145
<li>

0 commit comments

Comments
 (0)