Azure Functions 是否可以在没有绑定(bind)(计时器、主题、队列、HTTP)等的情况下运行?
我的 Azure Function 是一个我想在循环中连续运行但不完成的进程,除非通过 U.I 停止 Azure Function。
我可以让 Azure Function 运行每天运行的计时器触发器,并让 Azure Function 在 23 小时 59 分钟后完成,但我不想采用这种方法。
最佳答案
Azure 的 Durable Functions(预览版)可能能够实现这一点:
参见模式 #4,有状态单例:https://learn.microsoft.com/en-us/azure/azure-functions/durable-functions-overview
While Durable Functions is not an implementation of the actor model, orchestrator functions do have many of the same runtime characteristics. For example, they are long-running (possibly endless), stateful, reliable, single-threaded, location-transparent, and globally addressable. This makes orchestrator functions useful for "actor"-like scenarios.
关于azure-functions - 如何在没有绑定(bind)的情况下运行 Azure Function,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48029227/