Twitter System Architecture: Read Path

A structured reconstruction of the system components and data flow from the whiteboard design review.

Whiteboard diagram showing Twitter Read Path system architecture containing Timeline Mixer, Home Mixer, Home Ranker, Home Scorer, and associated microservices.
Figure 1: Original whiteboard schematic illustrating the "Read Path" routing from client applications through API layers, Timeline/Home Mixers, down to ranking, scoring, and storage engines.
Twitter Read Path Architecture Diagram

Clients: Web App, Android, iPhone

Twitter Front End

GraphQL / Federated Router

HTTP TLS-API - deprecated

Strato Column

Tweet/User Content Hydration

Visibility Filtering

TimelineMixer

Home Mixer

Ad Mixer

People Discovery

Manhattan KV Store

Gizmoduck User Profile

Social Graph

Tweety Pie

Home Ranker

Home Scorer

Prediction Service

CrMixer

EarlyBird Search

Uteg Engagement Graph

Space Audio

Figure 2: A color-coded and corrected diagram reconstructing the data flow and system hierarchy, properly representing Home Ranker within the stack.

Next-Gen System Direction

The architecture outlines a transition path (marked by dashed lines) moving towards a consolidated structure involving unified mixers, Thrift RPC-based downstream scoring, and the deprecation of legacy TLS-API HTTP pathways in favor of federated GraphQL layers.

1. Clients & Edge API

Supported Platforms

  • Web
  • Android
  • iPhone

Gateway Entry

  • Twitter Front-end

Protocols / Router Pathways

  • GraphQL / Federated (iPhone, Web)
    • Strato Column
    • Tweet / User Content Hydration
    • Visibility Filtering
  • HTTP TLS-API (Android)
    Being Deprecated

2. Timeline Mixer

Responsible for orchestrating timeline assembly and applying initial product rules.

Key Functions

  • Inject Ads, Who-to-Follow, Onboarding
  • Conversation Module
  • Cursoring / Pagination
  • Tweet Deduplication
  • Served Data Logging

Upstream Services

  • People Discovery Service
  • Ad Mixer
  • Onboarding Service

3. Home Mixer

Handles home timeline generation and routes directly to key key-value stores and core entities.

Direct Downstream Stores

  • Manhattan (Distributed Key-Value Store)
  • Gizmoduck (User Profile Service)
  • Social Graph (User connections & graph data)
  • Tweety Pie (Tweet metadata & hydration)

4. Home Ranker & Scorer

Coordinates candidate generation, filtering, and machine learning scoring via Thrift RPC.

Home Ranker

  • Candidate Fetch

Home Scorer

  • Prediction Service
  • Feature Hydration
    • Manhattan
    • Memcache

5. Timeline & Scorer Services

Timeline Scorer

Dedicated system for evaluating, ranking, and ordering timeline items based on heavy scoring pipelines.

Timeline Service

Manages stateful timeline representations and caches for quick retrieval.

6. Candidate Services

Pipeline Stages

  • Fetch → Feature → Scoring

Source Service Engines

  • CrMixer
  • EarlyBird (Search Index / Tweet Retrieval)
  • Uteg (User Tweet Engagement Graph)
  • Space (Audio Spaces candidate retrieval)
  • Community

Deep Downstream

  • Prediction Service