Event-Driven Architecture
Services communicate via events, not direct calls. Decouples producers from consumers. Enables async processing and scales horizontally.
When to use:
- • Complex workflows with multiple steps
- • Need for async processing
- • Multiple consumers of same event
- • Building for scale
Trade-offs:
- → Harder to debug (distributed traces required)
- → Eventual consistency (not immediate)
- → Event schema versioning complexity
Connections:
→ Neural architecture (transformers process tokens in parallel)