Tulip: Schematizing Meta’s data platform
Tulip is Meta's binary serialization protocol for analytics logging, built on Thrift's TCompactProtocol. It replaces the positional Hive Text Delimited and JSON formats, which broke when columns were inserted or deleted and offered no forward or backward compatibility. Engineers declare only field names and types, and the platform assigns field IDs in a transactionally updated serialization schema. IDs are never removed, so a type change gets a new ID and a rename is treated as a delete plus an add. Compared with the legacy formats, Tulip uses 40–85% fewer bytes and 50–90% fewer CPU cycles to (de)serialize.
Related posts
- Tulip: Modernizing Meta’s data platform
Meta Engineering mediumAdeptMeta migrated its exabyte-scale analytics logging platform from legacy Hive Text Delimited and JSON serialization to the Tulip format across more than 30,000 logging schemas, sharply cutting bytes logged per second while schema counts stayed flat. The migration relied on a mixed-mode wire format, where Tulip payloads are prefixed with the invalid UTF-8 bytes 0x80 0x00 so old and new formats can coexist on one Scribe stream. Supporting tools included format-agnostic Reader libraries and legacy-format converters in consumers, shadow loggers verified by a Spark job comparing rows by ID, a loggertail CLI for decoding streams, and rate-limited rollouts. Scaling to the long tail depended on daily automated targeting of schemas whose consumers were all ready, plus a live migration guide, support group and office hours.
- Composable data management at Meta
Meta Engineering easyNoviceMeta has been decomposing its many monolithic data engines (ETL, interactive, streaming, ML preprocessing) into reusable components: language frontend, IR, optimizer, execution library and runtime. Velox, its open-source engine- and dialect-agnostic execution library, is the centerpiece. It uses columnar/vectorized execution, compressed execution via encodings, lazy materialization and adaptive filter/join ordering, and has delivered 3-10x efficiency gains in Presto (Prestissimo) and about 3x in Spark via Gluten. To restore interoperability, Meta upstreamed StringView, ListView and Run-End-Encoding into Apache Arrow. Next steps are the Nimble file format for wide AI/ML tables and hardware-accelerated data systems.
- Litestream v0.5.0 is Here
Fly.io mediumAdeptLitestream v0.5.0 replaces WAL-segment backups with the LTX file format from LiteFS, enabling efficient point-in-time recovery through hierarchical compaction (30-second, 5-minute and hourly levels), so a restore typically needs only a dozen or so files. The 'generations' concept is gone in favor of monotonically increasing transaction IDs, LTX now compresses per page with a trailing index for page-granular access, and CGO is dropped by switching to modernc.org/sqlite. Upgrading is drop-in with a backwards-compatible config, but v0.5.0 cannot restore old v0.3.x WAL segments and allows only one replica destination per database. The release also adds a NATS JetStream replica type, and a VFS for instant read replicas is planned next.
- How Meta understands data at scale
Meta Engineering mediumAdeptMeta's Privacy Aware Infrastructure builds data understanding by schematizing every data asset in a canonical Thrift-based format (DataSchema, covering over 100 million schemas across 100+ systems) and annotating fields with a universal privacy taxonomy of semantic types. Annotation is shifted left into developer workflows. A classification pipeline of scheduling, sampling, scanning, heuristics and ML models predicts labels, auto-assigns them above a confidence threshold, and propagates them along lineage so copies inherit equivalent classifications. A Facebook Dating religious-views walkthrough shows how schema, annotation and OneCatalog inventory let purpose-limitation controls follow sensitive data across heterogeneous systems.
- Building a Medallion architecture for Bluesky data with ClickHouse
ClickHouse mediumAdept
A Medallion pipeline (Bronze, Silver, Gold) in ClickHouse ingests and cleans the high-volume Bluesky Jetstream feed, which arrives with malformed JSON, inconsistent and invalid timestamps, recursive structures and frequent duplicates. Events are pulled with websocat into gzipped CSV files on GCS, then loaded into a Bronze ReplacingMergeTree table through S3Queue in ordered mode. The Bronze table uses the new JSON type with SKIP clauses to drop recursive paths. Materialized columns derive a consistent event timestamp per event kind and a cityHash64 dedup hash that excludes the crawl time. The design also accounts for most duplicates arriving within a 20-minute window, and the resulting tiers are publicly queryable at sql.clickhouse.com.