In BookKeeper documentation, the sample program creates a ledger, writes some
entries and then *closes* the ledger. Then a client program opens the ledger,
and reads the entries from it.
Is it possible for program1 to write to a ledger, and program2 to read from the
ledger at the same time. In BookKeeper code, if a client tries to read from a
ledger which is not being closed (as per its metadata in zk), then a recovery
process is started to check for consistency.
Waiting for ledger to get closed can introduce lot of latency at the client
side. Can somebody explain this functionality?