Skip to content

Guaranteed eventual consistency #7662

Answered by JorgeCandeias
Timovzl asked this question in Q&A
Discussion options

You must be logged in to vote

TLDR; Option 3.

  1. Is it possible to save the state and the new reminder as a single transaction?

It's possible, if both persistence and reminders providers support distributed transactions using a context (e.g. with TransactionScope), but implementing this breaks the abstraction that Orleans provides, as you're relying on them supporting this. Performance will also take a hit even on the happy path, if this hack works at all, so I don't recommend this.

Orleans does support managed transactions, but this doesn't apply to reminders.

  1. We could have the reminder always running, but that would be overly wasteful if there are many grains.

When a reminder is no longer needed, we can, and sh…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Timovzl
Comment options

Comment options

You must be logged in to vote
2 replies
@Timovzl
Comment options

@JorgeCandeias
Comment options

Answer selected by Timovzl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants