AI Changed How Spotify Builds. What We Learned (and Fixed) About Quality at Higher Velocity
Spotify's quality regressions during its AI ramp-up came not from AI-authored code but from change volume outpacing verification, plus AI-driven compute scarcity that made regional failovers visible to users. Fixes include end-to-end monitoring and scheduler/priority changes for content processing, stronger safeguards and working-hours scheduling for automated fleet updates, doubled reserved edge capacity with tiered failover, and broader long-term quality signals for mobile releases. Internal data shows merged PRs doubling (8,100 to 17,000) with quality work rising from 27% to 31% and no rise in a rebuilt, age-weighted rework rate, though growing PR size and complexity remain open warning signals.
Related posts
- Infrastructure Observability for Changing the Spend Curve
Slack Engineering mediumAdeptSlack bent the growth curve of its webapp CI spend, which had been rising about 10% month over month, by using observability (dashboards, metrics and tracing) to drive three changes. Adaptive capacity standardized instance types and oversubscribed executors per instance after profiling vCPU and executor-count combinations, cutting costs about 70% and error rates about 50% while targeting 50% busy executors at peak. Circuit breakers in the Checkpoint orchestrator defer or cancel CI work when downstream services such as Jenkins, Vitess, Flannel or Search degrade, which stops cascading failures. Tracing the Cypress test runtime exposed runtime variables tied to flakiness, which had been burning roughly 90k compute hours a week.
- How to Reliably Scale Your Data Platform for High Volumes
Shopify Engineering mediumAdeptShopify's Data Platform Engineering team prepared Tier 1 and Tier 2 ingestion and query services for a forecast near-doubling of BFCM 2020 traffic with a five-step reliability process. The steps were to define each service's primary objective (a freshness SLO for the Longboat batch ingester, a latency SLO for Reportify), identify tunable knobs such as job frequency, overlap interval, GKE CPU/memory, BigTable node pools and ProxySQL pools, and constrain those knobs to simulate N-times load. Teams then validated that every alert was actionable with simple runbooks and decided where to scale or tune. The exercise led to cluster scale-ups and job and query tuning, and BFCM ran with a 150% throughput increase and only minor self-healing incidents.
- Degrade gracefully: designing AI features that keep working when the model doesn't
incident.io easyNoviceAI features that have quietly become part of engineers' workflows need designed fallbacks for both outright model outages and silent quality regressions. Model failover is harder than database failover. Prompts are tuned per model, legal and subprocessor constraints limit rerouting, fallback granularity is a design tradeoff, and unexercised fallbacks go stale. Skyscanner tames some of this with an LLM gateway and model tiers. Recommended principles: give every AI feature a deterministic or manual floor, compose features so failure is partial, keep models off the critical path, avoid models where determinism is required, exercise fallbacks with real traffic, and detect quality drops via LLM-as-judge metrics and user feedback signals.
- Rapidly scaling online storage to serve over 1 billion ChatGPT users
OpenAI mediumAdept
Habitat, OpenAI's online storage platform, grew from a client-side Python library over Azure Cosmos DB into a centralized Python service handling 70M+ requests per second and 500+ PB across about 40 regions. It moved to a service because coordinating client-library rollouts across dozens of services had become slow and error-prone. Running Python at this scale meant fighting tail latency from asyncio event-loop scheduling delay, which the team measured directly and controlled by keeping per-process concurrency low and scaling out worker processes. Specific fixes included shrinking and jittering Statsig feature-flag config refreshes, and switching aiohttp's LIFO connection reuse to FIFO to break a metastable failure that concentrated load on already-slow processes.
- Service disruption on October 20, 2025
incident.io mediumAdeptThe 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. Delayed SMS and phone notifications cascaded because notification queues shared worker capacity, and slow retries stretched jobs to 30s. Fixes were blocked by a hidden Docker Hub base-image dependency in the deploy pipeline. Scaling escalation workers made things worse because dead tuples in a Postgres index made queue acquisition consume about 50% of worker capacity, and a rate-limiter bug applied limits only to the top 10 organisations. Remediations include a self-contained GCP build pipeline, region failover for Scribe, aggressive autovacuum, reworked acquisition logic, and per-provider isolated notification workers.