Pattern routing

Throughout this chapter we are using restify as our tool to create REST-based interfaces to our microservices. However, it should be emphasized that this is just one approach to creating point to point connections to services.

Let's explore an innovative alternative in the form of a persistent TCP connection, combined with pattern based routing.

Streams This section employs advanced techniques and stream utility libraries. Without a fundamental understanding of streams and the streams ecosystem the following code and its explanation may prove difficult to comprehend. See Chapter 4, Using Streams, for background reading.

We'll start by copying the micro folder from the main recipe to a folder which we'll call micro-pattern-routing ...

Get Node Cookbook - Third Edition 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.