I am wondering which would be more effective in conserving network bandwidth:
A: Having buttons on the interface that do not call verbs each time they are clicked, and the data they store is only accessed using winget() when it is needed.
B: Having buttons on the interface that have a verb called each time they are clicked, which updates a variable that is used for storing their data.
In option A, someone could spam click the buttons all they wanted and it would use no traffic at all, until they did something that used those interface options.
In option B, each time someone clicked an interface button it would send a message to the server (they used a verb) but when the time came to use the variable in question it would only need to check a variable instead of using winget().
Now, assuming I don't care about the delay in the action (using winget() makes it wait until the client sends over the data you asked for, whereas the variable would have no delay at all) then which one would keep network traffic down more in a NORMAL environment? Obviously someone spam clicking the verbs is going to use more network traffic, but that isn't really what I would consider a 'normal' situation.
Basically the deciding factor here would be how network intensive is winget VS simply using a verb?
Apr 30 2010, 11:09 am