---
title: "Incident Report: June 6th, 2025"
description: "Database connection pressure at Railway tripped backend circuit breakers, which set off aggressive websocket reconnects from every connected client at once."
url: "https://swe.quest/articles/incident-report-june-6th-2025-9658b33640a716b2"
canonical: "https://blog.railway.com/p/incident-report-june-6-2025"
source: "Railway"
published: "2025-06-06"
difficulty: "medium"
kind: "Incident"
reading_minutes: 3
tags: ["incident-response","resilience","realtime","identity-auth"]
---

# Incident Report: June 6th, 2025

A post on [Railway](https://swe.quest/sources/railway.md), published 2025-06-06, 3 min read, Incident. Original: [https://blog.railway.com/p/incident-report-june-6-2025](https://blog.railway.com/p/incident-report-june-6-2025)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)

## Prerequisites

- circuit breakers
- websockets ([easy posts on Real-time systems](https://swe.quest/tags/realtime.md?difficulty=easy))
- OAuth login flows ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))
- database connection pooling ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

Railway, GitHub OAuth, WAF, websockets

## Related posts

- [Incident Report: January 28-29, 2026](https://swe.quest/articles/incident-report-january-28-29-2026-596231b4a4df80f7.md): Railway · 2026-01-26 · Medium · 4 min read · Incidents & postmortems, Identity & auth, Caching, API design
  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.
- [When protections outlive their purpose: A lesson on managing defense systems at scale](https://swe.quest/articles/when-protections-outlive-their-purpose-a-lesson-on-managing-defense-systems-at-7fcb8ad566ecf603.md): GitHub Engineering · 2026-01-15 · Medium · 5 min read · Incidents & postmortems, Resilience, Observability, Threat detection
  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.
- [Incident Report: November 20th, 2025](https://swe.quest/articles/incident-report-november-20th-2025-8a5b09711237e8e3.md): Railway · 2025-11-21 · Easy · 3 min read · Incidents & postmortems, Resilience, Deployment, Queues & messaging
  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.
- [Incident Report: November 25th, 2025](https://swe.quest/articles/incident-report-november-25th-2025-0f5ac3667ca5f9ba.md): Railway · 2025-11-25 · Medium · 3 min read · Incidents & postmortems, Resilience, Scheduling
  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.
- [10 Tips for Building Resilient Payment Systems](https://swe.quest/articles/10-tips-for-building-resilient-payment-systems-94c9ade99576742c.md): Shopify Engineering · 2022-07-28 · Medium · 13 min read · Payments & fintech, Resilience, Observability, Incidents & postmortems, Ruby
  Ten lessons from Shopify's payment infrastructure for keeping payment systems reliable at scale.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
