Skip to content

Messaging — learning path ​

From "why asynchronous at all" to stream processing with watermarks, through the three brokers this site treats as first-class (RabbitMQ, Kafka, Redis Streams). Every pattern page has a Broker differences section that shows how the same idea is implemented on each broker, in Go and in Laravel. The completeness checklist behind this section is the Enterprise Integration Patterns catalogue (Hohpe & Woolf): every one of its 65 patterns is covered by a chapter below.

How to use ​

  1. Chapters 01–08 are the vocabulary; read them first even if you already run a broker.
  2. The three broker deep dives (RabbitMQ, Kafka, Redis Streams) are references; the comparison chapter is the decision guide.
  3. Reliability patterns (outbox, saga, DLQ, retry) are where production incidents come from; do their labs.
  4. Finish with Self-check on every chapter.

Legend ​

BadgeMeaning
Must-knowasked in almost every interview; you meet it at work constantly
Importantfrequent; expected at senior level
Good to knowextra depth that sets you apart
WIP / Todoshown next to a chapter only while it is still being written

How to read this page. Groups are in reading order and each one builds on the previous; short on time, take the Must-know chapters of every group first. The last column says in one line what the chapter gives you. Every chapter ends with a Self-check: questions & answers block (open/close all, filter by level); all questions are collected in the Interview Q&A hub.

Chapters ​

33 chapters · 33 complete

Fundamentals ​

ChapterLevelWhat you learn
Messaging FundamentalsMust-knowMessaging replaces "call and wait" with "hand it to a broker and move on": the sender and the receiver stop needing each other at the same moment, and in exchange you accept duplicates…
Integration Styles & ChannelsImportantThere are four ways to make separate applications share data (files, one database, remote calls, messages), and once you pick messages you still have to design the channels: which kinds exist…
Delivery GuaranteesMust-knowA delivery guarantee is a promise about what happens when something fails between two steps; every real system errs towards loss (at-most-once) or towards duplicates (at-least-once)…
Message AcknowledgmentMust-knowAn acknowledgment is the moment the broker stops being responsible for a message; where you put it decides whether a crash loses the message or repeats it.
Ordering & PartitioningMust-knowOrder in messaging exists only inside one lane (a queue, a partition, a stream); you choose a key that sends related messages to the same lane and accept that one slow message blocks the lane behind it.
Idempotent Consumers & the Inbox PatternMust-knowEvery broker that never loses a message is willing to deliver it twice, so the consumer must make the second delivery harmless: a stable key, a unique constraint…
Message Design & Schema EvolutionImportantA message is a public API with invisible consumers that deploy on their own schedule; its envelope, its payload shape and its evolution rules decide whether you can change it without a flag day.
Message TransformationGood to knowSystems almost never agree on the shape of a message, so integration needs small, single-purpose steps that change its shape (Translator, Normalizer, Mapper), its content (Enricher…

Brokers ​

ChapterLevelWhat you learn
RabbitMQ in DepthMust-knowRabbitMQ is an Erlang broker in which producers publish to exchanges, bindings copy messages into queues, and the queue type you pick (classic, quorum or stream) decides how safe…
Kafka in DepthMust-knowKafka is a replicated, partitioned, append-only log: producers append, consumers keep a bookmark, and nothing is deleted because somebody read it.
Redis Streams & Pub/SubImportantRedis gives you three messaging primitives with three different contracts: Pub/Sub (broadcast, nothing stored), lists (a queue that forgets on pop) and Streams (a log with consumer groups, acks and claiming).
Broker Comparison & Decision GuideMust-knowone side-by-side matrix of RabbitMQ, Kafka and Redis Streams (plus NATS JetStream, Pulsar, SQS/SNS, Google Pub/Sub and Laravel's database/SQS drivers), and a decision guide built on it.
Other BrokersGood to knowBeyond RabbitMQ, Kafka and Redis Streams there are ten more systems you will meet in real projects, and queue and log are useful starting models…

Routing & Consumers ​

ChapterLevelWhat you learn
Routing TopologiesImportantRouting topology is the map that decides which consumer receives which message: exchanges and bindings on RabbitMQ, topic and key choice on Kafka, stream keys and consumer groups on Redis Streams.
Advanced RoutingGood to knowEleven routing patterns from Enterprise Integration Patterns that decide where a message goes, how one message becomes many, and how many messages become one again.
Consumer & Endpoint PatternsImportantA Message Endpoint is the small piece of code where your application touches a broker; the other eight endpoint patterns are the decisions you make inside it (who asks for messages, who filters them…
Competing Consumers & Scaling ConsumersMust-knowadding consumers is how a messaging system scales its work, and each broker has a different unit that limits it: a message in RabbitMQ, a partition in Kafka, an entry in a Redis Streams group…
Request-Reply over Messaging & REST vs AMQPImportanthow to get an answer back through a broker (correlation id, return address, reply queue, RabbitMQ Direct Reply-To, Kafka reply topics, Redis reply streams)…

Reliability Patterns ​

ChapterLevelWhat you learn
Transactional Outbox PatternMust-knowAn outbox commits the business change and the intent to publish in one database transaction, then lets a separate relay deliver that intent.
Saga PatternMust-knowA saga coordinates committed local transactions and business compensations across boundaries that cannot share one atomic transaction.
Dead-Letter Queue (DLQ)Must-knowA DLQ preserves work that normal processing cannot currently complete, together with evidence and a recovery decision.
Retry, Backoff & Delayed DeliveryMust-knowRetry repeats a safe operation after a recoverable failure; backoff controls when, and a budget controls when to stop.
Durable Workflows & JobsImportantA durable workflow remembers progress, decisions and waits after the process executing it disappears.

Event-Driven & Streams ​

ChapterLevelWhat you learn
Event-Driven ArchitectureMust-knowEvent-driven architecture lets a service announce facts so that other services react on their own schedule, trading call-time coupling for eventual consistency and new operational work.
Event Sourcing & CQRSImportantEvent sourcing stores the facts that changed a system and derives state from them; CQRS separates the model that changes data from the model that answers questions.
Change Data Capture (CDC)ImportantCDC turns the committed changes in a database's own log into an ordered stream of row events that other systems can apply.
Stream ProcessingGood to knowStream processing runs a query that never finishes over data that never completes, so it must decide which clock to group by, when a group is done, and where its state lives.

Operations ​

ChapterLevelWhat you learn
Backpressure & Flow ControlImportantBackpressure is how a slow part of a pipeline tells faster parts to wait, so queues stay bounded and latency stays honest.
Messaging Observability & TracingImportantAsync systems break the call stack, so observability has to be rebuilt from message headers, broker counters and a few well-chosen metrics.
System Management PatternsGood to knowEight patterns let you look into, steer, probe and clean a running messaging system without changing the business code that sends and receives the messages.
Laravel Queue InternalsImportantHow Laravel 13 turns dispatch() into a JSON payload, stores it in a driver, leases it to a worker, and records success, release, or failure, read from the framework source.
Testing Messaging SystemsImportantAsynchronous code is tested by removing nondeterminism layer by layer: fakes for logic, contracts for messages, real brokers for wiring, fault injection for failure.
Messaging SecurityGood to knowA broker concentrates every important business event in one place; securing it means deciding who may connect, publish, consume and administer, and what an attacker learns from bytes on the wire…

Built by Morteza Negahi