什么是无服务器工作流_什么是无服务器?

什么是无服务器工作流

Serverless is a term that identifies a particular way to run programs, that does not involve managing your own server.

无服务器是一个术语,用于标识运行程序的特定方式,该方式不涉及管理您自己的服务器。

You create a function, place it somewhere in a cloud server, and all you have is a URL to call.

您创建一个函数 ,将其放置在云服务器中的某个位置,您所拥有的只是一个要调用的URL。

When you call that URL, the function is executed.

当您调用该URL时,将执行该函数。

Someone else manages the server, the scaling, the security. There’s no need to worry about kernel updates or moving to the next LTS release of your Linux distribution.

其他人管理服务器,扩展,安全性。 无需担心内核更新或转移到Linux发行版的下一个LTS版本。

Serverless is very convenient from the pricing model too. Traditionally you might rent a VPS (Virtual Private Server) monthly, and pay for the monthly price regardless of your actual usage.

从定价模型来看,无服务器也很方便。 传统上,您可能每月租用一个VPS(虚拟专用服务器),然后按月支付费用,而不管您的实际使用情况如何。

If you have a spike of users because someone shared your website in a popular place, the server might not be able to serve all requests unless you upgrade to a bigger server.

如果由于某个人在一个受欢迎的地方共享您的网站而导致用户数量激增,则该服务器可能无法满足所有请求,除非您升级到更大的服务器。

With serverless, you pay for requests rather than paying for the server. If no one is using your service, you pay nothing. If 100.000 people jump on your site all together, your functions scale because the company that manages the functions for you has all the elements in place for handling the traffic and automatically put more resources into your functions. You pay for the resource used rather than for some resource you might use in the future.

使用无服务器, 您需要为请求付费,而不是为服务器付费。 如果没有人使用您的服务,则无需支付任何费用。 如果总共有100.000人跳到您的站点上,则功能将得到扩展,因为为您管理功能的公司已具备处理流量的所有要素,并自动将更多资源投入到您的功能中。 您为使用的资源付费,而不是为将来可能使用的某些资源付费。

When done right, it also proves to be very liberating from a mental perspective for developers working on projects on their own. You are not in charge for the server that powers your application, so you are not on call 247 to fix any problem that might happen to it. You don’t have to be a system administrator or devops expert to run your app.

如果做得正确,对于开发人员自己进行项目的开发人员而言,从心智角度来看,它也被证明是非常解放的。 你是不是负责的服务器权力您的应用程序,这样你就不会在通话七分之二十四来解决可能发生的事情给它的任何问题。 您无需成为系统管理员或devops专家即可运行您的应用。

Sounds like a dream world, where is the catch?

听起来像一个梦幻世界,收获在哪里?

First, serverless is still at its very early stages. All players have a different implementation of it, and the tooling around it varies in quality.

首先,无服务器仍处于起步阶段。 所有参与者都有不同的实现方式,围绕它的工具质量也各不相同。

Pricing wise, it might not make sense for you, if you have a predictable traffic and you can purchase your servers for cheaper, for example by reserving instances on AWS.

明智的定价是,如果您的流量可预测,并且可以以较低的价格购买服务器(例如,通过在AWS上保留实例),则对您而言就没有意义。

You also don’t control the server, which means you have to rely on the available infrastructure for logging, monitoring and debugging, and it’s difficult to reproduce your setup locally.

您也无法控制服务器,这意味着您必须依靠可用的基础结构来进行日志记录,监视和调试,并且很难在本地复制设置。

What are the major players in the market?

市场上的主要参与者是什么?

AWS Lambda is the most famous and used one probably, and currently allows you to create serverless functions in Java, Go, PowerShell, Node.js, C#, Python, and Ruby.

AWS Lambda可能是最著名和使用最多的工具,目前允许您使用Java,Go,PowerShell,Node.js,C#,Python和Ruby创建无服务器功能。

AWS Lambda is the underlying service used by products that aim to simplify the serverless offer for developers:

AWS Lambda是产品使用的基础服务,旨在简化为开发人员提供的无服务器服务:

They have an awesome FAQ on https://aws.amazon.com/lambda/faqs/ which I recommend to read.

他们在https://aws.amazon.com/lambda/faqs/上有一个很棒的FAQ,我建议阅读。

翻译自: https://flaviocopes.com/serverless/

什么是无服务器工作流

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值