Chapter 4Connecting Robust Microservices

Any network is more than the sum of its parts—it’s the sum of its parts and all of the interactions between parts.

This chapter focuses on those interactions. Specifically, you’ll learn different ways that Node.js microservices communicate.

Connecting these services will expose you to the following aspects of Node.js development:

Node.js Core

Node.js is single-threaded, but you can still take advantage of multiple cores or processors by running more processes. In this chapter, you’ll use Node.js’s cluster module to create and manage a pool of Node.js workers.

Patterns

Microservice endpoints can have many roles and communicate in many ways. We’ll explore powerful messaging patterns like publish/subscribe, ...

Get Node.js 8 the Right Way now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.