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

Redis is for application state

Redis is most useful when it is used to keep track of a temporary application state. A perfect example of this is a session. It is only needed when a user is logged in. We store it in Redis, so that it can be easily retrieved and accessible to multiple processes on multiple machines. Redis helps us follow the rule of scalability of never keeping application state locally. Any data that will be needed in multiple requests should be kept in Redis.

Another thing to keep in mind about Redis is that it is only for short term data. Anything that is needed to be stored for a long time should be in a database. Your user table, every time a user logs in, and all tracking information are things that you would keep in a database ...

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