Module paxakos::buffer[][src]

Expand description

Defines the applied log entry Buffer trait.

When a node is temporarily shut down or becomes unreachable, it needs to be catch back up with the rest of the cluster. One way to do that is to poll other nodes for entries that have been committed in the meantime. These other nodes will in turn query their applied entry buffer for these entries.

A node may fall so far behind that no other node can catch it up through its Buffer. In such a case the node must ask another node to create a snapshot and catch up that way. It should be noted that the cluster will likely progress while the snapshot is taken, transferred and installed. That is to say that Buffers are indispensable and should have a reasonable minimal capacity.

The default implementation is InMemoryBuffer.

Structs

An in-memory buffer.

Traits

A buffer of entries that were applied to the local state.