Skip to content

About the "at-least-onces" message delivery guarantee for Activity Functions (DurableFunctions) #2203

Answered by cgillum
jonathanharr asked this question in Q&A
Discussion options

You must be logged in to vote

what it is it that the durable extension framework does to make sure that it has executed call 0, 1, 2, 3, 4 to PrintNumber with the value in the array?

The framework uses sequence numbers to know whether an activity has been scheduled. These numbers always start from 0 and are incremented by 1 for each new task that is scheduled. When processing the history, the framework checks to see if a call to CallActivityAsync has a corresponding TaskScheduledEvent already. If it doesn't then we know it hasn't been scheduled yet. If it does, then we know it's already been scheduled and we're just waiting for a response. There is also a TaskCompletedEvent that corresponds to every TaskScheduledEvent

Replies: 1 comment 2 replies

Comment options

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

@cgillum
Comment options

Answer selected by jonathanharr
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