Broker-Based Communication in Microservices: Pa...

Broker-Based Communication in Microservices: Patterns, Reliability, and Scalability

This presentation explores broker-based communication patterns in microservices architecture, focusing on how asynchronous messaging enables loosely coupled, scalable, and resilient distributed systems.

The presentation covers message brokers, producers and consumers, message types, point-to-point communication, publish/subscribe patterns, message buffering, event-driven architecture (EDA), and event-driven workflows. It also addresses message delivery guarantees, exactly-once processing, dead letter queues (DLQs), idempotency, and popular messaging technologies such as RabbitMQ, Apache Kafka, Amazon SQS, and Azure Service Bus.

The presentation is part of the life michael series of meetups on Microservices Design Patterns and is intended for software developers, software architects, and software engineering students.

The emphasis is on understanding the fundamental architectural concepts and mental models independently of specific technologies and implementation details.

For more information, visit https://lifemichael.com.

life michael

December 01, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

29 slides
  1. Broker-Based Communication in Haim Michael Founder & CEO @ Zindell

    Technologies www.zindell.com | blog.lifemichael.com life michael Microservices
  2. My name is Haim Michael. I live in Tel Aviv,

    and I am the CEO & founder of Zindell Technologies, Ltd. My passion lies in teaching and lifelong learning. I have been into programming since my childhood. I have extensive experience with Java (30+ yrs), JavaScript (30+ yrs), C++ (30+ yrs), C# (20+ yrs), TypeScript (12+ yrs), Python (15+ yrs), PHP (20+ yrs), Scala (16+ yrs), and Kotlin (12+ yrs). Teaching advanced computer science topics at the university. blog.lifemichael.com Tel-Aviv, Israel
  3. XtremeJ XtremePython XtremeAI xtremej.dev xtremepython.dev meetup.com/lifemichael xtremeai.dev More Than 18000

    Followers https://linkedin.com/in/lifemichael Kiro Ambassador XtremeJS xtremejs.dev More Than 2800 Video Clips youtube.com/lifemichael blog.lifemichael.com Conferences, Meetups & Community
  4. Jacado - More Than 200 Games for Mobile Telephones –

    Years 2001- 2008 Zindell - Building AI Aligned Companies – Years 2026 - … nana.events prompo.ai zindrex.com ngager.pro jacado.games blog.lifemichael.com Passion to Build
  5. What is a Message Broker? The message broker is middleware

    that facilitates communication between independent software components by receiving, routing, buffering, and delivering messages. It acts as an intermediary between message producers and message consumers.
  6. The Producer The producer is a software component that creates

    messages and publishes them to a messaging infrastructure.
  7. Types of Messages • Command - a request to perform

    a specific operation. • Event - a notification that something has already happened. • Document - a message containing information intended for another component. • Request - a message requesting information or processing. • Reply - a message containing the result of a previous request.
  8. Decoupling Microservices Broker-based communication can reduce several types of coupling:

    • Temporal coupling - services need not operate at the same time. • Location coupling - producers need not know consumer network addresses. • Implementation coupling - services can use different technologies. • Cardinality coupling - publishers need not know how many consumers exist.
  9. Point to Point Communication Messages are sent to a queue

    and typically processed by a single logical consumer. Multiple consumer instances can compete for messages from the same queue.
  10. Publish Subscribe Communication In the publish/subscribe pattern, producers publish messages

    to topics without knowing which consumers are interested. Multiple independent subscribers can receive the same published message.
  11. Topics & Subscriptions A topic represents a logical communication channel

    through which messages are distributed. Consumers subscribe to topics that contain messages relevant to their functionality.
  12. Messages Buffering Message brokers can temporarily store messages when consumers

    are unavailable or unable to process incoming messages immediately. Message buffering helps accommodate differences between message production rates and message consumption rates.
  13. Improved Availability Broker-based communication allows producers to continue operating even

    when consumers are temporarily unavailable, provided that the messaging infrastructure remains available. Messages can be stored and processed when the consumers become available again.
  14. Event Driven Architecture Event-Driven Architecture (EDA) is an architectural approach

    in which software components communicate by producing and consuming events.
  15. Event Driven Workflow Complex business processes can be implemented through

    sequences of events exchanged between microservices.
  16. At Most-Once Delivery The messaging system delivers a message no

    more than once. If a failure occurs during delivery, the message may be lost because the system does not retry uncertain deliveries.
  17. At Least Once Delivery The messaging system retries delivery when

    it cannot confirm that a message was successfully received or processed. If the consumer processes a message but its acknowledgment is lost, the broker may deliver the same message again.
  18. Exactly Once Processing The system ensures that each message produces

    its intended effect exactly once, even if the message is delivered multiple times. This can be achieved through unique message identifiers and transactional mechanisms.
  19. Dead Letter Queues A Dead Letter Queue (DLQ) is a

    queue used for storing messages that cannot be successfully processed or delivered. Dead letter queues allow problematic messages to be investigated without continuously interrupting normal message processing.
  20. Idempotency When executing an operation multiple times and getting the

    same intended effect as executing it once, then we can say that the operation is idempotent. The idempotency is highly important in messaging systems that provide at-least-once delivery guarantees. Consumers should be designed to handle duplicate messages safely.
  21. Takeaways Broker-based communication provides an effective mechanism for implementing asynchronous

    communication between microservices. The use of brokers promotes loose coupling, scalability, availability and eventdriven workflows. Focus on understanding the mental models. The AI tools you are using will handle the implementation.
  22. Q&A nana.events Thanks for attending my talk :) nana.events WhatsApp

    +972.54.6655837 prompo.ai [email protected] https://blog.lifemichael.com prompo.ai ngager.pro life michael zindrex.com XtremeJ xtremej.dev life michael XtremeJS xtremejs.dev XtremePython xtremepython.dev XtremeAI xtremeai.dev lifemichael.com meetup.com/lifemichael Monolith vs Microservices

More Decks by life michael

Other Decks in Technology