Pattern: Audit logging
You have applied the Microservice architecture pattern.
How to understand the behavior of users and the application and troubleshoot problems?
- It is useful to know what actions a user has recently performed: customer support, compliance, security, etc.
Record user activity in a database.
This pattern is widely used.
This pattern has the following benefits:
- Provides a record of user actions
This pattern has the following drawbacks:
- The auditing code is intertwined with the business logic, which makes the business logic more complicated
- Event Sourcing is a reliable way to implement auditing