In this example, the client defined partition for the Order MBO is defined by the
customerId attribute. The REST service exposes an Order GET operation that takes
customerId as a parameter, and returns a subset/partition of Order data specific to
customerId. The REST service also exposes an Order POST operation that takes an
Order graph as a parameter:
- The "Invalidate the cache" operation cache policy associated
with the MBO Update operation invalidates the cache partition after the REST
Service POST is invoked.
- The next client data synchronization for the invalid
partition triggers the REST Service GET operation that takes customerId as
an input parameter.
- The REST Service returns all orders for the given customerId
(a partition) and the cache manager merges the orders as well as the
order/items into the cache.