State-Based Replication
2min
A common design pattern is to build state into each document type. In an ordering application, orders go through a lifecycle.
When the application starts, the device only wants to synchronize orders that are not filled or canceled and evict any orders that have been completed.
Once an order has been completed, document as “FILLED”. Live queries execute and update the front-page.
Updated 11 Mar 2024
Did this page help you?