lundi 1 octobre 2018

In what layer is metric gathering considered to fit on Domain Driven design?

I need to collect and export metrics from my domain. In a way, I feel like metrics are pure business based, and so, must be in domain layer. On the other hand, I am afraid to store the state of counters in domain, due to the fact that their proper state depends on transactionality

Imagine you have a typical CRUD + some minor business logic DDD app, and you want to register all creations, updates, etc.. and then export them through an endpoint. how would you design this?

Aucun commentaire:

Enregistrer un commentaire