Microservices

Messaging Patterns for Microservices

Microservice architecture is all about communication. In Microservices, communication can be done in 2 ways. Sync and Async Communication. We need to use the right messaging patterns to design efficient microservices.

Asynchronous messaging is widely used, and provides many benefits, but also brings challenges such as the ordering of messages, poison message management, idempotency, and more.

Below are the Messaging patterns.

PatternSummary
Asynchronous Request-ReplyDecouple backend processing from a frontend host, where backend processing needs to be asynchronous, but the frontend still needs a clear response.
Claim CheckSplit a large message into a claim check and a payload to avoid overwhelming a message bus.
ChoreographyHave each component of the system participate in the decision-making process about the workflow of a business transaction, instead of relying on a central point of control.
Competing ConsumersEnable multiple concurrent consumers to process messages received on the same messaging channel.
Pipes and FiltersBreak down a task that performs complex processing into a series of separate elements that can be reused.
Priority QueuePrioritize requests sent to services so that requests with a higher priority are received and processed more quickly than those with a lower priority.
Publisher-SubscriberEnable an application to announce events to multiple interested consumers asynchronously, without coupling the senders to the receivers.
Queue-Based Load LevelingUse a queue that acts as a buffer between a task and a service that it invokes in order to smooth intermittent heavy loads.
Scheduler Agent SupervisorCoordinate a set of actions across a distributed set of services and other remote resources.
Sequential ConvoyProcess a set of related messages in a defined order, without blocking processing of other groups of messages.

Please refer below link: https://skolaparthi.com/communication-between-microservices/

Loading

One thought on “Messaging Patterns for Microservices

Comments are closed.

Translate ยป