yep, I see there are different scenarios and updates are optimised. But is it possible to optimise situation when many users create many messages in different chat rooms? Do we need index events to do that?
If it’s true that currently any single create op triggers all queries to poll, then in our worst scenario we might see a phisical limit of how many queries node can run in a given period of time, and if create ops fired faster than node is able to throttle them it’s gonna be a bottleneck.
We can split node to several processes, but if there many users in a room, then we’ll have scaling problems.
In a real world if we would work on the app like this gitter chat, would we use query subscriptions, or maybe it would be more efficient to use a chat room to store the array of latest message id’s and use those id’s to subscribe to messages without a query?