Microservices are typically built with event-driven architecture. Let's consider a simple example. Whenever a new customer is registered, there are three things that need to be performed:
- Store customer information to the database
- Mail a welcome kit
- Send an email notification
Let's look at two different approaches to design this.