Deploying microservices
In this section, we'll consider several variations on microservices, looking at a few common ways in which developers are using microservices with Node. We'll start with Seneca, a microservices framework for Node. Then, we'll move on to developing cloud-based microservices using Amazon Lambda. From there, we will attempt to model a Kubernetes cluster out of Docker containers, exploring modern containerized microservice orchestration.
Microservices with Seneca
Seneca is a Node-based microservice construction kit that helps you organize your code into distinct actions triggered by patterns. Seneca applications are composed of services that can accept JSON messages and optionally return some JSON. Services register an interest in messages with certain characteristics. For example, a service might run whenever a JSON message displaying the { cmd: "doSomething" }
pattern is broadcast.
To start, let’s create a service that responds to three patterns, one pattern returning...