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

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:

主站蜘蛛池模板: 镶黄旗| 徐州市| 三原县| 千阳县| 四平市| 江华| 南川市| 都昌县| 锡林浩特市| 浦县| 松滋市| 曲周县| 阿拉善盟| 平乡县| 敦化市| 工布江达县| 蓬溪县| 华亭县| 镇安县| 武邑县| 无极县| 前郭尔| 志丹县| 榆中县| 乌海市| 华阴市| 浏阳市| 清流县| 融水| 鹤庆县| 太康县| 盖州市| 柞水县| 霍邱县| 双辽市| 定日县| 望都县| 黔西县| 平湖市| 普兰店市| 贵州省|