You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to enrich commands before or during dispatch with external data. This data may be looked up from a read model, another service, or an external third party API.
A router middleware defining an enrichment protocol is one possible solution. Here's an example gist with middleware for command enrichment.
Note processing by an aggregate instance during comand execution blocks it from handling any other commands. Whereas router middleware is executed by the dispatching process, before the aggregate instance is called (and is non-blocking to other processes).
The text was updated successfully, but these errors were encountered:
How to enrich commands before or during dispatch with external data. This data may be looked up from a read model, another service, or an external third party API.
A router middleware defining an enrichment protocol is one possible solution. Here's an example gist with middleware for command enrichment.
Note processing by an aggregate instance during comand execution blocks it from handling any other commands. Whereas router middleware is executed by the dispatching process, before the aggregate instance is called (and is non-blocking to other processes).
The text was updated successfully, but these errors were encountered: