---
title: "Tulip: Schematizing Meta’s data platform"
description: "Tulip is Meta's binary serialization protocol for analytics logging, built on Thrift's TCompactProtocol."
url: "https://swe.quest/articles/tulip-schematizing-meta-s-data-platform-725b7402ef7a8468"
canonical: "https://engineering.fb.com/2022/11/09/developer-tools/tulip-schematizing-metas-data-platform/"
source: "Meta Engineering"
published: "2022-11-09"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["schema-migrations","data-pipelines","messaging","performance"]
---

# Tulip: Schematizing Meta’s data platform

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2022-11-09, 6 min read, Case study. Original: [https://engineering.fb.com/2022/11/09/developer-tools/tulip-schematizing-metas-data-platform/](https://engineering.fb.com/2022/11/09/developer-tools/tulip-schematizing-metas-data-platform/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- serialization formats
- Thrift IDL ([easy posts on RPC & gRPC](https://swe.quest/tags/rpc.md?difficulty=easy))
- schema evolution

## Keywords

Tulip, Thrift, TCompactProtocol, Scribe, Hive, Tulib

## Related posts

- [Tulip: Modernizing Meta’s data platform](https://swe.quest/articles/tulip-modernizing-meta-s-data-platform-bf66bcea6e73303c.md): Meta Engineering · 2023-01-26 · Medium · 9 min read · Data pipelines, Refactoring & migrations, Schema migrations, Analytics & OLAP, Testing
  Meta 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.
- [Composable data management at Meta](https://swe.quest/articles/composable-data-management-at-meta-c95cc910c8dc9e8f.md): Meta Engineering · 2024-05-22 · Easy · 9 min read · Query engines, Analytics & OLAP, System design, Open source
  Meta has been decomposing its many monolithic data engines (ETL, interactive, streaming, ML preprocessing) into reusable components: language frontend, IR, optimizer, execution library and runtime.
- [Litestream v0.5.0 is Here](https://swe.quest/articles/litestream-v0-5-0-is-here-f9fbba886e3df515.md): Fly.io · 2025-10-02 · Medium · 6 min read · SQLite, Replication, Storage engines, Go
  Litestream 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.
- [How Meta understands data at scale](https://swe.quest/articles/how-meta-understands-data-at-scale-ab2f3889e09c8113.md): Meta Engineering · 2025-04-28 · Medium · 19 min read · Privacy, Data pipelines, Machine learning, System design
  Meta'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.
- [Building a Medallion architecture for Bluesky data with ClickHouse](https://swe.quest/articles/building-a-medallion-architecture-for-bluesky-data-with-clickhouse-37b9d3fcf0db6cec.md): ClickHouse · 2025-01-08 · Medium · 26 min read · Analytics & OLAP, Data pipelines, Databases, SQL
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
