liveBook · Manning

Messages and channels model

As explained in Microservices Patterns, Second Edition

A messaging model that represents communication in terms of messages exchanged through abstract channels independently of the underlying messaging system.

The messages and channels model designs communication independently of the underlying messaging system. Messages travel through abstract channels, which can later map to specific broker-based infrastructure. section 8.4

Choose messaging technology from each channel’s operational requirements:

  • Ordering requirements determine whether a technology can preserve the required message sequence. section 8.4
  • Delivery guarantees influence the infrastructure selected for reliable message handling. section 8.4
  • Transaction outbox coordinates a database update with message publication through a database transaction and a separate publisher. section 8.4
  • Idempotent consumers track processed messages and discard duplicates when handlers are not naturally idempotent. section 8.4
  • Competing consumers process messages concurrently to increase throughput while preserving ordering. section 8.4

How Microservices Patterns, Second Edition covers it

How deep it goes
Defines the abstraction and connects it to broker selection, ordering, delivery guarantees, and three supporting messaging patterns.
Examples
Uses ordering and delivery guarantees, transaction outbox, duplicate tracking, and concurrent consumers as design examples.
What it assumes
Assumes familiarity with microservice interprocess communication and message brokers.
What you can do after
Apply it to design broker-independent messaging and select infrastructure per channel requirements.
How it connects
Connects messaging channels with message brokers, transaction outbox, idempotent consumers, and competing consumers.

This explainer was generated by Manning's knowledge graph from the text of Microservices Patterns, Second Edition. The section links point to the parts of the book it draws on.