Node-eventbuf is a project mainly written in ..., it's free.
An eventbuf is persisted to a directory.
There are size-rotated append-only events-...
files.
Their filenames are strictly increasing.
my-eventbuf-dir/
(rotation time) (counter to avoid insanely rare collisions)
events-2011-12-31-23-59-59-123-0001.v1 events-2011-12-31-23-59-59-123-0002.v1 events-2011-12-31-23-59-59-124-0001.v1 ...
Assumption (for now): there will never be multiple appenders or multiple readers running at once. Enforcing this is your responsibility (for now).
FILE: EVENTsEVENT: uint32le(data.length) uint64le(utc_ms) data 4-byte hash: (sha256 of the above (12 + data.length) bytes)[0:4]
TODO