Skip to content

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

Render 5 min read How-to mediumAdept

Zero-Downtime Blue/Green Deployments on Render with Canary Traffic Splitting

A blue/green canary pipeline for Render orchestrates six services (API, web frontend, worker, each duplicated into blue and green environments) using SuperPlane, an open-source DevOps workflow engine, with Cloudflare weighted traffic routing, Dash0 synthetic checks and PromQL error rates, and GitHub Actions smoke tests. On push to main, the workflow detects the live environment, deploys to the idle one, shifts 30% of traffic, runs verification in parallel after a configurable soak period, and either promotes to 100% or calls Render rollback APIs and restores Cloudflare weights. In testing, smoke tests passed while Dash0 caught 5xx rates above a 1% threshold and triggered automatic rollback. Remaining tradeoffs are backward-compatible schema migrations on the shared database and the cost of running duplicate services, which can be reduced by scaling the idle environment down.

Assumes: blue/green deploymentsCI/CD pipelinesload balancer traffic weighting

Related posts

  • Canary rollouts: upgrade models in production without downtime

    Together AI mediumAdept

    Together AI's rollouts shift live inference traffic from one model deployment to another using canary, blue-green or rolling strategies. Each step scales up the target, runs health gates before shifting traffic, waits for routing caches to propagate, drains the source, and on canaries evaluates metric gates (p95 router latency, error rate, inflight requests) as relative regression or absolute threshold checks. A failed gate system-pauses the rollout; operators cancel to freeze the split and run a reverse rollout instead of using a rollback verb. In a real Qwen2.5-7B → Qwen3.5-9B canary, the gate caught a 137% p95 latency regression at 10% traffic and the reversal completed with no failed requests. Timing guidance covers metric windows, step intervals and ~90s ingestion lag.

  • Sharp opinions, clean infrastructure: How Cynical Sally serves nine clients from one backend on Render

    Render mediumAdept

    Cynical Sally, an AI roast-reviewer, runs nine clients (website, browser extensions, CLI, MCP server, open-source Lite version and upcoming apps) as thin layers over a single Render-hosted backend. The backend splits into a Next.js web service, a BullMQ background worker for minutes-long Claude Sonnet "Full Truth" reviews that would exceed serverless timeouts, and a cron service, all sharing a Frankfurt-pinned Postgres and Key Value store plus Cloudflare R2. The move off Vercel was driven by function timeouts, persistent Redis connections, the need for a long-running worker, Docker for ffmpeg, and EU data residency. A 15-line render.yaml blueprint deploys the open-source Sally Lite proxy with region, health checks and a preset API URL.

  • Parallel Run Pattern - A Migration Technique in Microservices Architecture

    Zalando Engineering mediumAdept

    Zalando's Returns team extracted returns logic from a legacy monolith into a new microservice using the Parallel Run pattern. After responding to the client, the monolith asynchronously POSTs the original request and its response to a /consistency-checks endpoint, which replays the request locally and compares status, headers and body, emitting matched/unmatched/failed metrics to Prometheus and Grafana. Each endpoint had its own consistency threshold, and traffic was switched one endpoint at a time via the Skipper proxy, which also made rollback a proxy config change. Tradeoffs include roughly doubled load, tricky comparisons (headers, ordering, PDFs), GDPR handling of captured data, unsuitability for non-idempotent endpoints, and significant setup and cleanup effort.

  • How Render Scaled Knative to 100k+ Web Apps

    Render hardMaster

    After Heroku ended its free tier, Render's free-tier app count surged and default Knative created 2N+1 Kubernetes Services per app, overloading Calico and kube-proxy on every node and raising network programming latency until stale routes caused intermittent connection failures. Render patched Knative to stop creating the Placeholder and Public Services, then removed the Private Service by routing all traffic through the activator, which was patched to watch Pod readiness and proxy directly to Pod IPs instead of EndpointSlices. The result was zero K8s Services per free-tier app, cutting Calico and kube-proxy CPU by hundreds of CPU-seconds in the largest cluster and improving latency and stability. It was only a stopgap, though, before Knative was replaced with an in-house solution.

  • Modular regression testing framework built on AWS for large-scale systems

    AWS Architecture Blog mediumAdept

    A traffic-replay regression testing framework built on AWS captures production requests and responses, replays a sample against new code in pre-production, and gates deployments on a CloudWatch alarm over the fraction of matching outputs (typically 99.9%). Step Functions toggles a Lambda event source mapping on a DynamoDB stream, replayed requests carry simulation IDs so stateful services can skip side effects and seed randomness deterministically, and responses are reduced and normalized before comparison via CloudWatch Logs Insights. Over six months it caught five customer-impacting regressions with zero false positives, using about 5% traffic replay with 200-record batches and reserved concurrency to cap load.

The quest for software engineering knowledge.

Look:
Layout: