VISUAL REFERENCE

Event-Driven Visual Map

Master async communication patterns. From Events vs Commands to advanced Pub-Sub and Message Queues.

Semantics

Events vs Commands

CMDCreateOrderOrderServiceEVTOrderCreatedEmailInventory

Commands are intents (do this). Events are facts (this happened). Commands typically have one handler; Events can have many.

Communication

Sync vs Async

SYNCwaitASYNC Queue

Sync blocks the caller until completion. Async returns immediately, processing happens in background.

Pattern

Message Queue (P2P)

PCQUEUE

Point-to-Point channel. One sender, one receiver. Ensures a message is processed exactly once by one consumer.

Pattern

Pub-Sub Pattern

PubTopic

One publisher, multiple subscribers. Messages are broadcasted to all interested services via topics.

Data Pattern

Event Sourcing

Event LogState

Storing state as a sequence of events rather than just the current state. State is derived by replaying events.

Reliability

Dead Letter Queue

Main QueueXDLQ

A holding pen for messages that cannot be processed successfully after max retries.