Build a NodeJS microservice and deploy it to Docker


Build a NodeJS microservice and deploy it to Docker

Build a NodeJS microservice and deploy it to Docker

Stack

We’ll use a simple NodeJS service with a MongoDB for our backend.

Architecture

Microservice Architecture

Microservices

Api Gateway

An API Gateway is a server that is the single entry point into the system. It is similar to the Facade pattern from object oriented design.

The API Gateway encapsulates the internal system architecture and provides an API that is tailored to each client. It might have other responsibilities such as authentication, monitoring, load balancing, caching, request shaping and management, and static response handling.

Microservice Api Gateway

Blog posts