Database::max_write_replication_index can be used by the client to keep track of the lowest replication index that guarantees seeing all the writes done by this client. Database::sync_until can be then used to sync the embedded replica at least to the replication index given by the client.
That way a client can:
Do a bunch of operations on one embedded replica
Fetch the max_write_replication index I
Run sync_until with a given replication index I on a different embedded replica and be sure that they see all the operations they've done on the first embedded replica.
Database::max_write_replication_index
can be used by the client to keep track of the lowest replication index that guarantees seeing all the writes done by this client.Database::sync_until
can be then used to sync the embedded replica at least to the replication index given by the client.That way a client can: