System Design Fundamentals

0% completed

Messaging patterns

In distributed systems, messaging patterns define how components communicate via asynchronous messages. Understanding these patterns is crucial for designing scalable and reliable systems. Below, we cover five key messaging patterns, each with its core idea, characteristics, and practical examples.

1. Point-to-Point (Direct Messaging)

In a point-to-point pattern, each message is delivered to exactly one consumer. A producer sends messages into a queue (or similar channel), and one of the consumers reading from that queue will receive each message

.....

.....

.....

Like the course? Get enrolled and start learning!
A

Aniket Joshi

· 2 years ago

should this "

  • Coupling: The pattern can introduce tighter coupling between producers and consumers since the consumer must wait for a reply"

be changed to "producer must wait for a reply" ?

Show 1 reply
Sid D

Sid D

· a year ago

By the time a consumer picks a message from the queue, processes it and fails due to message corruption, the message is already out of the queue service isn’t it? Then how can the queue service move the message to the DLQ when the message is now with the consumer service? Does the consumer explicitly put it back into the queueing service?

Please provide more detailed examples of when, who and how messages are moved to DLQ

Aman Singh

Aman Singh

· 2 years ago

Under Request- Reply messaging pattern. it's written

Latency: Request-reply messaging can introduce latency as the consumer must wait for the reply to arrive.

Should it instead be producer must wait for the reply to arrive?

Show 1 reply
T

Tee Sal

· 2 years ago

"An order processing system where an order is placed by a customer producer"

Show 1 reply