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

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:

主站蜘蛛池模板: 清流县| 荣昌县| 金平| 绵竹市| 鸡东县| 土默特左旗| 九龙县| 工布江达县| 宁武县| 台南市| 棋牌| 德庆县| 汤原县| 迭部县| 普格县| 钟山县| 东光县| 东兴市| 瑞金市| 兴海县| 沙洋县| 满洲里市| 宽城| 定州市| 定边县| 栾川县| 什邡市| 宜丰县| 邹城市| 马尔康县| 桦南县| 平阴县| 龙川县| 吴川市| 工布江达县| 高平市| 阜宁县| 咸宁市| 嘉禾县| 儋州市| 两当县|