内容简介:Since its launch towards the end of 2014, Lambda has created a lot of hype, and more importantly, brought the term “serverless” into the industry. At its core, “serverless” does not mean that there are no servers or anything; there are servers, but you are
Since its launch towards the end of 2014, Lambda has created a lot of hype, and more importantly, brought the term “serverless” into the industry. At its core, “serverless” does not mean that there are no servers or anything; there are servers, but you are not the one managing those servers. You don’t know where your code is running, you don’t SSH into a server, you don’t do anything that you’d do with regular servers or VMs. You just give a function you’d like to execute to Lambda and let it run the code for you.
As an example, let’s say you have a function that takes a list of products and calculates the price of the whole cart, including various subtotals, shipping prices, and grand totals. If this is one piece of a bigger service, then it might be fine to keep it there. However, if this is a functionality that will be shared between different use-cases, or if this is a full service on its own, then you need to consider how to deploy, manage, and scale it. This exact point is where serverless platforms like Lambda jump in:
- Build a ZIP archive of your code
- Upload it to Lambda
- Map an API Gateway to your lambda function
- Bam, you are done: you have a service that can scale infinitely, requires no maintenance, and can be deployed straight from a ZIP archive.
Alright, the “ infinite scaling ” part may be a bit stretch. It is still software that is running on physical hardware, and there are a bunch of challenges maintaining a smooth scaling from one request to one million requests per minute , but in practical terms, you as the developer don’t need to care about it, the platform itself will handle that.
Devo: My Ideal Usecase
The reason I have been using Lambda is my side project, Devo . Devo is a simple open-source new-tab extension that displays home pages of a bunch of platforms, such as GitHub Trending , Hacker News , Product Hunt or DEV . I found myself visiting these pages quite frequently, and I thought “ why not have them ready in every new tab? ”, which then lead to the project itself.
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
jQuery实战
Bear Bibeault、Yehuda Katz / 陈宁 / 人民邮电出版社 / 2009.1 / 49.00元
《jQuery实战》全面介绍jQuery知识,展示如何遍历HTML文档、处理事件、执行动画以及给网页添加Ajax。书中紧紧地围绕“用实际的示例来解释每一个新概念”这一宗旨,生动描述了jQuery如何与其他工具和框架交互以及如何生成jQuery插件。jQuery 是目前最受欢迎的JavaScript/Ajax库之一,能用最少的代码实现最多的功能。 点击链接进入新版: jQuery......一起来看看 《jQuery实战》 这本书的介绍吧!