Hello, Smart Fox Server:
If I have a Room Variable that contains a large SfsObject. The large SfsObject means it have many key/value in this.
I am concerning that real network package size when transferring to client.
If I update only one key's mapping value, How SmartFox update this?
Does SmartFox perform dirty check. Do only send update key-value to client? Or using other methodology?
If I want to minimize network package size, is there a guildline for design structure for SfsObject ?
Thank you.
How SmartFox update a large Room Variable between client and Server?
-
- Posts: 13
- Joined: 21 Feb 2018, 03:02
Re: How SmartFox update a large Room Variable between client and Server?
Hi,
no it doesn't perform dirty checks at object level. It would take too much work on the server side as traffic increases.
Keep in mind that the protocol compresses data so if you keep your objects reasonably small you might just need a few KBs of data transfer to update a pretty big SFSObject.
You can check the actual size on the client side, if you activate the debug flag of the API.
Hope it helps
no it doesn't perform dirty checks at object level. It would take too much work on the server side as traffic increases.
Keep in mind that the protocol compresses data so if you keep your objects reasonably small you might just need a few KBs of data transfer to update a pretty big SFSObject.
You can check the actual size on the client side, if you activate the debug flag of the API.
Hope it helps
Who is online
Users browsing this forum: Stevenor and 45 guests