Storage model and API contracts
Connect the LSM storage model with key order, serialization, filtering, deletion, write sequencing, and value ownership.
Layers describe record generations; parts divide a logical disk segment into ranges.
Equality, hashing, encoding, and deletion must agree with the application model.
Own mutable data and define how sequencing, recovery, and replication fit together.
LSM-tree architecture
Follow writes through ordered memory, read-only segments, compaction, and persistent multipart storage.
Follow the storage lifecycleSegments and parts
Distinguish memory and disk layers, logical segments, reusable parts, and the counters that describe them.
Name the storage unitsKey ordering
Put related records into contiguous comparer order, with CompositeKey or a custom key type.
Design the keyspaceComposite keys and values
Store several values in one byte[] key or value, index rows by any of their values, and scan by leading elements, by a range, or by text.
Combine fields into one keySerializers and comparers
Separate equality, hashing, and persisted bytes. Configure custom components and preserve compatibility.
Define the contractsBloom filters
Skip provably absent memory-segment lookups and understand filter allocation, hashing, and false positives.
How the filter worksDeletion markers and TTL
Choose tombstones, model expiration, and reclaim deleted storage without exposing older values.
Define what is liveOperation indexes
Use a producer's write sequence without confusing it with durable delivery, global ordering, or transaction commits.
Write sequencing and replayValue mutability
Keep stored objects and buffers read-only, create replacements, and make cancellation leave no shared mutation.
Own stored values safely