Back to glossary

Event-Driven Architecture

A software design pattern where services communicate by producing and consuming events asynchronously, enabling loose coupling, real-time reactivity, and scalable data processing.

Event-driven architecture decouples services by replacing direct API calls with asynchronous events. When a user signs up, the auth service publishes a "user.created" event. The email service, analytics service, and onboarding service each consume this event independently, without the auth service knowing about them.

This pattern offers several advantages. Services can be added or removed without changing the event producer. Events create a natural audit log of everything that happened in the system. Processing can be parallelized across consumers, and spikes in load are absorbed by the event queue rather than overwhelming downstream services.

Common implementations use message brokers like Apache Kafka, RabbitMQ, or cloud-native services like AWS EventBridge. For AI systems, event-driven architecture is particularly powerful: user behavior events feed into real-time feature pipelines, model prediction events trigger downstream personalization, and data change events kick off retraining workflows automatically.

Related Terms