---
title: "How Meta built the infrastructure for Threads"
description: "Threads reached 100 million sign-ups in five days on existing shared Meta infrastructure rather than purpose-built systems, illustrated through two components: ZippyDB and Async."
url: "https://swe.quest/articles/how-meta-built-the-infrastructure-for-threads-961a6b509998fe97"
canonical: "https://engineering.fb.com/2023/12/19/core-infra/how-meta-built-the-infrastructure-for-threads/"
source: "Meta Engineering"
published: "2023-12-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["scalability","distributed-databases","multi-tenancy","serverless","resilience"]
---

# How Meta built the infrastructure for Threads

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-12-19, 7 min read, Case study. Original: [https://engineering.fb.com/2023/12/19/core-infra/how-meta-built-the-infrastructure-for-threads/](https://engineering.fb.com/2023/12/19/core-infra/how-meta-built-the-infrastructure-for-threads/)

## Summary

Threads reached 100 million sign-ups in five days on existing shared Meta infrastructure rather than purpose-built systems, illustrated through two components: ZippyDB and Async. ZippyDB, a multi-tenant key/value store, absorbs sudden demand by shifting unused allocations and slack between keyspaces via config changes. It scales out with a zero-downtime resharding protocol that remaps logical shards to new physical shards, which let the team proactively prepare Threads keyspaces for 100x growth just before launch. Async (XFaaS), a serverless deferred-execution platform, queued the far-higher-than-expected follow-graph imports and notification jobs and rate-limited their execution to protect downstream services such as the social graph database.

Written by swe.quest, not by the author.

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

## Topics

- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)
- [Distributed databases](https://swe.quest/tags/distributed-databases.md) (Data & databases)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)

## Prerequisites

- key/value stores
- sharding ([easy posts on Distributed databases](https://swe.quest/tags/distributed-databases.md?difficulty=easy))
- message queues ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))

## Keywords

Threads, ZippyDB, Async, XFaaS, TAO, MySQL

## Related posts

- [ZGateway: Learnings from Putting a Proxy in Front of ZippyDB](https://swe.quest/articles/zgateway-learnings-from-putting-a-proxy-in-front-of-zippydb-e9677a1b8fb7de14.md): Meta Engineering · 2026-09-03 · Medium · 13 min read · Distributed databases, Load balancing, Resilience, Scaling, Multi-tenancy
  ZGateway is a stateless regional proxy tier in front of ZippyDB, Meta's most widely used key-value store.
- [Asynchronous computing at Meta: Overview and learnings](https://swe.quest/articles/asynchronous-computing-at-meta-overview-and-learnings-38025981fbc83823.md): Meta Engineering · 2023-01-31 · Medium · 10 min read · Serverless, Queues & messaging, Scheduling, Distributed systems, System design
  Meta re-architected Async tier, its serverless asynchronous computing platform running multi-trillion workloads per day, by splitting an overloaded Dispatcher into data-source-specific "tailers" and a source-agnostic scheduler.
- [Rapidly scaling online storage to serve over 1 billion ChatGPT users (Part II)](https://swe.quest/articles/rapidly-scaling-online-storage-to-serve-over-1-billion-chatgpt-users-part-ii-1fe17c5ac1f7349f.md): OpenAI · 2026-10-23 · Medium · 18 min read · Multi-tenancy, Distributed databases, Scaling, Capacity planning, Cloud platforms
  OpenAI's Habitat storage platform went from one shared Azure Cosmos DB container, to per-use-case dedicated containers, and back to a shared multi-tenant container.
- [FOQS: Making a distributed priority queue disaster-ready](https://swe.quest/articles/foqs-making-a-distributed-priority-queue-disaster-ready-0c0b1a2a20084eae.md): Meta Engineering · 2022-01-18 · Medium · 10 min read · Queues & messaging, Resilience, Replication, Distributed systems, MySQL
  Meta'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.
- [Rapidly scaling online storage to serve over 1 billion ChatGPT users](https://swe.quest/articles/rapidly-scaling-online-storage-to-serve-over-1-billion-chatgpt-users-05665dfd2bff721d.md): OpenAI · 2026-09-11 · Medium · 14 min read · Scaling, Python, Concurrency, Performance engineering, Resilience
  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.

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)
