Scuba

active

by Meta Platforms (Facebook) · since 2013 · also known as Facebook Scuba, Meta Scuba, Kraken

Meta's internal in-memory store for real-time event analytics; described at VLDB 2013, rebuilt as Kraken.

columnar / olaptime-seriesresearch prototypeproprietarymature

Overview

Scuba is the system Facebook engineers use for interactive, ad hoc analysis of real-time logs: code-regression analysis, bug-report and ads-revenue monitoring, and performance debugging, usually explored through a GUI of time-series charts, tables and breakdowns. As described at VLDB 2013, events flow from Scribe through tailers into hundreds of shared-nothing leaf servers that keep compressed, randomly partitioned tables entirely in RAM (around 70 TB at the time), expiring old data as fast as new rows arrive and optionally storing only a sample with a recorded sample rate. Queries fan out from root aggregators to every leaf and usually return in under a second, trading completeness and durability for freshness and speed. A 2022 VLDB paper describes Kraken, Scuba's next-generation architecture that decouples storage from query serving. It has never been offered outside Meta.

Strengths & trade-offs

Strengths

  • +Sub-second ad hoc queries over data that is seconds old
  • +Ingests millions of events per second and ages data out at the same rate
  • +Per-row sample rates make very high-volume event streams affordable
  • +Self-describing rows: new columns appear without schema migrations
  • +Influential design for modern observability and event-analytics stores

Trade-offs

  • −Not available outside Meta
  • −Deliberately favours speed and freshness over completeness and durability
  • −SQL subset with grouping and aggregation but no joins

Great for

  • +Design reference for real-time event analytics and observability systems
  • +Understanding sampled, in-memory log analytics at internet scale

Think twice for

  • −Anyone outside Meta: there is nothing to deploy
  • −Workloads that require exact, durable results

Capabilities

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

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

Scale & consistency

Comfortable data size
Massive · Multi-PB
Horizontal scaling
Native
Multi-region
No
Transactions
None
Consistency
Eventual
Schema
Flexible
Architecture
Distributed, In memory
Query languages
SQL (CLI), GUI query builder

In 2013: hundreds of servers with 144 GB RAM each, ~70 TB of compressed data in memory, millions of rows ingested per second.

Deployment

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

Ecosystem

apis & protocolsThrift API
client languagesPHP, C++, Java, Python, JavaScript

Alternatives to Scuba

Compare all→
ClickHouseColumnar / OLAP69.8

Open-source columnar OLAP database known for very fast aggregations over billions of rows.

scuba vs clickhouse →
Apache DruidColumnar / OLAP35.0

Real-time analytics database for sub-second slice-and-dice over streaming event data.

scuba vs apache-druid →
Apache PinotColumnar / OLAP29.9

Real-time OLAP store from LinkedIn for user-facing analytics at very high query rates.

scuba vs apache-pinot →
AxiomColumnar / OLAP10.9

Managed event and telemetry store with schema-on-read ingest and the piped APL query language.

scuba vs axiom →
Azure Data ExplorerColumnar / OLAP31.2

Microsoft's Kusto engine: fast KQL analytics over logs, telemetry and time series at petabyte scale.

scuba vs azure-data-explorer →
TinybirdColumnar / OLAP12.6

Managed ClickHouse platform that turns SQL pipes into low-latency, versioned HTTP APIs.

scuba vs tinybird →

Scuba FAQ

What is Scuba?

Scuba is a columnar / OLAP database by Meta Platforms (Facebook), first released in 2013. Scuba is the system Facebook engineers use for interactive, ad hoc analysis of real-time logs: code-regression analysis, bug-report and ads-revenue monitoring, and performance debugging, usually explored through a GUI of time-series charts, tables and breakdowns. As described at VLDB 2013, events flow from Scribe through tailers into hundreds of shared-nothing leaf servers that keep compressed, randomly partitioned tables entirely in RAM (around 70 TB at the time), expiring old data as fast as new rows arrive and optionally storing only a sample with a recorded sample rate. Queries fan out from root aggregators to every leaf and usually return in under a second, trading completeness and durability for freshness and speed. A 2022 VLDB paper describes Kraken, Scuba's next-generation architecture that decouples storage from query serving. It has never been offered outside Meta.

Is Scuba open source?

No. Scuba is proprietary, closed-source software. License: Internal (not distributed).

Does Scuba support ACID transactions?

No. Scuba does not provide ACID transactions; its consistency model is eventual.

Does Scuba scale horizontally?

Scuba scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at massive scale (Multi-PB).

What is Scuba best for?

Scuba is a strong fit for design reference for real-time event analytics and observability systems; and understanding sampled, in-memory log analytics at internet scale. Think twice for anyone outside Meta: there is nothing to deploy.

What are the best alternatives to Scuba?

Common alternatives to Scuba include ClickHouse, Apache Druid, Apache Pinot, Axiom and Azure Data Explorer. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is Scuba?

Scuba ranks #638 of 844 databases on the WhichDB Score (0.5/100), and #53 among columnar / OLAP databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.