Hello all.
We are using y-websocket
(y-websocket/bin/utils.js
).
In the spirit of simplicity, we have implemented session-affinity in front of y-websocket
server.
(i.e: All clients working on the same document go to the same server) This means we get to use the existing cursor states and we don’t have to worry about pub/sub across different servers etc.
In the future, we would love to move to a distributed approach. (For another day…)
In development we have been using y-dynamodb
as our storage solution. We want to avoid Redis as we aren’t using pub/sub across servers and it adds a layer of complexity with regards to moving documents to long-term storage and clearing Redis etc…
We have one issue with DynamoDB so far… (The maximum item size in DynamoDB is 400 KB) some of our documents are larger than that…
What storage solutions are people using?
Is anyone approaching this in the same way as us?