Nirvirodh
Socket-level Lock Management & Conflict Resolution
Overview
Nirvirodh is a real-time collaborative editing platform engineered to prevent write-conflicts and file overwrites in multi-user concurrent editing environments.
Engineering Decisions
- Implemented a Socket.IO locking daemon enforcing granular, single-writer resource locks.
- Emits real-time synchronization states across connected clients to reflect live edit locks instantly.
- Enforced conflict detection at the socket protocol level, eliminating race conditions regardless of network jitter.
- Persisted locking metadata in MongoDB to survive server socket reconnections seamlessly.