Multiple service instances per host

Using this pattern, we provide one or more physical or virtual host and run multiple instances of microservices on each. This is the traditional approach to deploying applications. Each microservice instance runs on a well-known port on one or more hosts.

The following diagram shows the structure of this pattern:

The multiple service instances per host pattern has benefits and drawbacks. One of the key benefits is that it uses resources efficiently. Multiple instances of the service share the server and its operating system. Another benefit of this pattern is the relatively rapid deployment of a microservice ...

Get Microservice Patterns and Best Practices 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.