WowShape
Wow's own write path at its peak, the shape the node gives the store, with the driver alone:
a caller's command queues on its partition's lane (PartitionAppendQueue); a lane with no batch handed or in flight hands one at once, what it holds up to Options.maxBatch streams, fixed when handed;
Options.appenders committers each take the first batch handed and those handed meanwhile, whole, while the call holds fewer than Options.mergeMax streams (so a call carries up to
mergeMax + maxBatch - 1), and append them with one call (append); a lane hands its next batch once its batch is written;once a command's stream is in the log, its snapshot queues for Options.writers writers, each saving up to Options.writerMax rows a call (save), as the node's snapshot writes do (SnapshotWrites).
Each appender and writer has its own store connection (open). A caller (submit) waits for its command as Options.answer says: at its append (Answer.COMMITTED, as Wow's E1 answers, the writers saving behind) or once its snapshot was written too (Answer.SNAPSHOT, the default wait's). A store call that throws fails each command it carried. counters counts the streams appended and the snapshots saved, so a committed step can say whether its snapshots kept up.
Constructors
Types
When a caller's command is answered.
The shape: Wow's defaults (AppendQueueOptions: two mergers, a lane's batch of 64, calls merged up to 512 streams; two snapshot writes in flight of up to 256 rows), mergeMax, appenders and writers the ones a what-if case varies. With appendFill and saveFill, a call holds that many streams or snapshots: it waits for them (fillWaitNanos at most, fillWaitOf the rate they arrive at) and takes no more than whole lanes' batches past them, so the calls are of a size given rather than of what is there, as the calibration's equal shape is; null, as Wow's take them.
Functions
Queues command and waits for its answer (Options.answer): whether it was written.