<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Prasad Cholakkottil on Medium]]></title>
        <description><![CDATA[Stories by Prasad Cholakkottil on Medium]]></description>
        <link>https://medium.com/@pracho?source=rss-617e0d5b220------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_56Hm_As4dbyzm-4Da79bA.jpeg</url>
            <title>Stories by Prasad Cholakkottil on Medium</title>
            <link>https://medium.com/@pracho?source=rss-617e0d5b220------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:43:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pracho/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building an LSM Tree based data store in Java — part 3]]></title>
            <link>https://medium.com/@pracho/building-an-lsm-tree-based-data-store-in-java-part-3-7a8725915243?source=rss-617e0d5b220------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a8725915243</guid>
            <category><![CDATA[key-value-store]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[Prasad Cholakkottil]]></dc:creator>
            <pubDate>Fri, 23 Feb 2024 01:12:45 GMT</pubDate>
            <atom:updated>2024-02-23T01:18:45.812Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an LSM Tree based data store in Java — part 3</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oiGqEc-pOhrewgP-CzO4Qw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@emilep">Emile Perron</a></figcaption></figure><p>Part two can be found here — <a href="https://medium.com/@pracho/building-an-lsm-tree-based-datastore-in-java-part-2-8809aadae248">link</a>.</p><p>Before going to SSTables, let’s take a quick look at how skiplists are flushed to disk. Below code snippet can provide some idea.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b7b4f46a00398575db1954a9930af6a7/href">https://medium.com/media/b7b4f46a00398575db1954a9930af6a7/href</a></iframe><p>In short, the above code iterates through each Node in the skiplist, and write the key and value bytes to the file. While this is done, keep track of the offset where each record is written to, and then write that data into an index file.</p><p>FileIO class provides helper functions to read from and write to files.</p><p>Now we have a lot of memtables flushed onto disk as tiny (few MBs) data and index files, let’s look at how they are compacted to a larger file. Let’s not focus on the mathematics behind what calculations are performed to trigger a compaction process — which is pre-configured.</p><p>In the previous article, we have discussed two strategies of compaction — levelled and size tiered. A combination of both is not strange either. That’s the approach we take.</p><p>Compaction process always start from level 0. It may terminate after compacting level zero. Note that compaction process at current level will always add a new data file to the next level, consequently occasionally triggering a compaction at the next level.</p><p>An important point to note in the compaction is that only the most recent value for any key taken as its current value. Older values are ignored. To effective achieve this, we need to know the modification time of files in the current level. Records from the oldest files can be safely ignored. We can use a Map implementation for this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3622d68be21d66ca689499eb5f21a45a/href">https://medium.com/media/3622d68be21d66ca689499eb5f21a45a/href</a></iframe><p>The compactLevel(int level) will initiate a compaction at the level. Based on whether the compaction criteria is met, compactFile(files, start, end) is invoked. The array containing references to the data files may have several entries in it. Reading them all at once and running a merge sort on them will be an expensive operation. It would be better if we could perform the merge two files at a time.</p><p>The approach in the above code is as follows:</p><ol><li>if the array has only one file, consider it merged.</li><li>if the array has just two files, merge them and return the merged file.</li><li>if the array has more than 2 files, split the array at mid-point, and pass them both to step 1.</li></ol><p>The steps may run a few times creating few intermediate files, but eventually return one final compacted file of all input files. This compacted file should be placed int he next level. Levels are not necessary physical.</p><p>Merging two sorted files is easier to write. Since files can be read from the beginning to end, compaction thread will compare the keys and proceed to the end of each file reading one record at a time. For small files, it’s safe to load them into TreeMaps and putAll data from the map of newer file on to the map of older file. This will ensure overwriting keys.</p><p>After a successful compaction, a new file is generated. This can now be used for searching keys. However, the search thread does not read data files directly, it reads index files. So a successful compaction should also create an index file, which is relatively easier to accomplish.</p><p>One last task to perform before wrapping up current compaction — clean up. All the files that are compacted in this round are now useless. Compaction thread cannot delete all files from the previous level as it moves up the level, it is possible that new files may have been generated by this time (at least in the zeroth level, also in other levels if multiple compaction threads are running).</p><p>In KochuDB, only one compaction thread can run at any time. Multiple entries to the compaction thread is restricted as given below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bbc0c669b5fe5c5ada05b607fdb376b5/href">https://medium.com/media/bbc0c669b5fe5c5ada05b607fdb376b5/href</a></iframe><p>A good approach to clean up older files is to keep track of the files that are being compacted. That’s what our compaction thread does. Once current compaction is successfully complete, a cleanup operation is triggered, which will delete all the files marked for deletion.</p><p>That marks the end of a good compaction cycle.</p><p>All the File Operations (reading/writing index/data files) mentioned in this article can be found here — <a href="https://github.com/pMan/kochudb/blob/main/kochudb-server/src/main/java/com/kochudb/io/FileIO.java">link</a>.</p><p>A working KochuDB server is on github, feel free to fork - <a href="https://github.com/pMan/kochudb">kochudb</a>.</p><p>Feel free to ask me if you have a question in the comments section.</p><h3>References</h3><ol><li>Details of Levelled Compaction - RocksDB wiki — <a href="https://github.com/facebook/rocksdb/wiki/Leveled-Compaction">link</a></li><li>Choose the right compaction strategy - ScyllaDB — <a href="https://opensource.docs.scylladb.com/stable/architecture/compaction/compaction-strategies.html">link</a></li><li>Sorting algorithms — <a href="https://www.andrew.cmu.edu/course/15-121/lectures/Sorting%20Algorithms/sorting.html">link</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a8725915243" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an LSM Tree based datastore in Java — part 2]]></title>
            <link>https://medium.com/@pracho/building-an-lsm-tree-based-datastore-in-java-part-2-8809aadae248?source=rss-617e0d5b220------2</link>
            <guid isPermaLink="false">https://medium.com/p/8809aadae248</guid>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[key-value-store]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[system-design-project]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[Prasad Cholakkottil]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 02:32:05 GMT</pubDate>
            <atom:updated>2024-04-16T02:21:58.386Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an LSM Tree based data store in Java — part 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2oClkECCb9ofAmbqfKBwdQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@emilep">Emile Perron</a></figcaption></figure><p>Part one can be found here — <a href="https://medium.com/@pracho/building-an-lsm-tree-based-data-store-in-java-part-1-d46adab464ab">link</a>.</p><p>In this article, we will understand Skiplists better and move on to SSTables. Let’s continue with the same skiplist example from part 1.</p><pre>head              4                     tail <br>head         3    4         7           tail <br>head    1    3    4    6    7    8    9 tail</pre><p>Let’s call each element in the skiplist a Node. There will be two nodes in a freshly created empty skiplist — a head and a tail. The first and last elements. The key and value fields of both headand tail nodes are set to null. All new inserts will go between them. As we keep inserting, we need to find a way to sort them. A linear scan is not that great, provided the O(n) runtime. Binary search will work just fine if we have an indexed array of elements. Instead, what we have is a linked list.</p><p>Skiplist’s way of optimizing this problem is by randomly adding few nodes in a second list/layer just above the list we already have. As you guessed, Node will have four references — left, right, up and down. In the first layer, only left and right are used, until a new layer is added above it. This new layer will have fewer number of Nodesthan the below layer. When we build third layer, it’s going to be sparser than second layer. There is no limit to the number of layers we can have in the skiplist.</p><p>So how do we create a new layer?</p><p>That’s the probabilistic part of skiplists. It’s a coin toss simulation. In Java, math.random is a good choice. Coin toss is used only during insertion of a new Node to the list. When a Node is inserted, a coin is tossed and based on the result, a new Node may be added on top of the recently inserted Node. Consequently, a tower is built. This process continues as long as the result of the coin toss is favourable. Note that the Nodes in the higher levels don’t need value, they just need the key (for the search operation).</p><h3>Searching a skiplist</h3><pre>public SkipListNode find(ByteArray key) {<br>  SkipListNode cur = head;<br><br>  while (true) {<br>   while (cur.right.key != null &amp;&amp; cur.right.key.compareTo(key) &lt;= 0)<br>    cur = cur.right;<br><br>   if (cur.down == null)<br>    break;<br><br>   cur = cur.down;<br>  }<br>  return cur;<br> }</pre><p>Finding a Node is easy. Keep moving towards right and down as long as the key of the current Node is less than or equal to the key we are searching.</p><p>Important point to node: if the key we are searching is not found, a Node with key less, but closest to the key we are looking for, is returned.</p><p>That’s very useful for the insert method to find where it needs to insert the new Node.</p><h3>Let’s see how insert works.</h3><p>In the below code snippet, we will add a new Node in the above layer, if the random value is less than 0.5. Based on this probability, we continue to build the tower. Also add a new empty layer in the process, if necessary.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f45c0b4c988a3ffd928f84b1f6a21301/href">https://medium.com/media/f45c0b4c988a3ffd928f84b1f6a21301/href</a></iframe><p>If we re-run the code that generated the skiplist at the top of this article, we might get a slightly different skiplist this time. The layer at the bottom will remain the same, but the towers may vary.</p><p>For deleting a node, we must first find the Node by the key. Then delete the tower it belongs. This process, as well as the insert process, requires adjusting the referencing in the neighboring Nodes.</p><h3>Why skiplist, why not BTree, B+Tree or RedBlack Tree?</h3><p>Red-Black trees, AVL trees, B+ trees are all good choices. An insert to any of the above tree requres rotation to keep then balanced. This can be expensive. There are more to choosing the right data structure. Check the references section at the bottom.</p><p>Back to the KochuDB server implementation. We will be using skiplist to implement memtable. Once the skiplist reaches a maximum size, it’s flushed into the disk. The flusher thread is invoked by the insert operation.</p><p>Every insert operation checks if the skiplist size exceeds the maximum allowed size, and triggers the flush operation after rotating the current memtable. Currently active memtable is added to the queue, a new memtable instance is created, and the flusher thread is invoked.</p><pre>if (curSkipListSize &gt;= maxSkipListSize) {<br>  memTableQueue.add(memTable);<br>  memTable = new SkipList();<br>  memTableExecutor.submit(new MemTableFlusher(memTableQueue));<br>  curSkipListSize = 0;<br>}</pre><p>The flusher thread will create a data file and saves the key-value data in bytes. Once the data file is created, an index file is also created. Index file is also a key-value pair where value is the offset in the data file where the key-value pair resides.</p><p>Reader thread will read the index file, then jump to the specific offset in the data file and read the bytes from the offest position.</p><h3>Reading SSTables</h3><p>How do we know how many bytes to read from the index and data file?</p><p>When bytes are written to disk, usually they are written without delimiters, but there is a way to know the length of each record. This is achieved by prepending a magic byte to every piece of data that is written.</p><p>Let’s see an example.</p><p>Let’s say we are writing “abc” into disk, we convert “abc” to byte array, which is [97, 98, 99]. Length of this byte array is 3. If we use Integer to represent the length bytes, we are going to use [0, 0, 0, 3], that is 4 bytes. The interger is prepended to the data bytes and written to the file.</p><p>While reading, we will read an Integer (first 4 bytes) from the offset position, and then read that many bytes after the first 4 bytes. That will be the data in bytes array. Deserializing it with the right deserializer can turn it into the object that it was.</p><p>In KochuDB implementation, this is how we will read and write SSTables.</p><p>Note that KochuDB supports keys of up to 256 characters long, and values upto 4MB in size.</p><p>The reason the length is restricted to 256 bytes is that we only need to prepend one byte for storing keys. Also it makes practical sense. We will however need 4 bytes to store value since it can be quite long, it would need more than one byte to store its length.</p><p>We will explore reading from and writing to SSTables in detail in part-3.</p><p>Continue to <a href="https://medium.com/@pracho/building-an-lsm-tree-based-data-store-in-java-part-3-7a8725915243">part 3</a> of this series.</p><h3>References</h3><ol><li>Skiplist vs treap (<a href="https://cs.stackexchange.com/questions/48850/would-you-ever-use-a-skip-list-over-a-treap">link</a>)</li><li>Skip Lists: A Probabilistic Alternative to Balanced Trees (<a href="https://homepage.cs.uiowa.edu/%7Eghosh/skip.pdf">link</a>)</li><li>Skip List vs Red Black Tree (<a href="https://stackoverflow.com/a/260277/134143">link</a>)</li><li>AVL Tree rotations animation (<a href="https://www.cs.usfca.edu/~galles/visualization/AVLtree.html">link</a>)</li><li>Magic Numbers and history (<a href="https://en.wikipedia.org/wiki/File_format#Magic_number">link</a>)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8809aadae248" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an LSM Tree based data store in Java — part 1]]></title>
            <link>https://medium.com/@pracho/building-an-lsm-tree-based-data-store-in-java-part-1-d46adab464ab?source=rss-617e0d5b220------2</link>
            <guid isPermaLink="false">https://medium.com/p/d46adab464ab</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[key-value-store]]></category>
            <category><![CDATA[system-design-project]]></category>
            <category><![CDATA[database-development]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[Prasad Cholakkottil]]></dc:creator>
            <pubDate>Mon, 19 Feb 2024 23:50:09 GMT</pubDate>
            <atom:updated>2025-04-27T22:45:07.545Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an LSM Tree based datastore in Java — part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*miFvLVbfYPT9SCPWQZPHhg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@emilep">Emile Perron</a></figcaption></figure><p>In this series, let me walk you through the basics of building an LSM Tree based NoSQL key-value store by building a thread safe, level compacted key-value data store designed for high throughput and low latency.</p><p>Let’s begin by understanding the data structures and concepts involved in an LSM Tree based data store, and then start writing them.</p><h3>What is an LSM Tree?</h3><p>Log-structured merge tree (LSM Tree) is a broad term for a hierarchical data structure. LSM Tree is composed of various data structures with specific characteristics of their own — both on disk and in-memory.</p><p>LSM Tree stores data in files as key-value pairs, very much like append-only log files. These log files are then merged into a larger file keeping the keys in sorted order. As the number of files grow, several sorting and merging take place. This process is called Compaction and is usually performed by background worker threads.</p><p>Over time, files generated by compaction can grow in large numbers. When this happens, all these files will undergo another round of compaction. This process will go on, usually until some threshold, for example, maximum size of a compacted file cannot exceed 5GB, is met.</p><p>When the server receives a write request, the kay-value data is stored in an in-memory data structure, often called memtable. When memtable grows big enough, it’s flushed on to disk as a new file, and a new memtable is created to accept new write requests.</p><p>When the memtable is flushed to the disk, they are usually few MBs in size. First level compaction merges several of them into a single larger file of size, let’s say, 100MB. After several rounds of compaction in the first level (that is, memtables), several 100MB files would be generated, which demands a compaction on 100MB files. All this 100MB files are now compacted into a 1GB file. This process requires some configuration and some strategy to group, sort and merge the files. Each group of files with a specific size is called a level. Two popular compaction strategies are levelled compaction and size tiered compaction. There are other strategies too. But in this article, we are going to discuss levelled compaction strategy.</p><h3>Major components of LSM Tree</h3><p>If we want to store key-value data, what would be an easy solution? Appending the key-value pair to a text file is a naïve, easy approach. This approach, however, has few problems. First, file can grow huge over time, beyond the size that OS can support. Second, updating an existing key-value pair in the file with a longer value can result in rewriting the entire content in the file after that key-value pair. Another issue is searching a key requires scanning the entire file in worst case scenario.</p><p>The first problem can be solved with splitting file into smaller segment files. This solves the second problem to an extent. Even better if we don’t update existing key-value pairs but append a new record with updated value instead. That is, during a search, we search the most recent files first. Once the key is found, that’s guaranteed to have the most recent value, and the search stops there. This also solves the third problem. Furthermore, keeping an index file for each segment file makes the search process better.</p><p>The segment files in the LSM Tree are called Sorted-String Tables, or SSTables. Sorted-String tables are files which contain key-value pairs that are sorted by keys in the natural/lexicographical order. Creating an index file out of SSTable is straight-forward.</p><p>This is the high-level design approach of the basic storage strategy of LSM Tree based datastore.</p><p>This approach will work just fine, except writing to disk every time server receives an insert request isn’t great since it adds some latency to every request-response cycle. One good approach to get around this is by saving the data in an in-memory data structure, and acknowledge the client that the data is saved, then continue to process next request. Once the in-memory data grows to a threshold, flush it to the disk. This approach can guarantee high throughput but does not guarantee fault tolerance. What if the server crashes before flushing the in-memory data to disk?</p><p>For fault tolerance, traditional approach is keeping a log of incoming requests and data. If the server restarted before flushing the in-memory data, this log can be replayed when the server restarts. In the RDBMS, this log is called bin log or commit log. This is a durability topic and not related to the LSM Tree. But this is applicable to LSM Trees as well.</p><p>The in-memory data structure where all writes are temporarily stored is called ‘memtable’, this can be any data structure of choice. Many popular data stores use skiplist for memtable implementation. When a memtable is persisted to disk as sorted-string table, the duplicate keys are removed by keeping the most recent value for each key. Also, the current memtable is rotated to have a new empty memtable in place. Older one is discarded once flushing to disk is successfully completed.</p><p>The terms memtable and SSTable were introduced by Google Big Table paper. Google’s LevelDB (and its successor like Facebook’s RocksDB) is implemented based on this design. Many popular NoSQL implementations such as Cassandra and HBase are also built on similar storage strategy.</p><p>Now we understand the data structures, let’s start with some code examples. Let’s start with a simple Socket Server that accepts connections from clients and responds to them with a ‘response’.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/747a321f1631d3e7dd01248ec341a5c4/href">https://medium.com/media/747a321f1631d3e7dd01248ec341a5c4/href</a></iframe><p>Don’t fret over the storage engine for now, we will get to that soon. But the ByteArrayclass is a wrapper for byte[]. Since all incoming data are stored in bytes in files, and we need to sort them by their keys, we need aComparable byte[]. The byte[]in Java does not implement Comparable interface, we need to create one.</p><p>See below code snippet for how ByteArrayclass is implemented. The only important part is the compareTo(ByteArray o) method</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8296f2ae97d7bfdb311b859a2f3b7b0/href">https://medium.com/media/d8296f2ae97d7bfdb311b859a2f3b7b0/href</a></iframe><p>Storage Engine interface defines three functions — get, set and del. In our implementation, K and V are ByteArrayand byte[]respectively.</p><pre>public interface KVStorage&lt;K extends Comparable&lt;K&gt;, V&gt; {<br>    public V get(K key);<br>    public V set(K key, V val);<br>    public V del(K key);<br>}</pre><p>Now we have the front-end of our server ready, let’s look at the data structures that work behind the scenes.</p><h3>LSM Tree implementation</h3><p>LSMTree class has references to a memtable and SSTable. There is also a memtable queue, which is used for memtable rotation. As soon as the old memtable is full, a new memtable takes charge and the old one is moved to a queue. This is because the memtable is flushed to the disk by a background thread, which may not immediately start flushing as soon as one memtable is ready to be flushed. And of course, the front-end thread (the one that accepts client connections) doesn’t want to spend time writing memtable to disk.</p><p>Our server’s LSM Tree class that implements above interface looks like below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a34cb0edfcbf98465df50d45cd94a4d/href">https://medium.com/media/3a34cb0edfcbf98465df50d45cd94a4d/href</a></iframe><p>There are two executors in the above code. First one is to flush memtable to disk. Second one is meant to compact SSTables. We will see SSTable compaction strategy and the code later. For now, let’s concentrate on implementing a skiplist.</p><h3>So What is a SkipList?</h3><p>A SkipList is a list, that stores elements in sorted order.</p><p>More precisely, a SkipList is a probabilistic data structure, that stores elements in sorted order and also offers average O(log n) time for insert/update, delete and search operations.</p><p>For example, let’s insert elements with keys 7, 3, 8, 1, 9, 6, 4 into a skiplist. Let’s assume that the value is null for all elements. The skiplist may have the below structure (one of the many possible structures).</p><pre>Skiplist skiplist = new Skiplist();<br><br>skiplist.put(new ByteArray(&quot;7&quot;), new byte[] {});<br>skiplist.put(new ByteArray(&quot;3&quot;), new byte[] {});<br>skiplist.put(new ByteArray(&quot;8&quot;), new byte[] {});<br>skiplist.put(new ByteArray(&quot;1&quot;), new byte[] {});<br>skiplist.put(new ByteArray(&quot;9&quot;), new byte[] {});<br>skiplist.put(new ByteArray(&quot;6&quot;), new byte[] {});<br>skiplist.put(new ByteArray(&quot;4&quot;), new byte[] {});<br><br>System.out.println(skiplist.toString());<br><br>// output of the above code below<br><br>head              4                     tail <br>head         3    4         7           tail <br>head    1    3    4    6    7    8    9 tail</pre><p>The layer in the bottom of the output has the actual data in sorted order regardless of the insertion order. But there are more layers on top of that. They are the ones that offer O(log n) time complexity. They help searching an element efficient, comparable to how binary search work.</p><p>We will see the implementation details of skiplist and how it is probabilistic in nature in the next article.</p><p>Continue to the <a href="https://medium.com/@pracho/building-an-lsm-tree-based-datastore-in-java-part-2-8809aadae248">part 2</a> of this article.</p><h3>References:</h3><ol><li>SSTables and LSM Trees, Designing Data-Intensive Applications (<a href="https://dataintensive.net/">link</a>)</li><li>Bigtable: A Distributed Storage System for Structured Data (<a href="https://static.googleusercontent.com/media/research.google.com/en//archive/bigtable-osdi06.pdf">link</a>)</li><li>Log-structured Merge Tree, wikipedia (<a href="https://en.wikipedia.org/wiki/Log-structured_merge-tree">link</a>)</li><li>Github: LevelDB (<a href="https://github.com/google/leveldb">link</a>), RocksDB (<a href="https://github.com/facebook/rocksdb">link</a>)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d46adab464ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>