case://study-005
Distributed Systems
Project 005

CoType

CoType is a real-time collaborative editor where conflict resolution is handled through a custom Sequence CRDT (LSEQ-style fractional indexing) implemented in C++ and compiled to WebAssembly for near-native client-side performance.

50+
Users
Real-time
Sync
Eventual
Consistency
Distributed Systems
Category
The Problem

What Wasn't Working

Collaborative editors face concurrent edit conflicts, high sync latency, and dependency on centralized conflict resolution, which can degrade user experience under active multi-user sessions.

The Solution

How I Fixed It

I designed a WebSocket-driven synchronization layer and implemented a custom Sequence CRDT with fractional indexing and deterministic ordering in C++, then compiled core logic to WASM so conflict resolution runs efficiently inside the browser.

Stack

Technologies Used

C++
WebAssembly
React
Node.js
Socket.io
MongoDB
CRDT
Results

Key Outcomes

Supported collaborative editing for 50+ concurrent users
Resolved network edit conflicts without centralized DB arbitration
Achieved low-latency synchronization with WebSockets
Used WASM for near-native CRDT execution in the client

Want something like this?

Let's build it. I ship fast and I ship clean.