Group messages together instead of letting them get dropped#60
Open
finnboeger wants to merge 8 commits intolovasoa:masterfrom
Open
Group messages together instead of letting them get dropped#60finnboeger wants to merge 8 commits intolovasoa:masterfrom
finnboeger wants to merge 8 commits intolovasoa:masterfrom
Conversation
…coming and send data before page is reloaded
b8c59ac to
c91fe63
Compare
Owner
|
I do agree that the current way we handle the load of messages is not ideal. However, I'm not sure grouping messages together over a single websocket message is the solution. There is certainly an overhead to decoding a message, but is it significant enough to justify that ? The initial goal of message dropping was to avoid overloading the server with too many messages, and to keep the size of boards manageable. Grouping messages together to send them as a single network message does not really help with either of these goals. What we could do is:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If messages are attempted to be sent in too close proximity to each other instead group them and send them together.
I also changed the pencil to get its minimum delay from the server settings.
This introduces an issue if the delay is low and a user is e.g. attempting to fill out a shape and creating a long path to do so. The server will now happily pass along the changes to other connected clients but will not store it past a certain point (more precisely after
MAX_CHILDREN).How should we go about this? I see three possibilities:
MAX_CHILDREN.MAX_CHILDREN, however this would circumvent the intention behind that setting.I would go for the third option and add an entry to the wiki explaining that part of the configuration and recommending a higher
By opening a pull request, I certify that I hold the intellectual property of the code I am submitting, and I am granting the initial authors of WBO a perpetual, worldwide, non-exclusive, royalty-free, and irrevocable license to this code.MAX_CHILDRENvalue if a highMAX_TOOL_POLLING_FREQUENCYis set.