← Graph

Commands, Queries, and Events

concept 3 connections

Szydło's linguistic grounding for object-oriented messaging: in any language, a person can only build three kinds of sentences — a question, an order, or an informing statement. Accordingly, objects exchange only three kinds of messages: queries (ask), commands (order), and events (inform). The count isn't a programming constraint — it's a communication/linguistic one. Events enable the loosest coupling because the sender only declares what happened, leaving the 'what to do' to the receiver.

category
pattern
about
Commands, Queries, and Events concept
Grounds object messages in the three linguistic sentence types.
about
Commands, Queries, and Events concept
Process managers map events to commands, a core CQRS concept.
concept Coupling
related_to
Commands, Queries, and Events concept
The five coupling levels are derived by progressively loosening what a sender knows about a receiver, culminating in event-based notification.

Provenance

Read by
10 extractions