Wiki: Immutable Rules: Git-like Commits for Data at S3 Scale
For agents: Markdown version · Wiki index · Explore
- Speaker: Ariel Shaqed Scolnicov
- Event: Reversim Summit 2021
- Video: https://www.youtube.com/watch?v=ZeE-JxMZDLk
- Transcript: /transcripts/2021/15-ZeE-JxMZDLk.md
- Language: Hebrew · Type: talk · Level: advanced
- Topics: Databases, Cloud Computing, Data Engineering, Algorithms
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker introduces a new data structure called Grappler, designed to bring Git-like version control capabilities such as commits and branches to large-scale data lakes at S3 scale. Traditional file system trees are too deep and inefficient for object stores, so the speaker explains how Grappler uses sorted ranges of fixed size optimized for cloud object storage performance. The talk explores how this approach enables efficient reuse of metadata and fast merges across hundreds of millions of files. Ultimately, the audience learns how combining classic data structures like B-trees with Git principles solves massive data management challenges.
Key points
- 2:22 The speaker introduces Grappler, a new data structure designed to solve traversal and versioning problems at a massive scale.
- 5:27 The concept of lakeFS is presented as Git for data lakes, allowing users to run operations like commits, branches, and merges on object stores like S3.
- 23:44 The main challenge addressed is managing commit data and metadata for hundreds of millions of files efficiently.
- 26:38 The speaker examines how Git handles blobs, trees, and commits using cryptographic digests to identify and deduplicate data.
- 28:14 Object stores like S3 have optimal throughput with larger files around 10 megabytes, making deep hierarchical directory structures inefficient.
- 31:52 Grappler replaces deep directory trees with flat, sorted ranges of keys, pointing to data files of about 10 megabytes to match S3 performance sweet spots.
- 19:53 The system achieves massive performance gains by reusing unchanged metadata ranges from previous commits rather than rewriting everything.
- 34:46 While presented as a novel creation, the design heavily draws inspiration from existing proven concepts like Git, B-trees, and Bigtable.
Takeaways
- Design data structures to fit the performance characteristics and sweet spots of your underlying storage layer, such as optimal file sizes for S3.
- Avoid deep directory hierarchies in object stores to prevent excessive latency and request penalties.
- Leverage immutability and range-based metadata reuse to make versioning operations like commits and merges instantaneous for massive datasets.
Questions this talk answers
- How can you implement Git-like version control on top of flat object storage systems like S3?
- What are the performance implications of deep directory trees in cloud object stores?
- How does range-based metadata reuse reduce the overhead of commits in large-scale data lakes?
Technologies
Git, Amazon S3, Google Cloud Storage, Azure Blob Storage, Cassandra, DynamoDB
Tags
cloud storage, data lakes, data structures, scalability, storage systems, version control