This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
How to atomically persist state and send events (e.g. ProductPriceChangedIntegrationEvent) ? Β #129
Open
Description
It seems that this sample app doesn't demonstrate how to achieve atomicity between database updates and event publishing, which is essential in real-life projects.
In the original eShopOnContainers app, the Catalog service publishes ProductPriceChangedIntegrationEvent after persisting it into IntegrationEventLog table, in UpdateProductAsync method.
But in this sample, there's no such event, and I can't find any implementation of the outbox pattern either.
Since Dapr doesn't seem to provide the outbox pattern implementation out-of-the-box (no pun intended), it'd be great to include an example that illustrates how to deal with the atomicity issue.
Metadata
Assignees
Labels
No labels