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

Communication among internal services

Sumit Rawal answered on May 21, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Service-to-Service Communications between Backend Internal Microservices
  • What is the role of service meshes in the communication and coordination of microservices ?
  • To enable external communication with the web servers
  • Inter-Service Communication
  • Approaches to service communication
  • Client-to-microservice communication

  • Communication among internal services

    0

    There are two types of communication patterns that internal services use to communicate: synchronous vs asynchronous. Both are explained below.

    Synchronous communication

    Synchronous communication like HTTP works well for small-scale systems, but its shortcomings become obvious as the scale increases. It creates a long request and response cycle that depends on many services. The drawbacks of this approach are:

    Low performance. If any one of the services in the chain doesn’t perform well, the whole system is impacted.

    Poor failure isolation. If PSPs or any other services fail, the client will no longer receive a response.

    Tight coupling. The request sender needs to know the recipient.

    Hard to scale. Without using a queue to act as a buffer, it’s not easy to scale the system to support a sudden increase in traffic.

    Asynchronous communication

    Asynchronous communication can be divided into two categories:

    Single receiver: each request (message) is processed by one receiver or service. It’s usually implemented via a shared message queue. The message queue can have multiple subscribers, but once a message is processed, it gets removed from the queue. Let’s take a look at a concrete example. In Figure 9, service A and service B both subscribe to a shared message queue. When m1 and m2 are consumed by service A and service B respectively, both messages are removed from the queue as shown in Figure 10. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 21 2023
    Sumit Rawal
    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.