/plushcap/analysis/planetscale/vitess-consistent-lookup-vindex

Achieving data consistency with the consistent lookup Vindex

What's this blog post about?

The text discusses how a consistent lookup Vindex is implemented in Vitess to ensure data consistency without using 2PC (Two Phase Commit). Vitess uses Vindexes, or indexes, to associate rows in a table with a designated address known as Keyspace ID. This enables efficient routing of queries in a sharded database. The consistent lookup Vindex is a type of Secondary Vindex that further enhances the efficiency and reliability of this mechanism by maintaining consistency between data tables and lookup indexes without using 2PC for all DML operations. Vitess uses three connections to perform DML operations, with carefully defined sequences of operations ensuring consistency even when record in the Vindex tables may be inconsistent. The text also provides examples of delete, insert, and update operations using consistent lookup Vindexes.

Company
PlanetScale

Date published
April 29, 2024

Author(s)
Harshit Gangal, Deepthi Sigireddi

Word count
1526

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.