{"id":2430,"date":"2023-03-01T23:52:54","date_gmt":"2023-03-01T23:52:54","guid":{"rendered":"https:\/\/www.clouddatainsights.com\/?p=2430"},"modified":"2023-03-01T23:54:51","modified_gmt":"2023-03-01T23:54:51","slug":"on-the-quest-for-extremely-fast-data-ingestion","status":"publish","type":"post","link":"https:\/\/www.clouddatainsights.com\/on-the-quest-for-extremely-fast-data-ingestion\/","title":{"rendered":"On the Quest for Extremely Fast Data Ingestion"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S.jpg\" alt=\"\" class=\"wp-image-2431\" width=\"750\" height=\"500\" srcset=\"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S.jpg 1000w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S-300x200.jpg 300w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S-768x512.jpg 768w, https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S-930x620.jpg 930w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\"><em>Speedb moves towards open source in the quest for extremely fast data ingestion.<\/em><\/figcaption><\/figure><\/div>\n\n\n<p><em>CloudDataInsights (CDI) caught up with Adi Gelvan,* Co-founder and CEO of Speedb, at a pivotal moment\u2013It was about to re-launch itself as an open source company. The quest for a high-performing storage engine has led to open source and a new approach to understanding and solving common user challenges. There were many months of research, transitioning software engineers to a new mode of thinking and working, and building the community that will engage with the technology and collaborate in its evolution. This is the open-source quest for extremely fast data ingestion.<\/em><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>CDI: Going all in on open source is a huge decision to make with lots of implications for your current customers and future users. How did you come to that decision?<\/strong><\/h5>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/03\/Adi-Gelvan.png\" alt=\"\" class=\"wp-image-2440\" width=\"325\" height=\"395\"\/><figcaption class=\"wp-element-caption\"><em>Adi Gelvan, Co-founder and CEO of Speedb<\/em><\/figcaption><\/figure><\/div>\n\n\n<p><strong>Adi Gelvan: <\/strong> I think that being an open-source company really starts from being authentic. We had an interesting path to open source, and honestly, it wasn’t a business decision or a strategic decision. It was a path we went through. When we first incorporated the company, we were trying to find a solution to a very painful problem, and the path took us to open source. <\/p>\n\n\n\n<p>We started the company around our cutting-edge technology. We had found a problem that thousands of companies are struggling with, that is, there was no scalable, high-performant, embedded key value store. The two market-leading technologies that addressed this gap were Level DB (open source but designed by Google for Google) and RocksDB (designed by Facebook for Facebook) are great, but they weren’t meant to be general-purpose solutions.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>CDI: So, the existing solutions addressed very specific data sets, data ecosystems, and use cases. That seems to contradict the open-source approach. Can you tell us more?<\/strong><\/h5>\n\n\n\n<p><strong>Adi Gelvan: <\/strong>Yes, so they worked well for very specific workloads. They do a wonderful job for Facebook and Google and some companies like them. But thousands of customers are using them and not getting their merits because there are capabilities that are missing. When we came up with our hybrid compaction and the new technology that allowed us to develop Speedb which can outperform Level DB and RocksDB and give a lot of value to various workloads with large data sets. We said, “We\u2019ve got it, now let’s start selling it.” Big companies were interested in our \u201csecret sauce,\u201d but in the end, companies are not the actual customers. It\u2019s actually the person who presses Enter or writes the code to embed it\u2013typically a developer. Well, developers don’t buy secret sauce even if it\u2019s ten times better or a hundred times better. <\/p>\n\n\n\n<p>There’s a saying in Hebrew that if three people are telling you that you’re a donkey, go find some grass to eat. Well, I needed about 300 people to tell me that, not just three.<\/p>\n\n\n\n<p>Enough customers are saying, “I will buy it, just let me try it. Let me contribute. Let me actually help you do something that will fit my needs.” We said, “Okay.” If we had continued to work on our secret sauce behind closed doors, we might have done something wrong. That\u2019s what led us to change not just the face of the company but the heart of the company.<\/p>\n\n\n\n<p>Speedb developers, who hadn’t spoken to people in months, are now actively answering questions from the community on Discord. People whose code no one ever saw were now open-sourcing it.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>CDI: Engaging the community is probably also key to developing a versatile product, one that is agnostic because enterprise-driven development organizations often try to satisfy the biggest customer. The community can balance that influence and keep development moving in a generally acceptable direction. Are you seeing this balancing effect?<\/strong><\/h5>\n\n\n\n<p><strong>Adi Gelvan: <\/strong>So I think that the essence of why we exist is because people who developed this technology were developing for the customer \u201cdu jour.\u201d They did it for themselves. And if you see the biggest customers, by the way, the big giants who took RocksDB and forked it to their own needs, they also repeat stuff for their own needs. And you have giants like Alibaba and ByteDance, the mothership of TikTok. They have their own version and are doing their own stuff. But as they do their work in a silo, no one from the community is actually gaining from their work.<\/p>\n\n\n\n<p>What we’re all about is <a href=\"https:\/\/www.clouddatainsights.com\/prestocon-day-reveals-how-an-open-source-ecosystem-comes-together\/\">bringing value to the community<\/a>. And who is the community? These are developers who are excited about LSM and RocksDB but also want to bring value to their own mothership. They want some features that are not of interest to Facebook or ByteDance, but they have their own needs. In the RocksDB project, there were around 300 pull requests waiting for months to years for action. We’re gradually embedding these into the <a href=\"https:\/\/www.speedb.dev\/\">Speedb open-source code<\/a>. This is part of the community-building we are doing today. <\/p>\n\n\n\n<p>Here is an Interesting example\u2013we get more and more voices from the community, from bigger customers, like the biggest chip makers you can think of that are waiting for two years for two pull requests. We’re taking care of these right now, and we’re so glad that they are talking to us. That means that they also believe in what we’re doing. And I’m certain that a thousand engineers from the outside of a company know much more than the smartest people on earth if they’re on the inside, simply because the outside engineers are your target customers. They are the users.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>CDI: Now for a few technical questions. Why was including <\/strong><a href=\"https:\/\/www.rtinsights.com\/mining-metadata-for-business-value-why-context-matters\/\"><strong>metadata <\/strong><\/a><strong>so important to you or to your customers?<\/strong><\/h5>\n\n\n\n<p><strong>Adi Gelvan:<\/strong> Most of the data moving over networks today is metadata. The ratio between data and metadata in the past decade has dramatically changed because of connected devices and IoT. <\/p>\n\n\n\n<p>For example, if you have a page of temperature readings then the metadata is the location, the height, etc. Sometimes it\u2019s ten times the size of the temperature reading data. Now, if you can’t access the metadata, you can\u2019t access the data. Legacy systems were simply not built to accommodate this volume of metadata.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>CDI: One of the techniques Speedb uses to handle large amounts of metadata is hybrid compaction. Can you explain what this is?<\/strong><\/h5>\n\n\n\n<p><strong>Adi Gelvan: <\/strong>Compaction is a critical process within a data structure called log-structured merge-tree (LSM). The LSM tree has layers. Within the layers, you have sst files. When a level is filled with sst files, you join them together and write them to the next level as a bigger sst file. The data then takes less space when merged into one large file. You call this process compaction. Now, Google working with academia, invented the LSM tree. Facebook took it one step further, but everyone who tried to improve this mechanism was looking at it on an X and Y axis, so only in two dimensions. <\/p>\n\n\n\n<p>Essentially what Speedb did was to look at the LSM tree in a multidimensional way and divided every level into multiple levels, which gave us another level of improvement of the compaction process. That\u2019s the essence of hybrid compaction. Bottom line, the most important measurement of the efficiency of compaction is WAF = write amplification factor, which essentially means how many physical writes the system does compared to one logical write, and here we were able to improve it from X30 to X5.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>CDI: Tell us about the work you\u2019ve done on the storage engine to support very fast writes.<\/strong><\/h5>\n\n\n\n<p><strong>Adi Gelvan: <\/strong>The underlying engine of every database or application is the storage engine which takes the data that is written into the database and <a href=\"https:\/\/www.clouddatainsights.com\/how-to-choose-cloud-storage-versus-data-center\/\">writes it into the underlying storage<\/a>, which can be media, flash, a file system, or the S3 protocol. They were often overlooked because they were very simple\u2013all they did was handle the metadata and make sure the data was written in the right position. But today, when metadata started exploding and creating a real burden on every application, the storage engine suddenly became a bottleneck, a bottleneck that could not be addressed through old-generation key-value storage engines, SQL queries, or table structures. <\/p>\n\n\n\n<p>Solving that bottleneck, often caused by metadata, is what Speedb does. It\u2019s a very general use case since every system or every application that manages data is writing to a storage engine that does the work of distributing data onto the underlying media.<\/p>\n\n\n\n<p>There is another bottleneck, which is, of course, the media you\u2019re writing to. Speedb\u2019s new hybrid compaction technology solves this problem in many cases.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>CDI: What\u2019s next for Speedb?<\/strong><\/h5>\n\n\n\n<p><strong>Adi Gelvan: <\/strong>The focus right now is to strengthen and expand the Speedb community. We are working on helping the community grow and increasing the amount of community-sourced code and enhancement requests. We find more and more companies that are facing performance and cost-efficiency challenges that are keen to work with us on solving their issues.<\/p>\n\n\n\n<p><em>Find the Speedb open-source community at <\/em><a href=\"https:\/\/www.speedb.dev\/\">https:\/\/www.speedb.dev\/<\/a>.<em> Find it on GitHub at<\/em> <a href=\"https:\/\/github.com\/speedb-io\/speedb\"><em>https:\/\/github.com\/speedb-io\/speedb<\/em><\/a><em>.<\/em><\/p>\n\n\n\n<p>* <em>Adi Gelvan is the Co-founder and CEO of <a href=\"http:\/\/speedb.io\/\">Speedb<\/a>. With over two decades of management, commercialization, and executive sales positions, Adi specializes in leading global software technology companies like Infinidat and SQream to outstanding growth. Adi holds a double academic degree in mathematics & computer science. Adi invites everyone who is interested in Speedb to follow the project on <a href=\"https:\/\/github.com\/speedb-io\/speedb\">GitHub<\/a> and give it a star if they like what they see.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CDInsights talks to Speedb about it’s decision to move open-source and what goes into the quest for extremely fast data ingestion.<\/p>\n","protected":false},"author":44,"featured_media":2431,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_uag_custom_page_level_css":"","neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[46,170,121,172,171],"class_list":["post-2430","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-architecture","tag-data-architecture","tag-data-ingestion","tag-interview","tag-open-source","tag-storage-engine"],"acf":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S.jpg","uagb_featured_image_src":{"full":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S.jpg",1000,667,false],"thumbnail":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S-150x150.jpg",150,150,true],"medium":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S-300x200.jpg",300,200,true],"medium_large":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S-768x512.jpg",768,512,true],"large":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S.jpg",1000,667,false],"1536x1536":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S.jpg",1000,667,false],"2048x2048":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S.jpg",1000,667,false],"alm-thumbnail":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S-150x150.jpg",150,150,true],"neve-blog":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S-930x620.jpg",930,620,true],"rpwe-thumbnail":["https:\/\/www.clouddatainsights.com\/wp-content\/uploads\/2023\/02\/Depositphotos_132945206_S-45x45.jpg",45,45,true]},"uagb_author_info":{"display_name":"Elisabeth Strenger","author_link":"https:\/\/www.clouddatainsights.com\/author\/estrenger\/"},"uagb_comment_info":0,"uagb_excerpt":"CDInsights talks to Speedb about it's decision to move open-source and what goes into the quest for extremely fast data ingestion.","_links":{"self":[{"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/posts\/2430"}],"collection":[{"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/users\/44"}],"replies":[{"embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/comments?post=2430"}],"version-history":[{"count":5,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/posts\/2430\/revisions"}],"predecessor-version":[{"id":2444,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/posts\/2430\/revisions\/2444"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/media\/2431"}],"wp:attachment":[{"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/media?parent=2430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/categories?post=2430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clouddatainsights.com\/wp-json\/wp\/v2\/tags?post=2430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}