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

Approaches to service communication

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

Contents


More Related Answers

  • communication with service worker
  • Explain the way to implement service discovery in microservices architecture.
  • What is the role of service meshes in the communication and coordination of microservices ?
  • What is the preferred type of communication between Microservices?
  • How to handle service governance and lifecycle management in a Microservices architecture?
  • Client-to-microservice communication
  • Communication in SOA
  • Service:
  • What is a Service?
  • Communication among internal services
  • Interact with the Service
  • Getting Started with Communication
  • Service:
  • What is Service?

  • Approaches to service communication

    0

    In the microservice architecture pattern, a distributed system runs on several different machines, and each service is a component or process of an enterprise application. The services in these multiple machines must handle requests from the clients of the enterprise application. Sometimes, all of the services involved collaborate to handle such requests; the services interact using an inter-service communication mechanism.

    However, in the case of a monolithic application, all components are part of the same application and run on the same machine. This means that the monolithic application doesn't require an inter-service communication mechanism. Have a look at the following diagram, which uses the Bookshop application from before and compares the two communication methods:

    As you can see in the preceding diagram, a monolithic application has all of its components combined as a single artifact and deployed to a single machine. One component calls another using language-level method calls. However, in the microservice architecture, all components of the application run on multiple machines as a process or service and they use inter-process communication to interact with each other.

    In the microservice architecture, there are two approaches to inter-process communication, which are as follows:

    The synchronous communication style

    The asynchronous communication style

    Popularity 3/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.