Distributed Systems & Real-time 2025 Real-time Concurrency

Nirvirodh

Socket-level Lock Management & Conflict Resolution


Nirvirodh is a real-time collaborative editing platform engineered to prevent write-conflicts and file overwrites in multi-user concurrent editing environments.

  • 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.
Socket.IO Node.js MongoDB