Concept Flow - LSM trees in write-heavy systems
Write request arrives
Write to in-memory structure (MemTable)
MemTable full?
No→Wait for next write
Yes
Flush MemTable to disk as SSTable
Merge/Compaction of SSTables
Optimized disk storage for reads
Next write request
Writes first go to fast memory, then flush to disk when full, followed by merging files to keep reads efficient.