<?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: Jason Hutchens</title>
    <description>The latest articles on DEV Community by Jason Hutchens (@kranzky).</description>
    <link>https://dev.to/kranzky</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F186249%2F6f3a1523-6503-444b-852c-f37b48460545.jpeg</url>
      <title>DEV Community: Jason Hutchens</title>
      <link>https://dev.to/kranzky</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kranzky"/>
    <language>en</language>
    <item>
      <title>Embrace the Base</title>
      <dc:creator>Jason Hutchens</dc:creator>
      <pubDate>Wed, 26 Jun 2019 02:46:48 +0000</pubDate>
      <link>https://dev.to/kranzky/embrace-the-base-20m6</link>
      <guid>https://dev.to/kranzky/embrace-the-base-20m6</guid>
      <description>&lt;p&gt;Web and app development is, fundamentally, a process of working with three major components and two network connections.&lt;/p&gt;

&lt;p&gt;Here's a diagram:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;client &amp;lt;-internet-&amp;gt; server &amp;lt;-intranet-&amp;gt; store
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;client&lt;/code&gt; is nowadays a reactive application, the &lt;code&gt;server&lt;/code&gt; is often GraphQL or an old-school REST API backed by a web framework or a serverless architecture such as Lambda, and the &lt;code&gt;store&lt;/code&gt; is usually some sort of database, sometimes of the NoSQL variety.&lt;/p&gt;

&lt;p&gt;And those two network connections are killer. They're really, really, really, really slow, compared to each component doing internal work.&lt;/p&gt;

&lt;p&gt;These days I'm experimenting with my own omakase framework that focuses on realtime data synchronisation between the &lt;code&gt;client&lt;/code&gt; and &lt;code&gt;server&lt;/code&gt; instead of an API, and which moves a lot of app logic from the &lt;code&gt;server&lt;/code&gt; into the &lt;code&gt;store&lt;/code&gt;, which, after all, is the fundamental source of truth, and is already super-optimised to play exactly that role. This vastly simplifies the &lt;code&gt;server&lt;/code&gt; component, as it needs to do not much more than acting as an authentication, routing and rendering layer.&lt;/p&gt;

&lt;p&gt;The trick to all this is to implement a unidirectional data flow within the &lt;code&gt;store&lt;/code&gt; as well. All queries are read-only, and mutating data can only occur by adding changelog events, allowing data to be manipulated must as we do with &lt;code&gt;git&lt;/code&gt;, and making it easy to determine the minimal changeset that a particular &lt;code&gt;client&lt;/code&gt; needs to bring it up to date.&lt;/p&gt;

&lt;p&gt;All of which is a long-winded way of saying that I think developers should focus more of their attention on the database, as there's still a lot of latent potential there that's waiting to be unlocked.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>sql</category>
      <category>ruby</category>
    </item>
  </channel>
</rss>
