官术网_书友最值得收藏!

Cost model

Suppose that you have built an online store with serverless. The average user will make some requests to see a few products and a few more requests to decide whether they will buy something or not. In serverless, a single unit of code has a predictable time to execute for a given input. After collecting some data, you can predict how much a single user costs on average, and this unit cost will remain almost constant as your application grows in usage.

Knowing how much a single user costs and keeping this number fixed is very important for a startup. It helps to decide how much you need to charge for a service or earn through ads or sales to have a profit.

In a traditional infrastructure, you need to make payments in advance, and scaling your application means increasing your capacity in steps. So, calculating the unit cost of a user is a more difficult task and it's a variable number.

In the following diagram, the left-hand side shows traditional infrastructures with stepped costs and the right-hand side depicts serverless infrastructures with linear costs:

主站蜘蛛池模板: 富顺县| 太湖县| 乐都县| 永春县| 稷山县| 大兴区| 大方县| 手机| 永吉县| 河池市| 永康市| 彭山县| 贵南县| 巴塘县| 陇南市| 昌图县| 乌恰县| 东乡| 马尔康县| 宁阳县| 辽宁省| 陵水| 石嘴山市| 张家界市| 离岛区| 寿宁县| 临泽县| 山丹县| 界首市| 剑阁县| 洛隆县| 朝阳区| 依安县| 厦门市| 陆川县| 泾源县| 伊金霍洛旗| 桑植县| 宁化县| 股票| 轮台县|