I am currently trying to setup my own yjs backend. This backend should fulfil the following three requirements:
- Depending on a provided JWT, an API call should be made for a certain document. Then the user either has read or read+write rights
- For storing and syncing between the websockets there should be Redis used
- The long-term storage of the documents (Quill) should be in S3. Once needed, a document will be loaded from there. Every once in a while, it will be persisted to S3. Also, once no one works on the document it will be persisted to S3 and everything document-related deleted from the backend and Redis will be removed to free resources.
Is such a thing or a similar one already implemented? If so, could you provide me with such or a nice documentation?