gpt4 book ai didi

azure - Azure Durable 函数中维护什么状态?

转载 作者:行者123 更新时间:2023-12-03 01:38:56 25 4
gpt4 key购买 nike

在介绍 Azure Durable 函数时,他们提到我们可以编写有状态函数。有状态是什么意思以及维持什么状态?我们是在谈论函数的运行状态吗?

最佳答案

有状态函数是具有状态的函数,即一些数据与该函数相关联。在我们的具体案例中,我们讨论的是:

  • 管理工作流程的状态(我们处于哪个步骤)
  • 创建进度检查点(到达检查点时,状态发生更改)
  • 持久执行历史记录
  • 安排事件

来自docs :

Durable Functions is an extension to the Azure Functions runtime that enables the definition of stateful workflows in code. By breaking down workflows into activities, the Durable Functions extension can manage state, create progress checkpoints, and handle the distribution of function calls across servers. In the background, it makes use of an Azure Storage account to persist execution history, schedule activity functions and retrieve responses. Your serverless code should never interact with persisted information in that storage account, and is typically not something with which developers need to interact.

关于azure - Azure Durable 函数中维护什么状态?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55690203/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com