The side quest that freed 10% of our database
A single lateral-join query answering "who's on call for this rotation layer right now" consumed 34% of incident.io's Postgres replica CPU.
A single lateral-join query answering "who's on call for this rotation layer right now" consumed 34% of incident.io's Postgres replica CPU.
AI model providers can mostly be managed like any third-party dependency, with SLAs, SLOs, an LLM gateway, failover and observability, and they count toward dependency availability ceilings (three 99.99% components cap you near 99.97%).
AI features that have quietly become part of engineers' workflows need designed fallbacks for both outright model outages and silent quality regressions.
incident.io's Cursor cloud agents now QA React Native pull requests by driving an iOS simulator (EAS Simulator) or Android emulator in the cloud against a per-agent copy of the Go backend with seeded Postgres data, tunnelled back to the agent's VM, and attach claims linked to screenshots and a session recording.
Using a SAVEPOINT per tick in a Postgres-backed job queue made every locked row carry a MultiXact ID in xmax.
Building a reliable AI SRE took incident.io two years, far longer than the first promising prototype suggested, and the hard work sat in four areas around the model.
incident.io made its rate limiter keep working when its Valkey backing store (Google Cloud Memorystore) is unavailable, instead of failing open.
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.
incident.io built an internal "data brain" agent that answers business questions against BigQuery by encoding institutional analyst knowledge rather than relying on raw text-to-SQL.
incident.io moved nearly all Postgres read traffic to a read replica and had to preserve read-after-write consistency without hand-routing each query.
incident.io measures On-call reliability with two customer-centric SLIs, alert ingestion availability and notification delivery latency under 5 minutes, both targeted at 99.99% monthly.
A 99.99% availability target leaves only about 4 minutes 23 seconds of downtime per month, and even an idealised 3am page-wake-runbook-failover sequence exceeds it, so four nines can't depend on a human in the critical path.
incident.io's on-call schedule renderer, which computes future shifts on the fly from rotation config, working hours and fair-scheduling rules, became dramatically faster through a series of fixes culminating in a ~2,500x speedup.
incident.io runs a deliberately minimal stack on Google Cloud that lets two platform engineers support thousands of customers.
incident.io cut its typical lint-plus-compile feedback loop from over 90 seconds to under 10, arguing that fast toolchains matter even more when AI coding agents generate code faster than slow tools can validate it.
incident.io cut P95 latency of its alert-filtering API for large organisations from 5s to 0.3s by pushing JSONB attribute filters into Postgres using bloom filters.
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.
incident.io defines its HTTP API in Goa's design-first DSL, which generates net/http transport handlers, validation code, typed Go service interfaces, OpenAPI 3.0 specs and Go clients.
incident.io cut CI/CD times by moving from a hosted provider, where a cold Go build cache made compiling 15,000+ tests across 350+ packages the bottleneck, to Buildkite running on three self-hosted 48-vCPU servers.
incident.io engineers run four to seven Claude Code agents in parallel, each isolated in its own Git worktree so concurrent sessions don't clobber a shared working directory.
incident.io built Workbench, an internal AI tooling suite, instead of buying an off-the-shelf eval and observability product such as Galileo or Braintrust, to support development of its incident-investigating AI agent.
incident.io cut its incident chatbot's response latency by about 50% (saving 2-3s per interaction) by speculatively executing LLM tool calls in both directions.
Letting an LLM iteratively rewrite a prompt until evals pass produces overfitted, brittle prompts.
Six practical techniques fix prompts that resist the usual remedies.
incident.io cut latency of an LLM prompt that plans Grafana dashboards for incident investigations from 11s to under 2.3s without changing its behaviour, mainly by shrinking output tokens.
After hitting OpenAI billing limits broke its early AI features, incident.io built per-prompt cost attribution into its Go LLM abstraction, using reflection to capture each prompt's type name alongside token usage and emitting it to Grafana metrics and Postgres records for BI.
Postgres deadlocks come from transactions acquiring locks in inconsistent orders, and the main fix is to restructure transactions so they always lock resources in the same sequence.
On 28 August 2023, a valid ADEXP flight plan containing duplicate waypoint codes (DVL for Deauville and Devil's Lake) hit a rare six-condition edge case in NATS's FPRSA-R conversion system.
incident.io dogfoods its own paging product and covers the case where its alerting platform itself fails with a dead man's switch.
incident.io assigns error ownership inside its monolith by dividing the codebase into team-owned units (apps, backend feature packages, integrations), each with a required jsonnet module file declaring owner, criticality and customer-facing features.
incident.io masks sensitive data in BigQuery by default: a daily Python job applies PII and confidential policy tags to every untagged STRING/BYTES column replicated by Fivetran, so humans see only SHA256-hashed values.
incident.io structures its dbt warehouse in three layers: staging models that rename, cast and lightly combine source tables, intermediate models that handle reusable joins and expensive calculations, and marts split into internal dim/fct tables and customer-facing insights models.
Distributed tracing with OpenTelemetry lets incident.io engineers spot bugs before customers report them, by showing each request's route as a tree of timed spans that exposes slow steps, N+1 queries and duplicate calls.
Postgres indexes pay off for frequently run queries that discard most rows they read, need results in a specific order, or must enforce uniqueness.
incident.io runs data quality tests with dbt's native testing and tackled two problems: flaky relationship tests and slow debugging of failures.
incident.io structures observability for its on-call product as a consistent drill-down path.
incident.io runs an end-to-end smoke test suite for its On-call paging product every minute against production and staging, and also on every pull request and deploy using containers on a single machine.
incident.io's 2024 data stack runs Fivetran and Segment into BigQuery, dbt (run via Docker on CircleCI) for transforms, and Hightouch for reverse ETL.
A new Data Engineer's first quarter rebuilding a Fivetran, BigQuery, dbt, CircleCI and Omni data stack.
incident.io's on-call scheduler computes who is on shift from rotations with working hours, round-robin handovers and overrides, and getting it right depends on being precise about local time, offsets, IANA timezones, instants and durations.
Delivering on-call notifications via SMS and phone calls means routing through a telecom API provider and its carrier partners, where status signals are often unreliable.
incident.io built its on-call mobile app with React Native and Expo after weighing native iOS/Android, Kotlin Multiplatform and Flutter.
When a JSONB column's shape changes, a custom sql.Scanner and driver.Valuer on the Go column type can read both the old and new formats while always writing the new one. incident.io used this to move conditions from a flat array to an array of condition groups, which was needed to support OR logic.
New engineers at incident.io onboard themselves by opening a PR to the infrastructure repo that adds them as a user, puts them on a team in a Jsonnet config, and defines a Spacelift dev stack.
incident.io's Terraform integration lets users generate readable, commented Terraform config from the existing Workflows and Schedules visual builders, and the same flow handles editing and importing existing resources.
incident.io built a related-incidents feature by embedding a plain-text representation of each incident with OpenAI's text-embedding-ada-002 and ranking matches by cosine similarity.
incident.io built suggested incident summaries with OpenAI: each time a responder posts an update, GPT proposes a new summary from the update, the Slack conversation and the previous summary, and a human accepts, edits or rejects it.
incident.io sped up builds of its Go monolith by tracing the compiler with `go build -debug-trace` and viewing the output in Perfetto.