-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
TL;DR Yjs should write the database.
The current architecture is centered around the browser (yjs <-> browser <-> DB
):
- browser (ui/) talk to yjs for peer-syncing
- browser (ui/) talk to DB for data persistence
Since multiple users can have multiple instance of browsers accessing the same repo, this approach has several problems:
- we have some complicated logic to handle when and which user should write the DB.
- there might be consistency issue between Yjs and DB due to bugs
The ideal workflow should be centered around Yjs (browser <-> Yjs <-> DB
):
- browser talk to yjs for peer-syncing
- Yjs talk to DB for data persistence
Metadata
Metadata
Assignees
Labels
No labels