Explain how event-driven architecture can be used in
microservices.
In event-driven architecture (EDA), services communicate asynchronously by emitting and
consuming events. Instead of calling each other directly, services emit events (e.g., order
created, payment processed) that other services listen for and react to.
How it works: