MediumConceptData and storage design
How do you choose between B-tree and LSM-tree storage for a workload?
What a good answer covers
B-trees give predictable reads and in-place updates, which fits read-heavy transactional use. LSM trees turn writes into sequential appends and compaction, which suits write-heavy ingestion at some read and compaction cost.
PreviousA background job queue grows faster than workers drain it. What do you do?Next What is a write-ahead log and why do databases use it?