How to pay MORE with serverless?

About Me

Kamil Mrzygłód @ Demant Technology Centre

http://blog.codenova.pl/

@Kamil_Mrzyglod

Serverless

Serverless computing is a cloud computing execution model in which the cloud provider dynamically manages the allocation of machine resources.

https://en.wikipedia.org/wiki/Serverless_computing

PaaS == Serverless

 

?

?

?

?

?

Azure Functions on App Service Plan == Serverless

 

?

?

?

?

?

Serverless computing is a cloud computing execution model in which the cloud provider dynamically manages the allocation of machine resources.

https://en.wikipedia.org/wiki/Serverless_computing

Less control == Less money

Focus on development

Easier CI/CD

Smaller codebase

Shorter TTM

Everyone's happy! :)

Less control == Lack of understanding

Focus on delivery

Difficult testing and profiling

Difficult integration

Performance as a second-class citizen

Everyone's happy! :(

Do you know the limits?

Pricing

Examples

If you allocated 512MB of memory to your function, executed it 3 million times in one month, and it ran for 1 second each time, your charges would be calculated as follows:

A function with observed memory consumption of 512 MB executes 3.000.000 times during the month and has an execution duration of one second. Monthly billing would be calculated as follows:

$18.74

€15.18

Real Example

Alternative

Remember

Memory used by a function is measured by rounding up to the nearest 128 MB, up to the maximum memory size of 1.536 MB, with execution time calculated by rounding up to the nearest 1 ms. The minimum execution time and memory for a single function execution is 100 ms and 128 mb respectively.

Performance

Being smart matters :)

https://blog.scooletz.com/2017/11/30/azure-functions-processing-2-billions-items-per-day-1/

Reactive architecture matters

Skill matters

With Azure Cosmos DB, you only pay for provisioned throughput and data stored in a container (e.g., a container of documents or a table of records or a graph consisting of vertices/edges). Provisoned throughput, billed as Request Units (RU) per second or (RU/s), allows you to read from or write data into containers. Each container is billed on an hourly basis for throughput provisioned in increments of 100 RU/second, with a minimum of 400 RU/second, and data stored (in GBs). Unlimited containers have a minimum of 100 RU/s per partition.

Minimum price(4RU) = $23.61

PER CONTAINER

Thank you!

HowToPayMoreWithServerless

By kamil_mrzyglod

HowToPayMoreWithServerless

  • 432