Skip to content

[IMPROVE] Send only relevant data via WebSocket#22258

Merged
sampaiodiego merged 3 commits intodevelopfrom
do-not-send-unwanted-data
Jun 7, 2021
Merged

[IMPROVE] Send only relevant data via WebSocket#22258
sampaiodiego merged 3 commits intodevelopfrom
do-not-send-unwanted-data

Conversation

@sampaiodiego
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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.

3 participants