Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

A single instance of a microservice per host

Pragya Keshap answered on February 18, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • What is the benefit of Single Service per Host model in Microservices?
  • How can clients find microservices and their instances?
  • Multiple instances of microservices per host
  • A single instance of a microservice per VM
  • A single instance of microservice per container

  • A single instance of a microservice per host

    0

    According to this approach, we deploy a single instance of a microservice on its own single host. A service instance is deployed to its own host and each service instance runs independently. This approach has two specific patterns:

    A single instance of a microservice per VM

    A single instance of a microservice per container

    A host can be a physical machine, a virtual machine, or a container such as a Docker container. The following diagram demonstrates this approach of deploying microservices:

    As you can see in the preceding diagram, there is a number of hosts, each of which holds several instances of services. Each service instance has been deployed on its own host machine, that is either a VM or a container. Let's now discuss the benefits and drawbacks of this approach.

    Benefits

    This approach has the following benefits:

    It provides complete isolation between instances of microservices

    We can easily correct a defective service without affecting other services

    There is no resource utilization conflict between instances of microservices because each service runs on a separate host using its own resources; in other words, there are no resources shared between instances of microservices

    We can assign a specific amount of resources to a microservice instance on demand

    We can easily monitor, manage, and redeploy each service instance

    Drawbacks

    However, this approach has the following drawback:

    It has less efficient resource utilization compared to with multiple instances of microservices per host

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 18 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.