6.1 · Four axes to compare runtimes
| Axis | What it decides |
|---|---|
| Concurrency model | Event loop, OS threads, goroutines, virtual threads, actors. |
| Type safety | Compile-time guarantees vs runtime flexibility. |
| Ecosystem fit | Libs for your domain (ML, web, mobile, infra, data). |
| Hiring & ramp | Pool size in your market. |
6.2 · Node / Bun / Deno
| Node 22 | Bun 1 | Deno 2 | |
|---|---|---|---|
| JS engine | V8 | JavaScriptCore | V8 |
| Default modules | CJS + ESM | ESM + TS native | ESM + TS native |
| Bundler / installer / test | via npm + 3rd-party | built-in | built-in |
| Edge target | moderate | great | great (Deno Deploy) |
Use for: BFFs, real-time, integration glue, AI app backends. Watch out: CPU-bound code blocks the event loop — push to worker_threads or out-of-process.
6.3 · Python
- 3.12+ has improved CPython perf; PEP 703 aims at no-GIL.
- Web frameworks: FastAPI, Litestar, Django, Flask.
- ASGI servers: uvicorn, hypercorn, granian.
- Data & AI: NumPy, Pandas, Polars, PyTorch, JAX, TensorFlow.
- Modern toolchain: uv (10–100× faster pip + venv), ruff (lint), pyright (types).
6.4 · Go
- Goroutines + channels make concurrency cheap.
- Static binaries; deploy as a single file.
- Frameworks:
net/httpdirectly, Chi, Echo, Fiber, Gin. - Excellent stdlib; opinionated tooling.
- Used by: Docker, Kubernetes, Terraform, CockroachDB, almost everything cloud-native.
6.5 · Rust
- Memory-safe without GC; zero-cost abstractions.
- Web: Axum + Tokio + sqlx; Actix; Loco (Rails-style).
- Cargo handles build, test, deps, docs.
- Fits: latency-critical APIs, edge runtimes (Workers), data tooling, anywhere C++ would have been.
- Cost: longer compile times, steeper learning curve.
6.6 · JVM — Java / Kotlin / Scala
- Virtual threads (Project Loom, JDK 21+) let Java handle millions of concurrent IO without async colour.
- Frameworks: Spring Boot 3, Quarkus, Micronaut, Helidon, Vert.x, Ktor (Kotlin).
- GraalVM native-image — AOT compile to tiny startup binaries.
- Best for enterprise, fintech, anywhere the JVM ecosystem (Kafka clients, Flink, Spark) is rich.
6.7 · .NET
- .NET 9; cross-platform on Linux/macOS.
- Minimal APIs + ASP.NET Core for web; EF Core for DB.
- AOT (Native AOT) for tiny startup; great for Lambda.
- C# is excellent for typed business logic; F# for functional / domain.
6.8 · Elixir / Erlang
- BEAM VM: millions of lightweight processes, supervisor trees, hot-code reload.
- Phoenix + LiveView for real-time UIs without a separate frontend framework.
- Sweet spot: chat, real-time dashboards, telecom-like workloads.
6.9 · Framework map
| Language | Frameworks (2026) |
|---|---|
| Node / Bun | Hono, Fastify, Express, NestJS, Elysia. |
| Python | FastAPI, Litestar, Django, Flask. |
| Go | Chi, Echo, Fiber, Gin, Connect-go. |
| Rust | Axum, Actix, Loco, Rocket, Poem. |
| JVM | Spring Boot, Ktor, Quarkus, Micronaut. |
| .NET | ASP.NET Core (Minimal APIs), MVC, SignalR. |
| Elixir | Phoenix, Plug, Ash. |
| Ruby | Rails 8, Sinatra, Hanami. |
| PHP | Laravel, Symfony, Slim. |
6.10 · Cross-runtime patterns every backend needs
- Connection pooling — DB + HTTP; size with Little's Law.
- Graceful shutdown — SIGTERM → stop accepting → drain → exit.
- Health endpoints — liveness vs readiness vs startup.
- Timeouts everywhere — DB, HTTP client, RPC, queue consumer.
- Idempotency on write APIs.
- Structured logging with trace context.
- Outbox for "DB write + event publish" atomicity.
- Worker queues for slow work — keep request paths fast.
6.11 · 12-factor — and the bits to add in 2026
- Codebase — one repo per app.
- Dependencies — explicitly declared, isolated.
- Config — in env vars.
- Backing services — attached resources (URL in env).
- Build / release / run — strict separation.
- Processes — stateless.
- Port binding — self-contained.
- Concurrency — scale out via process model.
- Disposability — fast startup & graceful shutdown.
- Dev / prod parity — same OS, deps, services.
- Logs — write to stdout as event streams.
- Admin processes — run as one-off processes.
Add for 2026: 13) OTel instrumented by default · 14) signed artefacts + SBOM · 15) IaC for every long-lived resource · 16) feature flags decouple deploy/release.
6.12 · Self-check
Q1 · Java's "virtual threads" (Project Loom) primarily solve…
CPU-bound parallelism
Massive concurrent IO without async/await
Lower GC pauses
AOT compilation