Ideas to flesh out Durable Lifecycle functionality #1891
Replies: 1 comment 1 reply
-
Big +1 to more observability! 🌈 I think a good place to start would be to figure out how we expect users to make use of / respond to these lifecycle events beyond just monitoring. For example, it seems to me that a main use-case of these events would be to take corrective action when a DF app gets into an undesirable state. Is it accurate to say that would be the main goal of this observability layer? For the sake of discussion, the rest of my response will assume that taking corrective action is the main goal here. I'm 100% in support of making lifecycle events into a Trigger! I would personally prioritize that over sending the data to Azure Monitor or App Insights; a Trigger seems more flexible in letting users take corrective actions. I also think that your suggestion of events identifying stale orchestrations, duplicate instanceIds, and orchestration execution time would be great to have. To this, I'd add something like duplicate activity executions. I would also add that we should consider if we should add more management APIs to let users respond to these events. Other than the |
Beta Was this translation helpful? Give feedback.
-
As of issue creation (July 2021), Durable Functions has the ability to subscribe to various lifecycle events for orchestration and publish those events to EventGrid.
Lifecycle events are a great way to detect various anomalies within the system, and this is an area where Durable Functions customers could use a lot of help. However, there are many ways we can take our existing functionality and make it more robust. I see two separate fronts to tackle this issue.
More lifecycle events
Currently we support the following orchestration life-cycle events: Started, Pending, Failed, Terminated.
Some additional potential life-cycle events include:
More actions available on lifecycle events
Currently we only allow publishing to EventGrid. Other possible actions that would greatly expand the scope of the feature include:
Beta Was this translation helpful? Give feedback.
All reactions