---
title: "Intermittent downtime from repeated crashes"
description: "A poison-pill Pub/Sub message crashed incident.io's Go monolith on Heroku repeatedly, causing 13 minutes of downtime over 32 minutes."
url: "https://swe.quest/articles/intermittent-downtime-from-repeated-crashes-9e00050b528fb037"
canonical: "https://incident.io/blog/intermittent-downtime"
source: "incident.io"
published: "2022-11-30"
difficulty: "medium"
kind: "Incident"
reading_minutes: 11
tags: ["incident-response","go","resilience","messaging"]
---

# Intermittent downtime from repeated crashes

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2022-11-30, 11 min read, Incident. Original: [https://incident.io/blog/intermittent-downtime](https://incident.io/blog/intermittent-downtime)

## Summary

A poison-pill Pub/Sub message crashed incident.io's Go monolith on Heroku repeatedly, causing 13 minutes of downtime over 32 minutes. The root cause was an unhandled panic inside goroutines spawned by the Google Cloud Pub/Sub client's Receive method, which a parent goroutine's recover() cannot catch. Debugging was slowed because Go's full goroutine stack dumps overwhelmed Heroku's log rate limits, and the abrupt exit also killed Sentry reporting. The team recovered by purging suspect subscriptions, then added a recover inside the message handler and split web, worker and cron work into separate Heroku dyno tiers so worker crashes can't take down request serving.

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)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)

## Prerequisites

- Go goroutines and panics ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- message queues ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- Heroku dynos

## Keywords

Heroku, GCP Pub/Sub, Go, recover(), poison pill, Sentry

## Related posts

- [Keep the monolith, but split the workloads](https://swe.quest/articles/keep-the-monolith-but-split-the-workloads-a46b5ee6a5f1e352.md): incident.io · 2023-04-12 · Medium · 9 min read · Resilience, System design, PostgreSQL, Go, Microservices
  A Go monolith can get much of the reliability isolation of microservices by splitting workloads into separate deployments of the same binary, instead of breaking it into services.
- [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.
- [Battling database performance](https://swe.quest/articles/battling-database-performance-5c5eb431f69f9020.md): incident.io · 2023-04-20 · Medium · 10 min read · PostgreSQL, Performance engineering, Observability, Go, Incidents & postmortems
  Intermittent API timeouts at incident.io over two weeks traced back to requests blocking on Go's database/sql client-side connection pool, with no single slow query or pool to blame.
- [May 18 Replit downtime](https://swe.quest/articles/may-18-replit-downtime-8ded63600c4e370b.md): Replit · 2023-05-20 · Medium · 4 min read · Incidents & postmortems, Go, Concurrency, Deployment, Configuration management
  A latent Go bug leaked RWMutex read-locks whenever a configuration kind had no handler.
- [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.

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)
