- Building Serverless Web Applications
- Diego Zanon
- 187字
- 2021-07-15 17:31:23
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:

- Learning Docker
- Linux C/C++服務(wù)器開發(fā)實踐
- CKA/CKAD應(yīng)試教程:從Docker到Kubernetes完全攻略
- Keras深度學(xué)習(xí)實戰(zhàn)
- Mastering C++ Multithreading
- Django實戰(zhàn):Python Web典型模塊與項目開發(fā)
- HTML+CSS+JavaScript網(wǎng)頁制作:從入門到精通(第4版)
- 零基礎(chǔ)學(xué)C++(升級版)
- iOS開發(fā)項目化入門教程
- 精益軟件開發(fā)管理之道
- Jakarta EE Cookbook
- C語言程序設(shè)計實驗指導(dǎo)與習(xí)題精解
- C語言從入門到精通(第4版)
- CorelDRAW X6中文版應(yīng)用教程(第二版)
- 計算機應(yīng)用基礎(chǔ)