Skip to content

How to optimize WebSocket events and data #6

Open
@LearningNerd

Description

@LearningNerd

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions