hbmartin/comparison-hosts-serverless-cloud-function-faas-for-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discordtwitter

No Python support: Netlify Edge Functions, StackPath EdgeEngine. IBM Cloud Functions are deprecated.

This document provides a comparison between hosted, serverless (no cost or management to spin down to zero) providers of cloud function hosts with Python runtimes. Note the distinction between edge providers (execution at PoP) and non-edge (typically predetermined DS region).

Please join our discussions or fix/update information by editing this doc!

See also the Serverless SQL DB Comparison

Python VersionStatusAPI FrameworkRequirementsLocal TestingDocsHello World
Alibaba Cloud Function Compute3.10GAPlain objectVend in zipβ”πŸŽ‰Link
AWS Lambda & Lambda@Edge3.12GAPlain objectVend in zipβœ…πŸ‘Link
Azure Functions3.11GAazure functionsβœ…βœ…πŸŽ‰Link
Cloudflare Workers (WASM)3.12Betafastapi and othersπŸš«πŸš«πŸŽ‰Link
Fermyon (WASM)3.11+No-nativeSpinβœ…β”πŸŽ‰Link
Fly.io (microVM)AnyGAAnyβœ…β”πŸ‘Link
Google / Firebase Cloud Functions3.12GAFlaskβœ…βœ…πŸŽ‰
IBM Code Engine3.11GAPlain objectβœ…βœ…πŸ‘Link
Oracle (OCI) Functions3.11GAFDKβœ…β”Min.Link
Tencent Cloud Functions3.6GASCFVend in zip❔Min.Link
Vercel Functions3.12BetaHTTP handler or WSGI / ASGIβœ…β”πŸ‘Link

Note that the "Free Plan" is intended to represent ongoing free resources i.e. not trials or sign-up credits.

Free PlanBill LimitsFirst Paid Tier
Alibaba Cloud Function Compute3 month trial with resource limits?Based on requests and resources
AWS Lambda1m reqs / mo + 400,000 GB-s / mo (based on memory configuration) + data egress (~$0.09 per GB)🚫$0.20 per 1m reqs + $0.00001667 per GB-s (over free tier) + data egress (~$0.09 per GB)
AWS Lambda@EdgeNone🚫$0.60 per 1m reqs + $0.00000625125 per GB-s + egress (~$0.09 per GB)
Azure Functions1m reqs / mo + 400,000 GB-s / mo + first 100 GB / mo egressYes$0.20 per 1m reqs + $0.000016 per GB-s (over free) + $0.08 per GB egress (over 100 GB)
Cloudflare Workers100k reqs / day, 10ms CPU / req?$20 / mo for 10m reqs / mo, 30ms CPU / req + $0.02 per million CPU ms
Fermyon100k reqs + 5GB egressNA1m reqs + 50GB egress at $20 / mo
Fly.io3 shared-cpu-1x 256mb VMs + 100GB egressNADepends on VM + $0.02 per GB egress (over free, min $5 / mo) + $0.15 per GB / mo stopped VMs
Google / Firebase Cloud Functions2m / mo reqs + 400k / mo GB-s + 200k / mo CPU-s + 5 GB / mo egressYes$0.40 per 1m reqs + $0.0000025 per GB-s + $0.0000100 per CPU-s + $0.12 per GB egress
IBM Code Engine100k vCPU-s + 200k GB-s + 100k reqs per mo?$0.00003431 / vCPU-s + $0.00000356 / GB-s + $0.538 / 1m reqs
Oracle (OCI) Functions2m / mo reqs + 400k / mo GB-sYes$0.0000002 per req + $0.00001417 per GB-s
Tencent Cloud Functions3 month trial with resource limits?$0.0000167 per GB-s + $0.002 per 10k reqs + $0.00000847 per idle GB-s + $0.06 per day + $0.0752 per GB egress
Vercel Functions100 GB-hrs + 100 GB data transferYes1,000 GB-hrs + 1TB data transfer

reqs = requests, m = million, mo = month, s = seconds, mem = memory, k = thousand, ms = milliseconds

MemoryExecution Time (s)Payloads (MB)Code Size (MB)Scale Limits
DefaultMaxDefaultMaxRequestResponse
Alibaba Cloud Function Compute32 GB32 GB86k86k32?500300
AWS Lambda128 MB10 GB3s15min6650 (zip)10k per reg. per sec.
AWS Lambda@Edge128 MB3 GB3s30s?150 (zip)10k per reg. per sec.
Azure Functions1.5 GB14 GB5min10min100??100 inst.
Cloudflare Workers128 MB128 MB10ms30ms??1 / 10100 / 500
Fermyon??30s30s??1001k RPS
Fly.io256 MB128 GBNANANANANANA
Google / Firebase Cloud Functions-32GB-60min3232None1k RPS / inst.
IBM Code Engine2 GB4 GB120s-??100 KB?
Oracle (OCI) Functions128 MB2 GB30s300s???40 GB total mem
Tencent Cloud Functions64 MB3 GB1s900s66500 (unzip)64 GB total mem
Vercel Functions1 GB3 GB10s300s??250 (zip)1k RPS per 10 sec per reg

AWS allocates 1 vCPU per 1,769 MB of memory configured.

SQL DBNo SQL DBBlob StoreFile HostingGPU
Alibaba Cloud Function Computeβœ…βœ…βœ…βœ…βœ…
AWS Lambda and Lambda@Edgeβœ…βœ…βœ…βœ…βœ…
Azure Functionsβœ…βœ…βœ…βœ…βœ…
Cloudflare WorkersSQLiteβœ…βœ…βœ…βœ…
FermyonSQLiteπŸš«πŸš«πŸš«βœ…
Fly.ioβœ…βœ…πŸš«πŸš«βœ…
Google / Firebase Cloud Functionsβœ…βœ…βœ…βœ…βœ…
IBM Code Engineβœ…βœ…βœ…βœ…βœ…
Oracle (OCI) Functionsβœ…βœ…βœ…βœ…βœ…
Tencent Cloud Functionsβœ…βœ…βœ…βœ…βœ…
Vercel Functionsβœ…βœ…βœ…βœ…πŸš«

TODO: Need a benchmark suite for Python, see this JS suite

PoPs (if edge) or regionsUptimeCold Response (ms)Warm Response (ms)Overhead (ms)
Alibaba Cloud Function Compute
AWS Lambda
AWS Lambda@Edge
Azure Functions
Fermyon
Fly.io
Google / Firebase Cloud Functions
IBM Code Engine
Oracle (OCI) Functions
Tencent Cloud Functions
Vercel Functions

TODO: e.g. compliance certifications, data encryption, and network security options

See also awesome serverless security

OursForumSOReddit
Alibaba Cloud Function ComputeLinkForumSOr/AlibabCloud
AWS Lambda and Lambda@EdgeLinkre:PostSOr/aws
Azure FunctionsLinkForumSOr/AZURE
Cloudflare WorkersLinkForumSOr/CloudFlare
FermyonLinkDiscordFeedbackSO
Fly.ioLinkForumSO
Google / Firebase Cloud FunctionsLinkGroupSOr/Firebase and r/googlecloud
IBM Code EngineLinkSlackSO
Oracle (OCI) FunctionsLinkForumSOr/oraclecloud
Vercel FunctionsLinkHelpSOr/Vercel

About

A comparison of hosts / providers for Python serverless functions (aka Faas)

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks