---
title: "We turned off Pub/Sub and nobody noticed"
description: "incident.io removed Google Cloud Pub/Sub as a single point of failure by adding NATS as a second message broker in an active-active setup behind its existing Go `eventadapter` abstraction."
url: "https://swe.quest/articles/we-turned-off-pub-sub-and-nobody-noticed-df128aa62ef239e4"
canonical: "https://incident.io/blog/we-turned-off-pub-sub-and-nobody-noticed"
source: "incident.io"
published: "2026-08-11"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["messaging","resilience","event-driven","go","chaos-engineering"]
---

# We turned off Pub/Sub and nobody noticed

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2026-08-11, 13 min read, Case study. Original: [https://incident.io/blog/we-turned-off-pub-sub-and-nobody-noticed](https://incident.io/blog/we-turned-off-pub-sub-and-nobody-noticed)

## Summary

incident.io removed Google Cloud Pub/Sub as a single point of failure by adding NATS as a second message broker in an active-active setup behind its existing Go \`eventadapter\` abstraction. Publishes are split 50/50 by FNV-hashing each message's ULID, with per-broker circuit breakers and automatic failover. On the subscribe side, a scheduler inspired by delay-based MaxWeight and Oldest Cell First shares one \`MaxHandlers\` semaphore across both brokers and always dispatches the oldest head message, so a backed-up broker gets priority without extra resource use. The design was validated by deleting the production NATS cluster and by built-in fault injection simulating Pub/Sub outages, with no customer impact, in service of a 99.99% SLA across ~240M messages/day.

Written by swe.quest, not by the author.

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

## Topics

- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Chaos engineering](https://swe.quest/tags/chaos-engineering.md) (Reliability & operations)

## Prerequisites

- message brokers and pub/sub
- Go concurrency ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- circuit breakers

## Keywords

Google Cloud Pub/Sub, NATS, MaxWeight, Oldest Cell First, incident.io, Kubernetes

## Related posts

- [Reducing our pager load](https://swe.quest/articles/reducing-our-pager-load-9bf7f4a021b251f9.md): incident.io · 2022-04-22 · Medium · 7 min read · Incidents & postmortems, Observability, Go, SRE
  incident.io pages on every Sentry error, and cut the resulting noise with four quick changes instead of switching to error-rate alerting.
- [Intermittent downtime from repeated crashes](https://swe.quest/articles/intermittent-downtime-from-repeated-crashes-9e00050b528fb037.md): incident.io · 2022-11-30 · Medium · 11 min read · Incidents & postmortems, Go, Resilience, Queues & messaging
  A poison-pill Pub/Sub message crashed incident.io's Go monolith on Heroku repeatedly, causing 13 minutes of downtime over 32 minutes.
- [How we page ourselves if incident.io goes down](https://swe.quest/articles/how-we-page-ourselves-if-incident-io-goes-down-da15431a7f4e622f.md): incident.io · 2024-11-27 · Medium · 6 min read · Incidents & postmortems, Resilience, Observability, SRE
  incident.io dogfoods its own paging product and covers the case where its alerting platform itself fails with a dead man's switch.
- [Interning at incident.io: rate limiting, resiliently](https://swe.quest/articles/interning-at-incident-io-rate-limiting-resiliently-703eb65d0ab42974.md): incident.io · 2026-09-02 · Medium · 10 min read · Resilience, Algorithms, Kubernetes, Engineering culture
  incident.io made its rate limiter keep working when its Valkey backing store (Google Cloud Memorystore) is unavailable, instead of failing open.
- [Service disruption on October 20, 2025](https://swe.quest/articles/service-disruption-on-october-20-2025-fe786fa7dabbc413.md): incident.io · 2025-10-22 · Medium · 12 min read · Incidents & postmortems, Resilience, PostgreSQL, CI/CD, Cloud platforms
  The October 20, 2025 AWS us-east-1 outage degraded incident.io through third-party dependencies even though it runs on Google Cloud: its transcription, SAML, telecom and status page providers were all affected.

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)
