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

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:

主站蜘蛛池模板: 尚义县| 石渠县| 潜山县| 洪江市| 恩平市| 灵寿县| 丽水市| 鹿泉市| 澄城县| 吉首市| 游戏| 叶城县| 瑞金市| 彰化县| 四会市| 桃园市| 高唐县| 勃利县| 涿州市| 云南省| 海林市| 屏山县| 无极县| 宁城县| 安阳县| 筠连县| 九龙城区| 铜陵市| 安达市| 贵溪市| 杭锦后旗| 西峡县| 奈曼旗| 海门市| 重庆市| 中西区| 博乐市| 宁晋县| 北流市| 晴隆县| 延安市|