Ch. 4
Modes of Dataflow
Data moves between processes via databases, service calls, and message queues — each with different trade-offs.
When one process needs to share data with another, the dataflow pattern matters. Writing to a shared database is the oldest integration pattern. RPC calls offer synchronous coupling. Message queues add buffering and decouple availability.
- Database: simple but creates tight schema coupling.
- REST/RPC: real-time but requires both sides to be available.
- Message queue: resilient to spikes but adds delivery guarantees complexity.
RESTgRPCKafkaRedisreverse proxyWebSocketSSEmessage queue