Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Serverless Functions Azure, AWS, GCP
Search
Mikhail Shilkov
October 30, 2019
Programming
0
230
Serverless Functions Azure, AWS, GCP
Comparison of Function-as-a-Service offerings of AWS, Azure, and GCP
Mikhail Shilkov
October 30, 2019
Tweet
Share
More Decks by Mikhail Shilkov
See All by Mikhail Shilkov
From YAML to TypeScript: Developer’s View on Cloud Automation
mikhailshilkov
0
83
Cloud Management Superpowers with Pulumi
mikhailshilkov
0
490
Cloud Superpowers with Pulumi and F#
mikhailshilkov
1
490
Cloud Management Superpowers with Pulumi and .NET
mikhailshilkov
0
110
Managing Any Cloud with .NET
mikhailshilkov
0
70
Azure Infrastructure as C# and F#
mikhailshilkov
0
250
Infrastructure as Software
mikhailshilkov
0
410
Azure Infrastructure as C# and F#
mikhailshilkov
0
310
Pulumi: Cloud Infrastructure as C# and F#
mikhailshilkov
0
810
Other Decks in Programming
See All in Programming
Kotlinで実装するCPU/GPU 「協調的」パフォーマンス管理
matuyuhi
0
410
CloudNative Days Winter 2025: 一週間で作る低レイヤコンテナランタイム
ternbusty
6
1.3k
競馬で学ぶ機械学習の基本と実践 / Machine Learning with Horse Racing
shoheimitani
13
13k
AIと協働し、イベントソーシングとアクターモデルで作る後悔しないアーキテクチャ Regret-Free Architecture with AI, Event Sourcing, and Actors
tomohisa
2
1.1k
関数の挙動書き換える
takatofukui
4
670
自動テストのアーキテクチャとその理由ー大規模ゲーム開発の場合ー
segadevtech
2
1k
Rails Girls Sapporo 2ndの裏側―準備の日々から見えた、私が得たもの / SAPPORO ENGINEER BASE #11
lemonade_37
2
170
GraalVM Native Image トラブルシューティング機能の最新状況(2025年版)
ntt_dsol_java
0
150
Swift Concurrency 年表クイズ
omochi
3
230
Flutterアプリ運用の現場で役立った監視Tips 5選
ostk0069
1
460
Chart.jsで長い項目を表示するときのハマりどころ
yumechi
0
110
AI POSにおけるLLM Observability基盤の導入 ― サイバーエージェントDXインターン成果報告
hekuchan
0
650
Featured
See All Featured
Practical Orchestrator
shlominoach
190
11k
The Cult of Friendly URLs
andyhume
79
6.7k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
11
930
Into the Great Unknown - MozCon
thekraken
40
2.2k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
Making Projects Easy
brettharned
120
6.5k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.3k
The Cost Of JavaScript in 2023
addyosmani
55
9.3k
How to Think Like a Performance Engineer
csswizardry
28
2.3k
Transcript
Serverless Functions Azure, AWS, GCP Cloud Republic Event | Utrecht
| October 30, 2019
• Software developer • Cloud • Serverless • Functional programming
• Microsoft Azure MVP https://mikhail.io @MikhailShilkov Mikhail Shilkov
Function-as-a-Service Cloud Offerings
Hosting Plans Configurability Languages Programming Model Concurrency Isolation Cost Orchestrations
Cold Starts Scalability Conclusions Q&A
Hosting Plans
Azure Functions
AWS Lambda and Google Functions
Configurability
Azure Functions Consumption
AWS Lambda Memory Allocation
GCF Memory Allocation
Azure Functions Premium
Programming Languages
Language Azure Functions AWS Lambda Google Cloud Functions .NET (C#/F#)
GA GA - Node.js (JS/TS) GA GA GA JVM (Java) GA GA - Python GA (Linux only) GA GA PowerShell Preview GA - Go - GA GA Ruby - GA - Comparison Table
Programming Model
Azure Functions: Triggers and Bindings [FunctionName("MyFunc")] public static void Work(
[TimerTrigger("0 */10 * * * *")] TimerInfo timer, [Blob("filename")] Stream stream, [Queue("myqueue")] out string message) { // body }
AWS: JSON Input and Output exports.handler = async (event) =>
{ const response = { statusCode: 200, body: JSON.stringify('Hello from Lambda!'), }; return response; };
ASP.NET Core on AWS Lambda public class LambdaFunction : Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction
{ protected override void Init(IWebHostBuilder builder) { builder .UseContentRoot(Directory.GetCurrentDirectory()) .UseStartup() .UseApiGateway(); } }
GCP: Express-like API exports.helloWorld = (req, res) => { let
message = req.query.message || req.body.message || 'Hello World!'; res.status(200).send(message); };
Deployment Artifacts
Concurrency and Isolation
Resource Pool
Resource Pool
Resource Pool
Resource Pool
Resource Pool
Resource Pool
Resource Pool
Client Value Resource Utilization
Tradeoff
Server, VM, container, process, ...
Server, VM, container, process, ... VM VM
Server, VM, container, process, ... VM VM
Server, VM, container, process, ... VM VM
Server, VM, container, process, ... VM VM
Azure Functions 12
Legacy of App Service
Legacy of App Service
App Service: scalability
App Service: scalability
Function App Consumption Plan
Isolation Layers
Simultaneous Executions
Simultaneous Executions
Simultaneous Executions
Simultaneous Executions
AWS Lambda 22
AWS Lambda
AWS Lambda
AWS Lambda
Integrating with AWS Lambda
Simultaneous Executions in AWS Lambda
Isolation Layers
Simultaneous Executions in AWS Lambda
Simultaneous Executions in AWS Lambda
Simultaneous Executions in AWS Lambda
• • • • AWS Firecracker
Isolation Layers with Firecracker
«Naive» Function Composition
Statistical Multiplexing
Google Cloud Functions 31
Google Cloud Functions
Cost
Nominal Pricing
Nuances
Azure Simultaneous Executions
AWS Lambda: HTTP Integration
AWS Lambda: HTTP Integration
Orchestration
Azure Logic Apps
AWS Step Functions
Azure Durable Functions public static async Task Sequential(DurableOrchestrationContext context) {
var conf = await context.CallActivityAsync<ConfTicket> ("BookConference", "ServerlessDays"); var flight = await context.CallActivityAsync<FlightTickets> ("BookFlight", conf.Dates); await context.CallActivityAsync("BookHotel", flight.Dates); }
Performance and Scalability
Ideal Scalability: Throughput
Ideal Scalability: Latency
Customer Value Cloud Resource Utilization
Cold Starts
Example: Loading a map
Example: Loading a map
Example: Loading a map
Cold Start
Warm Start
Period Before a Subsequent Cold Start
Cold Starts: Language Comparison
Dependencies Add to Cold Start
Fighting Cold Starts: Azure [FunctionName("Warmer")] public static void WarmUp( [TimerTrigger("0
*/10 * * * *")] TimerInfo timer) { // No need to do anything }
AWS: Single instance warming
AWS: Multiple instance warming
ETL AT SCALE: Asynchronous data processing
Async Pipelines
Experiments with Queues
AWS Lambda Processing 100k SQS Messages
GCF Processing 100k Pub/Sub Messages
Azure Functions Processing 100k Queue Messages
CPU-intensive workload on AWS Lambda
CPU-intensive workload on Google Cloud Functions
CPU-intensive workload on Azure Functions
AWS Processing Speed per Reserved RAM
HTTP AT SCALE: Serving traffic of StackOverflow
Serving StackOverflow-like traffic
Requests/sec during the load test
0 200 400 600 800 1000 1200 Azure Functions: Response
Percentiles (ms)
0 200 400 600 800 1000 1200 Azure Functions: Response
Percentiles (ms)
0 200 400 600 800 1000 1200 Azure Functions: Instances
Google Functions: Response Percentiles (ms)
Google Functions: Response Percentiles (ms)
0 200 400 600 800 1000 1200 Google Functions: Instances
0 200 400 600 800 1000 1200 AWS Lambda: Response
Percentiles (ms)
0 200 400 600 800 1000 1200 AWS Lambda: Response
Percentiles (ms)
0 200 400 600 800 1000 1200 AWS Lambda: Instances
So, What Should You Choose?
• • • • Follow-up reading (1)
• • • Follow-up reading (2)
None