All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
Bluesky
Twitter
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Mergeable Containers: Solving Concurrent Child Creation Conflicts in CRDTs

By

czx111331

7d ago· 9 min readenInsight

Summary

This article discusses a fundamental problem in JSON-like CRDTs (Conflict-free Replicated Data Types) where concurrent creation of child containers under the same Map key by different users leads to apparent data loss — only one container is visible in the current document state while the other exists only in history. The article presents Loro's solution called "Mergeable Containers," which derives container identity from the logical parent/key/type combination rather than the creation OpID, allowing concurrent creations to merge into a single shared child container instead of diverging.

Key quotes

· 3 pulled
From the application's point of view, this looks like data loss.
This is a classic problem in JSON-like CRDTs.
Mergeable Containers let Loro peers concurrently create the same child container under a Map key and still merge into one shared child, by deriving identity from the logical parent/key/type instead of the creation OpID.
Snippet from the RSS feed
Mergeable Containers let Loro peers concurrently create the same child container under a Map key and still merge into one shared child, by deriving identity from the logical parent/key/type instead of the creation OpID.

You might also wanna read