Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Railway 10 min read Research mediumAdept

Server rendering benchmarks: Railway vs Cloudflare vs Vercel

Running Theo Browne's SSR benchmark suite (400 requests, 20 concurrent connections, from an EC2 client in us-west-1) against Railway with 10 replicas, Cloudflare Workers and Vercel Functions gave mixed results. Railway won SvelteKit and Vanilla JS by roughly 3-4×, React SSR was close, and Vercel and Cloudflare led on Next.js and the math workload. Bun beat Node on Railway for most tests but lost on math. Next.js is limited to a single CPU core, so it only scales horizontally. Node also builds V8 without a faster trig-function path that Workers enables, and container runtimes cost about 40% versus native, a gap Railway expects a new VM runtime to close.

Assumes: server-side renderingserverless functionsNode.js runtime basics

Related posts

  • Deploy Full-Stack TypeScript Apps: Architectures, Execution Models, and Deployment Choices

    Railway easyNovice

    Full-stack TypeScript apps can be structured either as a single framework codebase (Next.js, SvelteKit, TanStack Start) or as independently deployed services in a monorepo, and the choice interacts with whether you deploy to serverless platforms or long-running servers. Serverless (Cloudflare Workers, Vercel) gives automatic scaling and no infrastructure management, but imposes stateless, instance-scoped globals, 128 MB memory and CPU-time caps on Workers, and no persistent connections. That rules out ETL, media processing, WebSocket chat and live dashboards. Long-running servers keep in-memory state, open connections and arbitrary protocols, at the cost of capacity planning. Railway pitches itself as offering those server semantics with usage-based billing and managed infrastructure.

  • How we built JSR

    Deno mediumAdept

    JSR, the JavaScript Registry, splits into components with different reliability targets: a highly available Postgres cluster behind a Rust/Hyper API on Google Cloud Run targeting 99.9%, and a global CDN for package source and npm tarballs targeting 100% uptime. The jsr.io site uses Fresh's server-side rendering with island hydration and plain HTML forms. TTFB for users far from the US region was cut by eliminating request waterfalls, so no route needs more than one roundtrip between the render server and the API. At publish time, diverse module resolution styles are normalized into an explicit ESM format so consumers never depend on probing.

  • Bun 1.2

    Bun mediumAdept

    Bun 1.2 makes a major push on Node.js compatibility by porting thousands of files from the Node.js test suite into Bun's CI, with stubbed internal bindings and assertions on error name/code rather than message text. It adds a node:http2 server, node:dgram, node:cluster, a native rewrite of node:zlib with Brotli, V8 C++ addon API support implemented on JavaScriptCore, and V8 heap snapshots. It also introduces a native S3 client (Bun.s3) with presigned URLs, multipart writers and s3:// support in Bun.file and fetch, a built-in Postgres client (Bun.sql), and a text-based bun.lock lockfile. Claimed numbers include Express up to 3x faster than Node.js, HTTP/2 serving 2x faster, and S3 downloads 5x faster than @aws-sdk/client-s3.

  • Node.js at scale, rebalanced: how we cut cost by 38%

    Booking.com Engineering mediumAdept

    Booking.com cut compute costs for its largest Node.js React SSR service by 38% (30% fewer pods, 20% less memory per pod, up to 10% lower tail latency) without touching service code, by moving from pm2's cluster-based processes to wattpm worker threads and revisiting long-untouched configuration. Synthetic k6 tests showed 20-50% more throughput within latency SLOs, validated through a side-by-side production A/B split at the routing layer. Production exposed uneven worker load because SO_REUSEPORT's connection hashing interacted badly with nginx loopback connections recycled via tcp_tw_reuse. Giving each worker its own port and load-balancing in nginx fixed it, which also opened the door to smarter balancing between heavy renders and light metadata requests.

  • Which serverless edge platform has the fastest git deployments?

    Deno mediumAdept

    A push-to-live benchmark of git deployments across edge platforms, timed with a Deno script that pushes to main and polls the site until a marker string appears. Cloudflare Workers (~60s, mostly edge propagation after a 22s GitHub Action), Fly.io (~57s, mostly flyctl Docker image builds) and a Next.js site on Vercel (~54s, mostly build) all land near a minute. A later update deploying only a Vercel edge function brought the median to about 12.6s. Deno Deploy went live in 3.5s, which the vendor attributes to uploading code directly and running it in V8 isolates instead of provisioning VMs or containers. AWS Lambda@Edge was not measured because wiring CloudFront triggers via GitHub Actions proved difficult.

The quest for software engineering knowledge.

Look:
Layout: