Azure功能比AWS慢,并且冷启动问题更严重? [英] Azure Functions slower than AWS and with worse coldstart issues?

查看:66
本文介绍了Azure功能比AWS慢,并且冷启动问题更严重?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我找到了至少2个比较AWS Lambdas和Azure Functions的引用,其中数据清楚地显示了Azure功能在性能和冷启动方面要差得多:


https://serverless-benchmark.com/ 


https:// mikhail.io/serverless/coldstarts/big3/ 


https://medium.com/elbstack/the-largest-benchmark-of-serverless-providers-ac19b55750f4




当我试图为新项目选择技术时(backround Microsoft / .NET,想要使用F#)我想知道Azure Functions团队是否正在做任何改进这些问题? AWS Lambdas听起来是目前更好的选择...


祝你好运,


Deyan


解决方案


Azure功能中的高级计划
目前处于预览状态。


通过功能高级计划,我们提供了一种解决延迟时间的解决方案无服务器应用程序第一次:预热实例。这种延迟通常被称为冷启动,它是
无服务器开发人员中最常见的问题之一



在Premium计划中,我们为您提供指定多个
预热实例
的功能 保持温暖,您的代码可以执行。当您的应用程序需要扩展时,它首先使用预热实例
没有冷启动。您的应用程序会立即预热后台中的另一个实例,以补充预热实例的缓冲区。此模型允许您避免第一个请求
执行到空闲应用程序以及每个缩放点的任何延迟。


更多详细信息可以在

blog


为了使用Azure Functions Premium Plan私有预览,您的订阅需要添加到允许列表。  请通过 http://aka.ms/functionspremium


Hi,

I have found at least 2 references comparing AWS Lambdas and Azure Functions, where the data clearly shows that Azure Functions are much worse in terms of performance and coldstarts:

https://serverless-benchmark.com/ 

https://mikhail.io/serverless/coldstarts/big3/ 

https://medium.com/elbstack/the-largest-benchmark-of-serverless-providers-ac19b55750f4

As I am trying to choose the technology for a new project (backround Microsoft/.NET, want to use F#) I am wondering if the Azure Functions team is doing anything to improve these issues? AWS Lambdas sound like the better choice currently ...

Best regards,

Deyan

解决方案

Just a week before there is a new offering of Premium Plan in Azure Function which is currently in preview.

With the Functions Premium plan we are offering a solution to the delay when calling a serverless application for the first time: pre-warmed instances. This delay is commonly referred as cold start, and it’s one of the most common problems amongst serverless developers.

In the Premium plan, we offer you the ability to specify a number of pre-warmed instances that are kept warm with your code ready to execute. When your application needs to scale, it first uses a pre-warmed instance with no cold start. Your app immediately pre-warms another instance in the background to replenish the buffer of pre-warmed instances. This model allows you to avoid any delay on the execution for the first request to an idle app, and also at each scaling point.

More details about this can be found in the blog.

In order to use the Azure Functions Premium Plan private preview your subscription needs to be added to an allowlistPlease apply for access via http://aka.ms/functionspremium


这篇关于Azure功能比AWS慢,并且冷启动问题更严重?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆