Espresso

active

by LinkedIn · since 2012 · also known as LinkedIn Espresso

LinkedIn's internal, MySQL-backed distributed document store that serves as source of truth for its core data.

documentresearch prototypeproprietarymature

Overview

Espresso is LinkedIn's in-house distributed document database, designed in 2011 and in production since 2012 as the primary online store for data such as member profiles and InMail. Data is organised as database, table, collection and document, with Avro document schemas that can evolve without downtime; a stateless HTTP router hashes the partition key to MySQL/InnoDB storage nodes, Apache Helix and ZooKeeper manage partition placement and failover, and the change stream (first Databus, later Kafka) feeds downstream systems. Updates that share a partition key can be applied transactionally in one request, and secondary indexes, including Lucene-based text indexes, are updated synchronously. It has never been released or sold: outsiders know it through a SIGMOD 2013 paper and LinkedIn engineering posts, most recently about HTTP/2 and scaling work in 2023.

Strengths & trade-offs

Strengths

  • +Timeline-consistent change stream built in, feeding search, caches and analytics downstream
  • +Zero-downtime Avro schema evolution instead of ALTER TABLE
  • +Transactional multi-document updates within one partition key
  • +Synchronously maintained secondary and text indexes for read-after-write queries
  • +Proven at LinkedIn scale for over a decade

Trade-offs

  • −Not available outside LinkedIn
  • −Transactions limited to a single partition key; no cross-partition joins
  • −Operational complexity: router, storage nodes, Helix/ZooKeeper and change-capture tier

Great for

  • +Studying how a large social network built its primary document store
  • +Reference design for MySQL-backed sharded document services with CDC
  • +Background for systems such as Helix, Databus and Kafka-based CDC

Think twice for

  • −Anyone outside LinkedIn: it cannot be installed or bought

Capabilities

Native or official first-party support · 8 of 25 tracked

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

Scale & consistency

Comfortable data size
Massive · Multi-PB
Horizontal scaling
Native
Multi-region
Read replicas
Transactions
Limited ACID
Consistency
Strong, Eventual
Schema
Flexible
Architecture
Distributed, Primary replica
Query languages
REST resource URIs (key and collection lookups), Secondary-index queries

Hash-partitioned across many clusters; LinkedIn reports hundreds of terabytes and over a million QPS for single datastores.

Deployment

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

Ecosystem

apis & protocolsHTTP/REST
client languagesJava
used byLinkedIn

Alternatives to Espresso

Compare all→
MongoDBDocument80.5

The default document database: flexible BSON documents, rich queries and built-in sharding.

espresso vs mongodb →
Couchbase ServerDocument27.5

Memory-first distributed JSON database with SQL++, search, vector indexes and mobile sync.

espresso vs couchbase →
VitessRelational21.2

CNCF-graduated sharding and clustering layer that makes a fleet of MySQL servers look like one database.

espresso vs vitess →
Amazon DynamoDBKey-Value63.3

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

espresso vs amazon-dynamodb →
Apache CassandraWide-Column55.9

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

espresso vs apache-cassandra →
Prisma PostgresRelational14.6

Serverless Postgres from the Prisma ORM team, on unikernels, billed per operation with no cold starts.

espresso vs prisma-postgres →

Espresso FAQ

What is Espresso?

Espresso is a document database by LinkedIn, first released in 2012. Espresso is LinkedIn's in-house distributed document database, designed in 2011 and in production since 2012 as the primary online store for data such as member profiles and InMail. Data is organised as database, table, collection and document, with Avro document schemas that can evolve without downtime; a stateless HTTP router hashes the partition key to MySQL/InnoDB storage nodes, Apache Helix and ZooKeeper manage partition placement and failover, and the change stream (first Databus, later Kafka) feeds downstream systems. Updates that share a partition key can be applied transactionally in one request, and secondary indexes, including Lucene-based text indexes, are updated synchronously. It has never been released or sold: outsiders know it through a SIGMOD 2013 paper and LinkedIn engineering posts, most recently about HTTP/2 and scaling work in 2023.

Is Espresso open source?

No. Espresso is proprietary, closed-source software.

Does Espresso support ACID transactions?

Partly. Espresso offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong, eventual consistency.

Does Espresso scale horizontally?

Espresso scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at massive scale (Multi-PB). It supports cross-region read replicas.

What is Espresso best for?

Espresso is a strong fit for studying how a large social network built its primary document store; reference design for MySQL-backed sharded document services with CDC; and background for systems such as Helix, Databus and Kafka-based CDC. Think twice for anyone outside LinkedIn: it cannot be installed or bought.

What are the best alternatives to Espresso?

Common alternatives to Espresso include MongoDB, Couchbase Server, Vitess, Amazon DynamoDB and Apache Cassandra. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is Espresso?

Espresso has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.