There are two main types of events: user events and scheduled events. User events are generated by the user, while scheduled events are triggered based on time.
Whenever an event occurs, we want a choreographed flow of microservices to be triggered. For example, when a user signs up, we may wish to store their details in our database (microservice 1) and then send the customer a welcome email (microservice 2).
The flow of invoked microservices will be different for each event type. Hence we uniquely name each event type, allowing us to build the flow for each event.
Example names for Event Types could be:
User Sign Up
Friend Request
(for a social app)Product Purchase
(for an eCommerce app)Update Profile
Page Load
The list of events in an app is extensive, and having all events listed is a surprisingly valuable extra benefit of using MAPT.