<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vivek</title>
    <description>The latest articles on DEV Community by Vivek (@viveke22).</description>
    <link>https://dev.to/viveke22</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F947093%2F092763ed-47ec-4087-8b92-658315f19c38.jpeg</url>
      <title>DEV Community: Vivek</title>
      <link>https://dev.to/viveke22</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/viveke22"/>
    <language>en</language>
    <item>
      <title>Why I Built DewDB Without TiKV</title>
      <dc:creator>Vivek</dc:creator>
      <pubDate>Sat, 26 Sep 2026 10:41:01 +0000</pubDate>
      <link>https://dev.to/viveke22/why-i-built-dewdb-without-tikv-16bc</link>
      <guid>https://dev.to/viveke22/why-i-built-dewdb-without-tikv-16bc</guid>
      <description>&lt;p&gt;A lot of distributed databases rely on a separate distributed storage layer underneath them.&lt;/p&gt;

&lt;p&gt;I wanted something simpler.&lt;/p&gt;

&lt;p&gt;With DewDB, the database nodes themselves handle storage, replication, leader election, failover, sharding, and data movement.&lt;/p&gt;

&lt;p&gt;There is no TiKV underneath and no separate coordinator.&lt;/p&gt;

&lt;p&gt;A replicated DewDB group has a leader and replicas. If the leader dies, a replica can take over.&lt;/p&gt;

&lt;p&gt;For scale-out, DewDB adds sharding. Each shard group has its own leader and replicas, so different shards can handle writes independently.&lt;/p&gt;

&lt;p&gt;Why not just use TiKV?&lt;/p&gt;

&lt;p&gt;Because then DewDB would become a document and query layer on top of another distributed database.&lt;/p&gt;

&lt;p&gt;I wanted the thing you deploy to also be the thing doing the replication, failover, and sharding.&lt;/p&gt;

&lt;p&gt;That means DewDB also has to own the difficult parts itself: elections, quorum logic, WAL recovery, replica repair, shard ownership, and migration.&lt;/p&gt;

&lt;p&gt;That tradeoff is the whole point of the project.&lt;/p&gt;

&lt;p&gt;DewDB is still young, but today it already has documents, queries, secondary indexes, replication, failover, sharding, change streams, and online shard migration.&lt;/p&gt;

&lt;p&gt;If you want to try it on Windows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;iwr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;https://windows.dewdb.com&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-useb&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iex&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;dewdb&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;init&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;dewdb&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub: &lt;a href="https://github.com/dewdb/dewdb" rel="noopener noreferrer"&gt;https://github.com/dewdb/dewdb&lt;/a&gt;&lt;/p&gt;

</description>
      <category>database</category>
      <category>distributedsystems</category>
      <category>rust</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
