Skip to Content
Building Scalable Apps with Redis and Node.js
book

Building Scalable Apps with Redis and Node.js

by Joshua Johanan
September 2014
Intermediate to advanced
316 pages
7h 6m
English
Packt Publishing
Content preview from Building Scalable Apps with Redis and Node.js

Sending messages back

Our first application that we built in this chapter is very simple. It had one queue, where the publisher did not care what happened to the job and the worker did not have to let the publisher know the job was done. We will cover one more example of message queues. We are now going to create an application where the publisher needs to know when the worker is done. A great example of this is charging a credit card. We are not going to build out an entire charging application, but we will mimic one. Let's build it! Create another folder named rabbit_second, and create a package.json file with the following code (remember to run npm install in order to get all the packages):

{ "dependencies": { "amqp": "0.2.0", "socket.io": "1.0.6" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reactive Programming with Node.js

Reactive Programming with Node.js

Fernando Doglio
Node: Up and Running

Node: Up and Running

Tom Hughes-Croucher, Mike Wilson
Learn TypeScript 3 by Building Web Applications

Learn TypeScript 3 by Building Web Applications

Sebastien Dubois, Alexis Georges

Publisher Resources

ISBN: 9781783984480Supplemental Content