Scalability of y-websocket server

@dmonad @braden Can any of you help me with one specific thing - https://github.com/yjs/y-redis/blob/master/src/y-redis.js#L72 - why does y-redis use a queue to synchronize updates between processes? If I am able to isolate the update that a client has sent to a websocket server, I can just publish that update and all subscribers with the same docname can receive that update and apply that update to the doc they hold in memory, thus sending it forward to all the clients connected to them.

If a standard pubsub works, then I think I have a horizontally scalable implementation of a websocket-server for y-js with persistence on postgres using knex.

If pubsub has some issues, then I’d like to know them, and will implement a queue-system similar to y-redis on my server.

Either way, will like to open-source the horizontally scalable websocket-backend for yjs this weekend.