Skip to content

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

Repository files navigation

Comparing hosts / providers for serverless cloud functions (FaaS) for Python

discord twitter

No Python support: Netlify Functions, Supabase Edge Functions, and Deno Deploy (all JavaScript/TypeScript only). IBM Cloud Functions (OpenWhisk) was shut down in October 2024 — IBM Code Engine is its replacement. AWS App Runner is excluded because idle services still incur provisioned-memory charges (no scale to zero cost). StackPath EdgeEngine no longer exists.

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), and between true FaaS (per-request billing) and scale-to-zero container/VM platforms (per-second instance billing: Fly.io, Koyeb, Render).

Data last verified July 2, 2026 against the sources listed in References. Pricing is USD (except Scaleway, EUR) and subject to change — always confirm against the linked official pages. ❔ = could not be verified against official sources.

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

See also the "one-click" container image deployment comparison (not Python specific) and the Serverless SQL DB Comparison

Recent Platform Changes (2024–2026)

DevEx

Python Version Status API Framework Requirements Local Testing Docs Hello World
Alibaba Cloud Function Compute 3.12 GA Plain object / WSGI Vend in zip or Serverless Devs 🎉 Link
AWS Lambda & Lambda@Edge 3.14 GA Plain object Vend in zip (SAM build automates) ✅ (SAM local) 🎉 Link
Azure Functions 3.13 (3.14 preview) GA azure-functions v2 decorators, ASGI/WSGI ✅ (Core Tools) 🎉 Link
Cloudflare Workers (WASM) 3.13 (Pyodide) Beta fastapi and others pyproject.toml + pywrangler 🎉 Link
DigitalOcean Functions 3.13 GA Plain object requirements.txt + build.sh ✅ (doctl serverless) 👍 Link
Fermyon (WASM) 3.10+ Experimental SDK, Cloud in open beta Spin (componentize-py) ✅ (spin build --up) 🎉 Link
Fly.io (microVM) Any GA Any 👍 Link
Google Cloud Run 3.14 GA functions-framework, Flask, FastAPI, or any container (requirements.txt or pyproject.toml) 🎉 Link
IBM Code Engine 3.13 (3.11 deprecated) GA Plain object Manual (no emulator) 👍 Link
Koyeb (containers) Any GA Any 👍 Link
Modal 3.10–3.14 (per-image) GA @app.function() decorators, ASGI/WSGI In-code image definition (incl. pip_install_from_requirements) ☁️ (modal serve runs in cloud with live-reload) 🎉 Link
Oracle (OCI) Functions 3.12 GA FDK ✅ (built into container) ✅ (Fn CLI) Min. Link
Render 3.14 GA Any WSGI/ASGI 👍 Link
Scaleway Serverless Functions 3.13 GA Handler function Vend in zip ✅ (local framework) 👍 Link
Tencent Cloud Functions 3.10 GA (maintenance mode, see note) Plain object / Web functions Vend in zip Min. Link
Vercel Functions 3.14 (3.12 default fallback) Beta HTTP handler or WSGI / ASGI (FastAPI/Flask/Django presets) ✅ (vercel dev) 👍 Link

Tencent note: no official discontinuation exists, but the Python runtime is stale (3.10, CentOS 7), the free tier is trial-only, API Gateway triggers were decommissioned in June 2025, and Tencent's serverless investment has shifted to CloudBase.

Pricing

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

Free Plan Bill Limits First Paid Tier
Alibaba Cloud Function Compute 🚫 since Aug 2024; 3-month trial of 150k CUs / mo + 220 GB / mo egress via CDT ? Tiered Compute-Unit billing: $0.000020 → $0.000014 per CU + egress via CDT
AWS Lambda 1m reqs / mo + 400,000 GB-s / mo (always free) + 100 GB / mo egress 🚫 $0.20 per 1m reqs + $0.0000166667 per GB-s x86 ($0.0000133334 Arm) + ~$0.09 per GB egress; INIT phase billed since Aug 2025
AWS Lambda@Edge None 🚫 $0.60 per 1m reqs + $0.00005001 per GB-s (50 ms granularity) + egress (~$0.09 per GB)
Azure Functions Consumption: 1m execs + 400k GB-s / mo; Flex: 250k execs + 100k GB-s / mo; + 100 GB / mo egress Yes Consumption: $0.20 per 1m + $0.000016 per GB-s; Flex: $0.40 per 1m + $0.000026 per GB-s; + $0.087 per GB egress (over 100 GB)
Cloudflare Workers 100k reqs / day, 10ms CPU / req; egress always free ? $5 / mo incl. 10m reqs + 30m CPU-ms; then $0.30 per 1m reqs + $0.02 per 1m CPU-ms (wall time & egress not billed)
DigitalOcean Functions 90,000 GiB-s / mo ? $0.0000185 per GiB-s (no per-request fee)
Fermyon 100k reqs + 5GB egress NA Growth ~$19 / mo: 1m reqs + 50GB egress
Fly.io 🚫 for new orgs since Oct 2024 (one-time trial: 2 VM-hrs / 7 days) NA Per-second VM pricing (shared-cpu-1x 256 MB ≈ $2 / mo) + $0.02 per GB egress (NA/EU) + $0.15 per GB / mo stopped VM rootfs
Google Cloud Run 2m reqs + 180k vCPU-s + 360k GiB-s RAM + 1 GiB NA egress / mo Yes $0.40 per 1m reqs + $0.000024 per vCPU-s + $0.0000025 per GiB-s + egress at network rates
IBM Code Engine 100k vCPU-s + 200k GB-s + 100k reqs / mo ? $0.00003431 per vCPU-s + $0.00000356 per GB-s + $0.538 per 1m reqs
Koyeb One free instance (0.1 vCPU / 512 MB), scales to zero after idle NA Per-second instance billing from ~$0.000006 / s
Modal $30 / mo usage credit (Starter plan) Yes (credits) $0.0000131 per CPU core-s + $0.00000222 per GiB-s RAM (no request or egress fees)
Oracle (OCI) Functions 2m reqs + 400k GB-s / mo + 10 TB / mo egress Yes $0.0000002 per req + $0.00001417 per GB-s + $0.0085 per GB egress
Render Free instance (0.1 CPU / 512 MB), 750 hrs / mo, sleeps after 15 min idle NA $7 / mo Starter instance (0.5 CPU / 512 MB) + $0.15 per GB egress over included 5–25 GB
Scaleway Serverless Functions 1m reqs + 400k GB-s / mo; free ingress/egress ? €0.15 per 1m reqs + €0.0000170 per GB-s
Tencent Cloud Functions 🚫 (3-month trial only; free tier eliminated 2022–2024) ? Pay-as-you-go: GB-s + per-10k invocations + egress (price table)
Vercel Functions Hobby: 1m invocations + 4 active-CPU-hrs + 360 GB-hrs provisioned mem + 100 GB transfer / mo Yes (hard caps on Hobby) Pro $20 / seat / mo + $0.60 per 1m invocations + $0.128 per active-CPU-hr + $0.0106 per GB-hr provisioned mem

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

Runtime Limits

Memory Execution Time (s) Payloads (MB) Code Size (MB) Scale Limits
Default Max Default Max Request Response
Alibaba Cloud Function Compute 32 GB 86,400 (24 h) 32 (sync) / 0.128 (async) 500 (zip, major regions) 100 on-demand inst. / region default
AWS Lambda 128 MB 10 GB 3s 15min 6 6 (20 streaming) 50 (zip) / 250 (unzip) / 10 GB (image) 1k concurrent / region (soft)
AWS Lambda@Edge 128 MB 3 GB (origin) - 5s viewer / 30s origin ? 0.04 viewer / 1 origin 50 (zip) per CloudFront quotas
Azure Functions 1.5 GB (Consumption, fixed) 4 GB (Flex) 5min 10min (Consumption); no max on Flex (HTTP: 230s) 100 ? ? 100 inst. (Consumption) / 1,000 (Flex)
Cloudflare Workers 128 MB (fixed) 128 MB 10ms CPU (free) / 30s CPU (paid default) 300s CPU (paid); no wall-clock limit 100 none enforced 3 (free) / 10 (paid), compressed 100 / 500 Workers per account
DigitalOcean Functions 256 MB 1 GB 3s 15min 1 1 48 120 concurrent / namespace
Fermyon ? (Wasm) ? 30s 30s 10 10 100 1k RPS
Fly.io 256 MB 128 GB (16 perf. vCPU) NA NA NA NA NA NA
Google Cloud Run 512 MiB 32 GiB 5min 60min 32 32 (unbounded if streamed) None 80 concurrent reqs / inst. default (max 1k)
IBM Code Engine 4 GB (1 vCPU) 4 GB - 120s 5 5 0.1 (inline) / 200 (source) 20 fns / project; 250 inst.
Koyeb per instance type - NA NA NA NA NA instance-based
Modal configurable ~336 GiB 300s 86,400 (24 h) 4 GiB unlimited NA (image-based) 100 containers / 10 GPUs (Starter)
Oracle (OCI) Functions 128 MB 3 GB 30s 300s (3,600s detached) 6 6 ? 60 GB total mem / AD
Render 512 MB (free) 8 GB+ (instance type) NA NA NA NA NA 100 inst. / service (autoscaling on Pro+)
Scaleway Serverless Functions 128 MB 4 GB 300s 3,600 (HTTP) 6 ? 100 (zip) / 500 (unzip) 50 inst. / fn; 5k reqs / s
Tencent Cloud Functions 128 MB 4 GB ❔ 3s 900s (24 h async) ❔ 6 6 500 (unzip) ❔ region-shared concurrency
Vercel Functions 2 GB (Standard, 1 vCPU) 4 GB (Performance, 2 vCPU) 300s 800s (1,800s beta) 4.5 4.5 250 (500 for Python) ~30k concurrent (Pro)

AWS allocates 1 vCPU per 1,769 MB of memory configured. Cloudflare bills and limits CPU time only — wall-clock time (e.g. waiting on I/O) is unlimited and unbilled. Modal, Fly.io, Koyeb, and Render size CPU/memory per instance rather than per invocation.

Other Platform Products

SQL DB No SQL DB Blob Store File Hosting GPU
Alibaba Cloud Function Compute
AWS Lambda and Lambda@Edge
Azure Functions
Cloudflare Workers SQLite (D1) ✅ (Workers AI)
DigitalOcean Functions ✅ (Spaces)
Fermyon SQLite 🚫 🚫 🚫
Fly.io ✅ (Tigris) 🚫 🚫 after Aug 2026
Google Cloud Run
IBM Code Engine
Koyeb ✅ (Postgres) 🚫 🚫 🚫
Modal 🚫 ✅ (Dicts/Queues) ✅ (Volumes) 🚫
Oracle (OCI) Functions
Render ✅ (Postgres) ✅ (Key Value) 🚫 ✅ (static) 🚫
Scaleway Serverless Functions
Tencent Cloud Functions
Vercel Functions ✅ (Blob) 🚫

Performance (median times)

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

PoPs (if edge) or regions Uptime Cold Response (ms) Warm Response (ms) Overhead (ms)
Alibaba Cloud Function Compute
AWS Lambda
AWS Lambda@Edge
Azure Functions
Cloudflare Workers ~1,000 (with FastAPI, post-Dec-2025 snapshots)
DigitalOcean Functions
Fermyon
Fly.io
Google Cloud Run
IBM Code Engine
Koyeb ~200 (Light Sleep) / 1,000–5,000 (Deep Sleep)
Modal
Oracle (OCI) Functions
Render up to ~60,000 (free tier spin-up)
Scaleway Serverless Functions
Tencent Cloud Functions
Vercel Functions

Security Considerations

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

See also awesome serverless security

Discussions, Community, and Support

Ours Forum GitHub SO Reddit
Alibaba Cloud Function Compute Link Forum SO r/AlibabCloud
AWS Lambda and Lambda@Edge Link re:Post GitHub SO r/aws
Azure Functions Link Forum GitHub SO r/AZURE
Cloudflare Workers Link Forum GitHub SO r/CloudFlare
DigitalOcean Functions Community GitHub SO
Fermyon Link Discord Spin (CNCF) SO
Fly.io Link Forum SO
Google Cloud Run Link Group GitHub SO r/Firebase and r/googlecloud
IBM Code Engine Link Slack GitHub SO
Koyeb Community
Modal Slack GitHub
Oracle (OCI) Functions Link Forum GitHub SO r/oraclecloud
Render Community Feedback
Scaleway Serverless Functions Slack GitHub SO
Vercel Functions Link Help GitHub SO r/Vercel

References and Useful Links

All sources below were used to verify the data above and were accessed on July 2, 2026.

Alibaba Cloud Function Compute

AWS Lambda / Lambda@Edge

Azure Functions

Cloudflare Workers (Python)

DigitalOcean Functions

Fermyon / Spin

Fly.io

Google Cloud Run

IBM Code Engine

Koyeb

Modal

Oracle (OCI) Functions

Render

Scaleway Serverless Functions

Tencent Cloud Functions

Vercel Functions

Excluded platforms

Other comparisons

About

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

Topics

Resources

License

Code of conduct

Stars

49 stars

Watchers

1 watching

Forks

Contributors