Work Queue Patterns
Work Queue Patterns
$5.00
Minimum price
$5.00
Suggested price
Work Queue Patterns

Last updated on 2015-10-07

About the Book

Most applications have some type of work that can be performed independently from the client request cycle. You can defer these types of work into a memory queue or, to survive crashes, a persisted queue. A distributed queue separates the work producer from the work consumer, allowing you to perform work on a different process.

This book will show you how to create and consume work in a local or distributed environment using Node.

About the Author

Pedro Teixeira
Pedro Teixeira

Geek, programmer, freelancer, and entrepreneur. Author of some Node.js modules, the Node Tuts screencast show, and the Hands-on Node.js e-book and overall fervent proclaimer of the Node.js creed.

Wrote a book for Wiley on Node.js.

Partner of YLD.

Organizer of the Lisbon JavaScript Conference.

Bundles that include this book

Module Patterns
Flow Control Patterns
Work Queue Patterns
Networking Patterns
Configuration Patterns
6 Books
$29.00
Suggested Price
$16.00
Bundle Price

Table of Contents

  • 1. The source code
  • 2. Introducing Queues
    • 2.1 Isolate
    • 2.2 Retry
    • 2.3 Distribute and scale
    • 2.4 Survive crashes
  • 3. The Simplest Case: an In-Memory Work Queue
  • 4. A Persisted Local Work Queue
  • 5. A Distributed Work Queue
    • 5.1 Retries and idempotency
    • 5.2 The work producer
    • 5.3 Installing some dependencies
  • 6. Using RabbitMQ and AMQP
    • 6.1 Installing RabbitMQ
    • 6.2 Installing your dependencies
    • 6.3 Connect
    • 6.4 Produce messages
    • 6.5 Consume messages
  • 7. Summary

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub