Manhattan

active

by 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.

key-valuetime-seriesdatabase engineproprietarymature

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

✓Durable persistence
✓Compression
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

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

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Alternatives to Manhattan

Compare all→
Apache CassandraWide-Column55.9

Masterless wide-column database built for always-on writes across data centers.

manhattan vs apache-cassandra →
ScyllaDBWide-Column45.9

C++ rewrite of Cassandra with shard-per-core design; also speaks the DynamoDB API.

manhattan vs scylladb →
Amazon DynamoDBKey-Value63.3

AWS's serverless key-value and document store with single-digit-millisecond reads at any scale.

manhattan vs amazon-dynamodb →
FoundationDBKey-Value36.8

Apple's ordered, strictly serializable distributed key-value store, built to have layers on top.

manhattan vs foundationdb →
TiKVKey-Value20.8

CNCF-graduated, Raft-replicated transactional key-value store in Rust; the storage layer of TiDB.

manhattan vs tikv →
Riak KVKey-Value18.1

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.