Skip to content

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

Railway 3 min read Incident mediumAdept

Incident Report: June 6th, 2025

Database connection pressure at Railway tripped backend circuit breakers, which set off aggressive websocket reconnects from every connected client at once. Websocket handshakes sat outside the WAF policy, and a vendor contract change had removed permission to edit WAF rules, so the reconnect flood bypassed rate limiting. Timed-out clients fell back to the login page, which cleared sessions and sent enough traffic to GitHub OAuth to trigger a secondary rate limit, leaving users unable to log in for several hours. Fixes include client reconnect backoff, OAuth login rate-limit queues, websocket-aware rate-limiting rules, moving real-time reads to a read replica, WAF rules API testing, and showing login buttons only when the backend is ready.

Related posts

  • Incident Report: January 28-29, 2026

    Railway mediumAdept

    Railway users intermittently could not log in with GitHub or deploy from repos over several days because Railway exceeded GitHub's 2,000-per-hour OAuth token limit, with failures recurring about 30 minutes into each hour. The root cause was a dataloader that minted new installation tokens on every request batch (~82/sec at peak), made worse by more backend replicas, fresh user tokens for permission checks, frequent commit status updates and high-frequency repo sync jobs. Generic errors from secondary rate limits slowed diagnosis until GitHub Support confirmed the cause. Fixes included caching installation tokens for their full validity (cutting creation by over 90%), moving code paths from user OAuth tokens to app installation tokens, caching permission checks in Railway's own database, consolidating status updates, making repo sync manual and adding rate-limit alerting.

  • When protections outlive their purpose: A lesson on managing defense systems at scale

    GitHub Engineering mediumAdept

    Emergency protection rules added during past GitHub abuse incidents were left in place and began rate-limiting legitimate logged-out users with "Too many requests" errors. The rules combined fingerprinting with business-logic signals. Only 0.5–0.9% of fingerprint matches were blocked, but false positives still reached about 3–4 per 100,000 requests. Finding the cause meant correlating logs across edge, application and service layers with different schemas. GitHub removed the stale rules and now treats incident mitigations as temporary by default, with expiration, post-incident review and cross-layer visibility into which layer blocked a request.

  • Incident Report: November 20th, 2025

    Railway easyNovice

    A dip in GitHub push webhooks followed by a 10x surge flooded Railway's asynchronous deployment task queue, delaying all new deployments for about two and a half hours on November 20th, 2025. Workers locked up under memory pressure, so the team added and restarted workers and shed load by disabling deployments tier by tier (Free/Trial/Hobby, then Pro), re-enabling them in reverse order as recovery came. Running services and networking were unaffected. Follow-ups include segmented queue alerts, monitoring for deployment spikes, and fixing the worker lockup under memory pressure.

  • Incident Report: November 25th, 2025

    Railway mediumAdept

    Slow GitHub API calls (about 4x normal p95 latency) during peak hours backed up Railway's Temporal-based task queue, causing workers to run out of memory and crash in a cascading thundering-herd pattern as surviving and newly started workers were overwhelmed by the backlog. Deployments for Free, Trial and Hobby tiers were paused and Pro deploys delayed for roughly two and a half hours, while running services stayed online. Recovery came from increasing worker CPU and memory and fixing worker parameters that made them request more tasks than they could handle. Follow-up measures include an auto-tuning algorithm for worker task intake, more task queue capacity, and removing external API dependencies from critical workflows.

  • 10 Tips for Building Resilient Payment Systems

    Shopify Engineering mediumAdept

    Ten lessons from Shopify's payment infrastructure for keeping payment systems reliable at scale. Start with low timeouts everywhere: about 1s to open a connection and 5s to read, write or query. Use circuit breakers via Semian, keyed per merchant country so one local acquirer outage stays isolated, and reason about capacity with Little's Law. Track the four golden signals, use structured logs with correlation IDs, and make retries safe with idempotency keys. ULID keys cut INSERT time by 50% versus UUIDv4. The rest covers reconciliation anomalies, load testing against a simulated benchmark gateway, checkout throttling, and incident management and retrospectives.

The quest for software engineering knowledge.

Look:
Layout: