Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to optimize WebSocket events and data #6

Open
LearningNerd opened this issue Jun 28, 2017 · 0 comments
Open

How to optimize WebSocket events and data #6

LearningNerd opened this issue Jun 28, 2017 · 0 comments
Labels

Comments

@LearningNerd
Copy link
Member

LearningNerd commented Jun 28, 2017

Questions:

  • Is it better to send multiple events, one for each small update or action, or is it better to send one event containing all the relevant updates and iterate through them to update each piece accordingly?

    • Answer (2017-07-01): It depends! But if it doesn't negatively impact user experience, better to send less events with more data, because each event has some overhead in addition to its payload.
    • Note (2017-07-01): The more important question that I should have asked is: what's the bare essential data that needs to be sent, and when does each piece need to be sent?
  • Should I throttle the user input events? How much would that improve performance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant