Azure Functions
Last updated
Was this helpful?
Last updated
Was this helpful?
Azure Functions 功能():
改进端到端开发体验:Azure 提供了完整的函数开发(Visual Studio)、CI/CD(Azure pipeline)、监控(Azure Monitor)工具
简化复杂的业务流程挑战解决方案:引入了有状态函数的概念,详见,目前仅支持 C#、JavaScript、Python、F# 和 PowerShell
在无需硬编码集成的情况下连接其他服务,以更快地开发解决方案:即 “Azure 服务事件触发” + “函数内使用 Azure 服务”
构建一次,随处部署:支持部署到 Azure、部署了 KEDA 的 kubernetes 集群等等
按你自己的方式进行开发:即支持多种编程语言
Azure Functions release note:
截至 2021.06,相关的更新可以归纳为:
更新时间
更新内容
具体
2021.06.03
安全相关
Identity-based connections in Azure Functions with latest Azure SDK triggers and bindings
2021.05.26
有状态相关
PowerShell support in Durable Functions is now generally available
2021.03.10
编程语言支持
Python Durable Functions support in Azure Functions is now generally available
2021.02.10
功能优化
Versions no longer required for Key Vault references in App Service and Azure Functions
2021.01.25
编程语言支持
Python 3.9 in Azure Functions is now in public preview
2021.01.21
安全相关更新
App Service Authentication portal experience is now in public preview
2020.12.22
生态链支持
RabbitMQ Extension for Windows and Linux is now generally available
2020.12.09
开发者工具
Java Azure Functions support on Linux is now generally available
2020.11.18
编程语言支持
Node.js 14 for Azure Functions is now available in public preview
2020.10.28
开发者工具
Generate a new function app from an OpenAPI specification
场景
案例描述
无服务器 API
具有 Node.js 或 Microsoft .NET 的无服务器 API
Web 应用程序
微服务
机器学习
具有无服务器体系结构的机器学习工作流
数据处理
云自动化
上述文档对 durable function 的使用场景描述的比较清楚,这里稍作一些说明:
官方文档:
Azure Functions 对冷启动的优化主要是靠,本质上与阿里云预留实例一样。其它的都是建议性质的,如在函数应用中尽量使用异步操作
官方文档:
durable function 对一些常见模式做了封装,用普通函数也能实现,只是用户代码复杂一些。如,普通函数如果跟踪所有扇出函数的完成状况,需要编写额外的控制代码
用其它的工具也能实现 durable function 的部分功能,只是管理更复杂、不够灵活。如,普通函数的话可能需要配合时间触发器,还得自己调整控制轮询间隔等等,有时还需要管理多个触发器
其它云平台未必没有对应的能力,只是没有提炼、总结出独立的产品。如,某个函数失败只会在当前进度重试,不会全量重试,其它云平台可能也有对应能力