I understand that Firebase transactions enable the atomic update of some value, given its old value and new value
But given that Firebase is a realtime database, I assume, one must use transactions only sparingly and not in 'realtime features'
here's an example:
I understand that if you are performing some mathematical operation on a value (adding 'likes' or equivalent), it makes sense to use transaction
I dont understand if it makes sense to use transactions in the following use case: Say a text field can be updated by any number of users, and we are interested in all the updates, as they occur in real time. Does firebase recommend we use transaction in this case? Or is the final 'persist operation' that occurs on the value, only limited to a single 'persist operation' per timestamp granularity of the Firebase server clock?
Further is it guaranteed that the events will be delivered in the order of which the final values were persisted?