Friday, 15 August 2014

Firebase Event Guarantee: Event Order -


I'm just starting with a firebase and there is a question about the firebase event guarantees listed at the following URL:

Guarantees that a customer writes, always writes on the server and transmits in order to other users.

Does this guarantee also indicate that the client will be receiving the event broadcast was broadcast by that same customer in that sequence, or is it possible to get the events from the sequence that was broadcast?

For example, if a client adds a node, then a child joins it node, do I guarantee that other clients will see those orders in the same order?

Only guarantee that the price will eventually be consistent, thinking through this, this is the only reasonable answer. / P>

In this way, you can delay any operation on the internet indefinitely from any moving part in the process, thus the occurrence of out-of-order received by the client arises, whether the order Are doing so. It is guaranteed that all customers will eventually look at both added nodes, and they will be consistent with all customers (ultimately).

If you want to guarantee the sequence of events, you can use the Messaging Queue - which is how you can use Firebase, but not the only one.

You can also throw in a timestamp and use the method to sort the records.


No comments:

Post a Comment