Any design advice regarding how one handles local updates by a user with updates from Firebase? There are two (2) areas I'm interested in understanding. Perhaps assume the application is a shared todo list or shared chat area perhaps:
Q1 - Local updates by user - Is the general concept to (a) make update immediately locally & update firebase at the same time, then separately to this (b) received an "firebase updated" event (which all users sharing the todolist or chat would received) whereby you effectively update that record you just changed again?
Q2 - Delta Updates versus Full Updates - Would one normally get the current list from firebase, and then subscribe to updates only? (as opposed to pulling down full list each time something changes). In this case how does one know when the local app may need to do a full refresh of all items in the firebase list? e.g. scenarios:
a) in the case the mobile devices goes out of contact then back into internet contact, can we assume that firebase would buffer the updates and you would get them all?
b) in the case the app goes into background - same as a) above?
Overall I guess I'd be interested in the pseudo-code around how these should best be handled in terms of the approach in the mobile app design...