Skip to content
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
vadim-tychonoff opened this issue Dec 29, 2022 · 0 comments

Comments

@vadim-tychonoff
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant