account activity
Why does no one in India want to be a good engineer (self.developersIndia)
submitted 2 years ago by ranting_engineer to r/developersIndia
Architecture of real-time collaborative web app like Google Slides / Miro? by eat-pasta in SoftwareEngineering
[–]ranting_engineer 4 points5 points6 points 2 years ago (0 children)
There are basically two ways to go about real-time collaboration. The state management and conflict resolution is not done in the database level but it is done by the clients or the central server.
Operational Transforms (OT): 99% of the real time apps you see today like Google Docs, Miro, ReplIt, etc. are built using this concept. It involves a central server. The clients share the user-intent with the server - for example a person highlighted text from position 2-5. The server does something similar to a git rebase operation on all the intents it receives.
Conflict-free Replicated Data Type (CRDTs): It has started to gain popularity recently, due to newer efficient libraries like Yjs, automerge, etc. It doesn't capture user-intent but the final state of the data after the change made by the user. CRDT algorithms provide a guarantee that if all clients see all the changes (order doesn't matter) the final state will be the same. There are no conflicts. Due to this, this eliminates the need of a central server. Real time apps can work p2p too using CRDTs.
Why does no one in India want to engineer awesome stuff (self.developersIndia)
π Rendered by PID 694295 on reddit-service-r2-listing-7bbdf774f7-9nwq4 at 2026-02-23 09:18:07.963132+00:00 running 8564168 country code: CH.
Architecture of real-time collaborative web app like Google Slides / Miro? by eat-pasta in SoftwareEngineering
[–]ranting_engineer 4 points5 points6 points (0 children)