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

[IMPROVE] Send only relevant data via WebSocket #22258

Merged
merged 3 commits into from Jun 7, 2021

Conversation

sampaiodiego
Copy link
Member

Proposed changes (including videos or screenshots)

Previously when any data changed on subscriptions or rooms we were getting fresh data from database, to also remove undesired fields, but sometimes the data that changed was not relevant so we were sending the whole object everytime without the fields that actually changed. This change aims to reduce this overhead and also send less data to clients.

Issue(s)

Steps to test or reproduce

Further comments

@sampaiodiego sampaiodiego added this to the 3.14.5 milestone Jun 6, 2021
@sampaiodiego sampaiodiego requested a review from ggazzo June 6, 2021 20:40
ggazzo
ggazzo previously approved these changes Jun 6, 2021
@sampaiodiego sampaiodiego merged commit 9dc3e6f into develop Jun 7, 2021
@sampaiodiego sampaiodiego deleted the do-not-send-unwanted-data branch June 7, 2021 00:52
@sampaiodiego sampaiodiego mentioned this pull request Jun 7, 2021
@emikolajczak
Copy link

Hi, this change is only for installations which using Change streams or also for this which using USE_NATIVE_OPLOG=true? Or maybe booth?

@sampaiodiego
Copy link
Member Author

hi @emikolajczak this applies to both.. but affects most omnichannel operations as it was what we found changing more data that could not necessarily go to clients.

@emikolajczak
Copy link

Understand, i had hope that is fix for Rocket stability issues.

@sampaiodiego sampaiodiego mentioned this pull request Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants