Manhattan
activeby Twitter (now X Corp.) · since 2012 · also known as Twitter Manhattan, X Manhattan
Twitter's in-house, multi-tenant, eventually consistent key-value store with pluggable storage engines.
Overview
Manhattan is the distributed database Twitter built in-house as a self-service, multi-tenant storage platform for its engineers; it had been in production for about two years when Twitter described it publicly in April 2014. Its core handles routing, topology, intra- and inter-datacenter replication, conflict resolution and continuous replica reconciliation; above that sit pluggable storage engines (seadb, a read-only format for batch Hadoop output; an LSM 'sstable' engine for write-heavy data; and a B-tree engine for read-heavy data) plus services for Hadoop bulk import, strong consistency (consensus with a replicated log enabling check-and-set) and high-volume time-series counters for Twitter's observability stack. It is eventually consistent by default and schemaless key-value. Manhattan was never open-sourced or sold, so it matters as a design reference rather than an option.
Strengths & trade-offs
Strengths
- +Pluggable storage engines matched to batch, write-heavy and read-heavy workloads
- +Self-service multi-tenancy: teams provision storage without schemas or tickets
- +Optional strong consistency (consensus and CAS) on an eventually consistent core
- +Efficient serving layer for datasets generated in Hadoop
Trade-offs
- −Not available outside Twitter/X; no source, binaries or docs
- −Public technical detail stops around the mid-2010s
Great for
- +Reference design for multi-tenant, multi-datacenter key-value platforms
- +Studying pluggable storage engines and replica reconciliation
Think twice for
- −Anyone outside X: it cannot be obtained
Capabilities
Native or official first-party support · 2 of 25 tracked
Scale & consistency
- Comfortable data size
- Massive · Multi-PB
- Horizontal scaling
- Native
- Multi-region
- Active active
- Transactions
- Limited ACID
- Consistency
- Eventual, Strong
- Schema
- Schemaless
- Architecture
- Distributed, Multi primary
- Query languages
- Key-value API
Multi-tenant clusters replicated within and across Twitter datacenters at Twitter scale.
Deployment
Alternatives to Manhattan
Masterless wide-column database built for always-on writes across data centers.
manhattan vs apache-cassandra →C++ rewrite of Cassandra with shard-per-core design; also speaks the DynamoDB API.
manhattan vs scylladb →AWS's serverless key-value and document store with single-digit-millisecond reads at any scale.
manhattan vs amazon-dynamodb →Apple's ordered, strictly serializable distributed key-value store, built to have layers on top.
manhattan vs foundationdb →CNCF-graduated, Raft-replicated transactional key-value store in Rust; the storage layer of TiDB.
manhattan vs tikv →Erlang-based, Dynamo-style key-value store built to stay up through ugly failures.
manhattan vs riak-kv →Manhattan FAQ
What is Manhattan?
Manhattan is a key-value database by Twitter (now X Corp.), first released in 2012. Manhattan is the distributed database Twitter built in-house as a self-service, multi-tenant storage platform for its engineers; it had been in production for about two years when Twitter described it publicly in April 2014. Its core handles routing, topology, intra- and inter-datacenter replication, conflict resolution and continuous replica reconciliation; above that sit pluggable storage engines (seadb, a read-only format for batch Hadoop output; an LSM 'sstable' engine for write-heavy data; and a B-tree engine for read-heavy data) plus services for Hadoop bulk import, strong consistency (consensus with a replicated log enabling check-and-set) and high-volume time-series counters for Twitter's observability stack. It is eventually consistent by default and schemaless key-value. Manhattan was never open-sourced or sold, so it matters as a design reference rather than an option.
Is Manhattan open source?
No. Manhattan is proprietary, closed-source software.
Does Manhattan support ACID transactions?
Partly. Manhattan offers limited ACID guarantees (for example, single-record or single-partition transactions), with eventual, strong consistency.
Does Manhattan scale horizontally?
Manhattan scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at massive scale (Multi-PB). It supports active-active multi-region writes.
What is Manhattan best for?
Manhattan is a strong fit for reference design for multi-tenant, multi-datacenter key-value platforms; and studying pluggable storage engines and replica reconciliation. Think twice for anyone outside X: it cannot be obtained.
What are the best alternatives to Manhattan?
Common alternatives to Manhattan include Apache Cassandra, ScyllaDB, Amazon DynamoDB, FoundationDB and TiKV. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is Manhattan?
Manhattan has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.

