FileDB: Disk-Based Key-Value Store Implementation Inspired by Bitcask
By
todsacerdoti
11mo ago· 3 min readenCode
95/100
Golden Brown
Bagelometer↗
Baker's choice. Dense with flavour, light on filler.
Score95TypenewsSentimentneutral
Summary
FileDB is a key-value store implementation inspired by Bitcask, storing record metadata in a log-structured hashtable and managing disk files for data insertion and compaction processes.
Key quotes
· 3 pulledFileDB stores record metadata in a log-structured hashtable and parallely keeps 1 disk file open for inserting records in append-only mode.
A compaction process running every config.compactionInterval seconds, reads all the disk files and combines them into one file while updating the metadata hashtable.
A sync process syncs the open disk files once every config.syncInterval.
Disk Based Key-Value Store Inspired by Bitcask . Contribute to rajivharlalka/filedb development by creating an account on GitHub.
