Home > Mobile >  How to keep items updated?
How to keep items updated?

Time:09-28

Is sending requests to server every second, the best way to keep list of items updated for all users? For example, if one user adds or deletes an item, all other users see the changes without refreshing page.

CodePudding user response:

Not at all! That would be very network-consuming! You should either look for storage options with embedded listeners for changes like Firebase, or opt for some kind of publish-subscribe architecture where you notify the interested parts to pull data.

  • Related