Hello! I’ve been following YJS development for a few months now and am super impressed with this tech. I run a collaborative platform for writers and RPG gamemasters (legendkeeper.com). I think I have a decent idea of how I’d like to implement YJS for our prosemirror-based editor, backed up by postgres, but I’d like to further my understanding.
My biggest remaining question is about memory requirements on the server side when using y-websocket. In this post, you talk about a large YDoc consuming 40mb of memory. Is the full document always required to be in memory when manipulating YDocs, or is that dependent on the persistence method? Or is it only fully in memory during moments of mutation? Still trying to wrap my head around the mental model of it all. I think YJS fits well into our tech stack, just unsure if it fits within our budget. We have 500 users on at a time and are growing quite a bit, and these users like to open multiple documents simultaneously.