Foundations of Python Network Programming

(WallPaper) #1
Chapter 8 ■ CaChes and Message Queues

149

Many programmers use message queues behind a friendlier API, such as the Celery project, which is popular
in the Django community. It can also use Redis as a back end. While not covered in this chapter, Redis deserves
your attention. It is like Memcached in maintaining keys and values, it is like a database in that it can persist them to
storage, and it is like a message queue in that a FIFO is one of the possible values that it can support.
If any of these patterns sound like they address a problem you have, then search the Python Package Index for
good leads on Python libraries that might implement them. The state of the art in the Python community with respect
to these general tools and techniques will continue to develop while this book is in print, and it can be explored
through blogs, tweets, and especially Stack Overflow since there is a strong culture there of keeping answers up-to-date
as solutions age and new ones emerge.
Having examined these simple and specific technologies built atop IP/TCP, you will turn your attention over the
next three chapters to the protocol that has become so dominant that many people speak as though it is synonymous
with the Internet itself: the HTTP protocol that implements the World Wide Web.

Free download pdf