Twitter/X
Social Media
Twitter/X

Real-time social platform processing 500M+ tweets daily with Scala-based architecture

Employees:2,000+
Revenue:$4B+
Founded:2006
HQ:San Francisco, CA
Key Metrics
Users500M+ monthly active users
Uptime99.9%
Tweets/Day500M+
Timeline Requests/Sec300K+
Fanout Operations/Sec5M+
Tech Stack
React
Scala
Java
Finagle
Manhattan
Google Cloud
Apache Kafka
System Architecture

Scala Microservices with Finagle

Twitter Architecture

Real-Time Social Platform

Client Applications

Web App
React, GraphQL
Mobile Apps
React Native
Public API
REST, OAuth

Core Services

Timeline Service
Scala, Finagle
Tweet Service
Scala
User Service
Scala
Fanout Service
Scala

Data Layer

Manhattan
Distributed KV
Kafka
Event Streaming
Cache Layer
Redis, Memcached

Key Components

Finagle RPC Framework

Asynchronous RPC system for building high-performance services in Scala/Java

Scala
Netty
Thrift
Manhattan Distributed Database

Twitter-built distributed key-value store for real-time data

Java
Custom storage engine