Skip to content

Are any CPU cycles or memory consumed when an instance is sleeping? #1765

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

You must be logged in to vote

Hi @underscoreHao, great questions.

An orchestration that is awaiting on any durable task, whether it is a timer (your case), an external event, or a response from an activity function call is completely removed from memory and does not occupy any CPU*. Having millions of these in an awaiting state should result in zero overhead, as long as they don't all start executing at the same time. :) Your current usage of eternal orchestrators is perfectly valid and encouraged.

The durable timer is implemented as a scheduled (invisible) message in Azure Storage. The message becomes visible at the time you specified (nextRunTime). Only when it is visible do we load your orchestration again and star…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cgillum
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1118 on April 01, 2021 17:41.