Postmortem: Service disruptions on June 6 & 7 2022
Four Figma outages over June 6–7, 2022 were caused by Engine CPU saturation on a Cluster-Mode Enabled AWS ElastiCache Redis node, triggered by Pub/Sub traffic flowing over the Redis Cluster Bus. The Cluster Bus's outgoing buffer grows exponentially when sends fall behind any node, and each partial send truncates it via sdsrange/memmove, whose cost scales with the remaining buffer size, creating a self-reinforcing CPU spiral. Scaling up to a larger cluster made things worse because more nodes lowered the trigger threshold. Figma recovered by partitioning Redis workloads into separate clusters and moving Pub/Sub to Cluster-Mode Disabled instances, and recommends avoiding Pub/Sub on cluster-mode Redis until the bug is fixed.
Related posts
- Figma's next-generation data caching platform
Figma mediumAdept
FigCache is a stateless Go proxy that speaks the Redis RESP wire protocol. Figma built it as a unified data plane in front of its ElastiCache Redis fleet, together with first-party client wrappers in Go, Ruby and TypeScript. It multiplexes many client connections onto a bounded pool of Redis connections, which protects Redis from thundering herds when client services scale up. It also centralizes routing across clusters and adds consistent observability. Internally, the in-house ResPC framework handles streaming RESP parsing and schema-driven command parsing, feeding a configuration-driven tree of filter and data engines that does things like scatter-gather fanout to resolve cross-slot pipelines. Figma chose to build rather than adopt an open-source proxy to get protocol extensibility, Redis Cluster emulation and custom commands such as Redlock-based locking, and the caching layer has reached six nines of uptime since rollout.
- Root Cause Analysis for Render's Extended Service Disruption on 3/26/24
Render mediumAdept
A faulty control-plane code change on March 26, 2024 restarted every customer and system workload on Render; a feature-flag bug had kept it from running in staging, and test infrastructure differed between environments. Stateless services and static sites recovered within about 15 minutes. Hundreds of thousands of services with attached disks (managed PostgreSQL, Redis, persistent disks) had to be detached and reattached across hosts at once, which hit internal and cloud-provider rate limits and delayed full recovery to 20:00 UTC. Fixes include higher rate limits, batched disk operations for roughly 10x throughput, least-privilege permissions for control-plane components, consistent test environments and faster, more accurate status-page updates.
- Slack’s Incident on 2-22-22
Slack Engineering mediumAdeptA Consul agent rolling restart caused Mcrib, Slack's memcached control plane, to replace and flush cache nodes, dropping hit rates during peak traffic. A cache-fronted Group DM membership query hit a Vitess keyspace sharded by user, so every miss became a scatter query across all shards. Database load grew superlinearly, queries timed out, caches couldn't refill, and client retries kept the system stuck in a metastable cascading failure. Recovery required throttling client boots, fetching only missing keys, reading from replicas and later moving the query to a channel-sharded table; Mcrib's very efficiency at replacing nodes increased cache churn and worsened the outage.
- Incident Report: October 16th, 2025
Railway easyNoviceA traffic spike on Railway's Edge Network coincided with a routine edge service upgrade and exhausted memory in an internal routing service that was already running at high utilization. New proxies could not initialize, failed health checks and were pulled by load balancers, causing 2-3 minutes of intermittent HTTP/TCP failures (404s, 522s) across all regions while private networking stayed unaffected. Recovery came as caching absorbed the load. Fixes include higher memory limits, tiered memory alerts and overload safeguards, with a memory-efficient rewrite and a multi-region architecture planned to isolate failures per region.
- FOQS: Making a distributed priority queue disaster-ready
Meta Engineering mediumAdeptMeta's FOQS distributed priority queue moved from isolated regional installations on semi-synchronous replicated MySQL to a single global installation, after Hurricane Florence in 2018 exposed manual traffic rebalancing and items stuck on unreachable shards. The global design uses Shard Manager so a queue node in the new region takes over a MySQL primary within seconds of failover. A routing service maps logical region preferences to shards for enqueue and keeps a heap-based cache of nodes with ready items for dequeue. Migrating the Async platform required parallelizing cache replenishment, which nearly halved its latency, and randomizing selection among top-priority nodes to fix thundering herd and starvation. The 2021 migration finished with zero downtime using shadow load testing, config-based rollouts and health dashboards.