Hex
Hex logoHex · Feature trail

Live Collaboration

1 post · Sep 2020

What this trail covers

Hex has evolved its collaborative editing capabilities by implementing a pragmatic approach to live collaboration using Atomic Operations (AO). This system breaks down all state mutations to single property updates, ensuring that operations of different types cannot conflict. A central authority manages a monotonically increasing counter per object to determine the 'last writer wins' in cases of same-type operation conflicts. This approach was chosen for its incremental shippability, compatibility with the existing stack (Apollo, GraphQL, TypeScript, PostgreSQL), and developer control over core application foundations.

All Hex trails