<?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 Brandon Ramirez on Medium]]></title>
        <description><![CDATA[Stories by Brandon Ramirez on Medium]]></description>
        <link>https://medium.com/@rezbrandon?source=rss-76484371ee41------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*aqmYPeOGbqsaaECrddttng.jpeg</url>
            <title>Stories by Brandon Ramirez on Medium</title>
            <link>https://medium.com/@rezbrandon?source=rss-76484371ee41------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:46:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rezbrandon/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[GraphQL Will Power the Decentralized Web]]></title>
            <link>https://medium.com/graphprotocol/graphql-will-power-the-decentralized-web-d7443a69c69a?source=rss-76484371ee41------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7443a69c69a</guid>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Brandon Ramirez]]></dc:creator>
            <pubDate>Wed, 13 Mar 2019 16:52:02 GMT</pubDate>
            <atom:updated>2020-07-27T18:06:43.793Z</atom:updated>
            <content:encoded><![CDATA[<h4>Leveraging blockchains and storage networks as a data interoperability layer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZKqt9x5Q9wcoIS76MekiQ.png" /></figure><p>For decades, the only widely used database in town was the SQL database, and it still lies at the heart of most of organizations, software applications, and institutions. With the advent of the blockchain, however, there is finally an alternative to the relational database, and I’m not just talking about the incremental improvements brought about by the NoSQL movement. We’re on the cusp of a new paradigm, dubbed the decentralized web or Web3, where data, rather than proprietary APIs, is the fundamental substrate for interoperability. In this post, I explain why this transition is happening, and how the GraphQL query language is uniquely positioned to power this new era of data interoperability.</p><h3>The problem with proprietary APIs</h3><p>The web of today is connected via proprietary application programming interfaces (APIs), which exist mainly to solve the limitations of a centralized, typically SQL, database. In describing the state of affairs, Vinay Gupta, previously of the Ethereum foundation, <a href="https://player.fm/series/future-thinkers-podcast/ftp018-vinay-gupta-part-1-techno-social-systems">observed</a>:</p><blockquote>When you’ve got a single big database at the heart of your organization, which stores all truth and all wisdom, you’re very reluctant to let other people touch that database.</blockquote><p>So, proprietary APIs running on servers act as a protective barrier to a central database. They limit what goes in, what goes out, by whom, and in what format. With the microservices pattern, we even encapsulate data within organizations, such that services built by different teams must go through one another’s APIs. While this has gotten us to where we are today, this proliferation of APIs has the following drawbacks:</p><ol><li>APIs are rigid and costly to maintain.</li><li>The current model is inefficient.</li><li>Proprietary APIs lead to data monopolies.</li></ol><p>Let’s examine each of these more closely.</p><h4>1. APIs are rigid and costly to maintain</h4><p>APIs, specifically REST APIs (more on this later), are designed with specific use cases in mind, such as a feature in a web app, and the further you get from those use cases, the more difficult they become to use.</p><p>Within organizations, this leads to an ever-expanding API surface area. Each new feature requires additional engineering work to extend the API with a new endpoint. Each new endpoint, in turn, requires ongoing engineering work to maintain and support for the duration of its usage, which can be a <em>very</em> long time.</p><p>For consumers of public APIs, meanwhile, they are stuck with the use cases that the API developers decide to support. Kyle Daigle, Github’s Director of Ecosystem Engineering, <a href="https://www.heavybit.com/library/podcasts/jamstack-radio/ep-5-graphql-at-github/">stated the issue clearly</a>:</p><blockquote>Almost every API drives integrations by its design… every API I can think of… they all have sort of an idea of how they want you to use it, and if you want to subvert that, it’s basically impossible……you have to go and scrape a ton of database, stick it in a database, and essentially build your own API around that.</blockquote><p>The rigidity of these public APIs requires a ton of extra engineering effort to work around, which brings us to our next point.</p><h4>2. The current model is inefficient</h4><p>As we’ve seen, the rigidity of APIs leads to a proliferation of more databases and APIs, often to store the <em>exact same data</em>, simply in a different format or behind different API semantics. Each of these new databases and APIs requires additional infrastructure and engineering resources to maintain.</p><p>It also leads to an incredible amount of indirection. Again, quoting Vinay Gupta on the topic:</p><blockquote>When you file a form with the IRS, it goes through 6 or 7 processes before it winds up in their databases… the whole collaboration [is] indirect, bureaucratic, difficult.</blockquote><p>In <a href="https://qri.io/papers/deterministic_querying/">their paper</a> describing this problem in the context of research data, Brendan O’Brien and Michael Hucka describe the primacy of the SQL database as the “database in the middle” pattern, shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xaqsT3WoVgDPlmhzaTSAVg.png" /><figcaption>“Database in the middle pattern” adapted from: <a href="https://qri.io/papers/deterministic-querying/">https://qri.io/papers/deterministic_querying/</a></figcaption></figure><p>Any sufficiently non-trivial software system will involve countless servers encoding data from one database, serving it over the network, decoding the data, putting it in another database, and repeating this process many times over.</p><p>O’Brien and Hucka go on to describe how it’s common in these data pipelines for the intermediate results to be stored in a private database or thrown out entirely because of the engineering effort required to make this data publicly available. The result is two dimensions of duplication: within data pipelines and across data pipelines created by isolated teams and organizations.</p><h4>3. Proprietary APIs lead to data monopolies</h4><p>The necessity of placing data in silos also leads to moral hazard. It has become a common narrative in the tech scene, where a major tech giant revokes access to its proprietary APIs after previously encouraging developers to build on their platform.</p><p>Facebook <a href="https://techcrunch.com/2018/12/04/facebook-allows-competitors/">did it intentionally to stifle competition</a>, and Twitter did it to monetize it’s data more effectively. <em>InfoWorld’s</em> Senior Writer, Serdar Yegulalp, <a href="https://www.infoworld.com/article/2908869/big-data/twitters-firehose-shut-off-is-the-newest-hazard-of-the-api-economy.html">covered Twitter’s story</a>, succinctly describing the risks of building on proprietary APIs:</p><blockquote>Call it one of the occupational hazards of the API economy: The more widespread and multifaceted the reliance on a single entity — be it as a data source, an analytics layer, or an infrastructure — the easier it is to have the rug yanked out from under your feet.</blockquote><p>A software architecture paradigm that requires data to sit behind gatekeepers naturally invites the pernicious practices of these data monopolies.</p><p>Lest I be too unfair, I should note that API-based connectivity has been a massive success. APIs have created immeasurable economic value by enabling developers to compose software from smaller purpose-built services like Stripe or Twilio. They’ve given us a way to safely transmit data between applications in the legacy technology landscape dominated by SQL. The internet we know and love today would not be what it is without APIs. But now, with the advent of blockchain and other web3 technologies, we have a chance to enter a new era of frictionless interoperability on the internet.</p><h3>Enter blockchain and content-addressed storage</h3><p>At the heart of the shortcomings of SQL as well as most NoSQL databases is its embrace of an information model that mutates data in place. Rich Hickey, creator of the Clojure programming language and the Datomic database, calls this <a href="https://youtu.be/-6BsiVyC1kM?t=354"><em>place-oriented programming</em></a> (PLOP), and while it was necessary once to overcome the limitations of small memory and disk size, it no longer has any place in a modern information model. When data can be changed in-place in arbitrary ways, it’s impossible to trust that the data is correct or hasn’t changed under your feet since the last time you accessed it. So, it’s not surprising that two of the enabling technologies of the decentralized web, blockchain and content-addressed storage, both emphasize <em>immutability</em> in their information models.</p><h4>Content-addressed storage</h4><p>While blockchains have far more buzz, I’ll begin by explaining content-addressed storage as it is the simpler and more fundamental concept. The idea is this: for any piece of data — an entity in a database, a file in a filesystem, a blob on a CDN — how do you reference that data? Do you give it an arbitrary ID, a URL, or a name, which can refer to different data at different times, depending on how you ask… or, do you give it a unique ID that will always and forever resolve to a specific value, no matter where it’s served from — locally on your own file system, on a remote server, <em>or from another planet</em>?</p><p>Content-addressed storage networks, such as the Interplanetary File System (IPFS) or the distributed version control system Git, take the latter approach, using IDs that are uniquely computed (using a <a href="https://en.wikipedia.org/wiki/Hash_function">hash function</a>) from the content itself. Because a content ID should always return the same content, which can in turn be used to re-compute the ID, verifying the integrity of data is trivial.</p><p>At this point, you may be asking yourself, if content-addressed storage is immutable, then how can we do anything useful with it? After all, the things in the real world we use data to represent — your bank account balance, your friend list, your todo list— change over time. How can we represent concepts that change over time using immutable data as the core building block? This is where blockchains come in.</p><h4>Blockchains</h4><p>A blockchain, at its core, is an append-only data structure of immutable values — a chain of blocks. While each block is immutable and unchanging, we may mimic mutability by having variables, such as account balances or smart contract state, differ in value from block to block. From this pattern, we get auditability for free, meaning we can see how any variable has changed over time, allowing external processes to directly depend on this data with confidence.</p><p>Blockchains with smart contract capabilities, such as Ethereum, also give us a way to codify how a piece of data can be modified, and by whom, in a way that is secure — a responsibility that has typically been the purview of centralized APIs.</p><p>Both these innovations open up a new paradigm where data stored on blockchains and content addressed networks acts as the interoperability layer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*V3SV2Twtuy63ydwmfUgnHA.png" /><figcaption>Decentralized data as an interoperability layer</figcaption></figure><p>Because blockchains are designed to be decentralized, permissionless, and operate in adversarial environments, there is no need for them to be hidden behind some extra protective layer to be secure and robust. For data living in blockchains or content-addressed storage networks, proprietary APIs are no longer an architectural necessity — processes can interact directly with decentralized data as a shared substrate for interoperability.</p><h3>Querying decentralized data</h3><p>If blockchains are a new type of database primitive, then how will we query that data? Will it be through RESTful APIs, RPC calls, SQL interfaces? The answer will inevitably be all the above, but for decentralized applications that aim to deliver consumer-grade performance built atop blockchain, GraphQL is the natural choice.</p><h4>GraphQL is more efficient than REST or RPC APIs</h4><p>GraphQL is both a query language and interface definition language (IDL) and was invented and open-sourced by Facebook. It was designed to overcome the rigidity and inefficiency of traditional RESTful APIs, which we previously discussed in this post. It does this by exposing a powerful, yet ergonomic, query language directly to consumers of an API.</p><p>With traditional REST (<a href="https://en.wikipedia.org/wiki/Representational_state_transfer">Representational State Transfer</a>) APIs, each entity or resource has a separate endpoint that defines the data you will receive about that entity. For example, to get the name of the organization a user belongs to, you might have to first make a call to:</p><p>/api/v2/users/1</p><p>And then a call to:</p><p>/api/v2/organizations/7</p><p>A real-world application built on traditional APIs might make dozens or hundreds of round-trip network calls. And, this isn’t just a problem for REST. AdChain, a popular decentralized application, builds on the Ethereum RPC API and is forced to make hundreds of round-trip network calls to Infura to load its UI, resulting in a congested network and suboptimal load times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4sVBcCeEshfBuPU-UV5VDw.png" /><figcaption>Hundreds of network calls to Infura made by the AdChain registry, as of this writing: <a href="https://publisher.adchain.com/domains">https://publisher.adchain.com/domains</a></figcaption></figure><p>GraphQL, on the other hand, is powerful enough to express all the data an application requires <em>in a single query</em>. No matter how much data you need, with GraphQL you never need to make more than one network call. This is sometimes referred to as solving the <em>under-fetching</em> <em>problem</em>. Furthermore, you only get exactly the data you asked for and no more, thus addressing the <em>over-fetching problem</em>.</p><p>The result is interfaces, which are far less opinionated on how they are consumed, give you only the data you want, and don’t require constant updating to support new use cases by external developers.</p><h4>GraphQL is better than SQL for decentralized applications</h4><p>But why not use another query language, such as SQL, to query data blockchains as some have called for?</p><h3>👹 Ameen Soleimani on Twitter</h3><p>@OceanLoader4 @Google @wolever What if it was? How much time do we spend as ETH developers finding solutions for not having blockchain chain data queryable with SQL? I would estimate around $20-50M. I&#39;d also estimate it would only take $1-2M in SQL wizards/data engineers per year to solve it.</p><p>To be clear,<em> I think this can and should happen</em>. SQL has wide adoption worldwide, is familiar to <a href="https://blog.jetbrains.com/datagrip/2015/12/23/how-many-sql-developers-is-out-there-a-jetbrains-report/">millions of developers</a>, and is strictly more powerful than GraphQL as a query language. It is particularly familiar to data scientists and data engineers, who may be unfamiliar with GraphQL. That being said, SQL will not be the language preferred by decentralized applications (dApps) building on blockchain.</p><p>There are a few main reasons GraphQL will win over SQL for dApps built on blockchain:</p><ol><li>GraphQL is “powerful enough”</li><li>GraphQL is more ergonomic for front-end developers</li><li>GraphQL was designed to be consumed across organizational trust boundaries</li></ol><p>Let’s dive in.</p><p><strong>1. GraphQL is “powerful enough”</strong></p><p>Even though the GraphQL query language isn’t natively as expressive as SQL, a well-designed GraphQL endpoint can be designed to give you most of the querying capabilities you expect from an SQL query interface. For example, the GraphQL spec doesn’t natively specify a way to do aggregations, but standards such as <a href="https://www.opencrud.org">OpenCRUD</a> have emerged that specify how to expose this functionality.</p><p>There is still some long-tail functionality, such as ad-hoc joins across entities, that will likely always be out of reach for a GraphQL API. However, I estimate that for 99.9% of the use cases needed for front end applications, GraphQL is good enough.</p><p><strong>2. GraphQL is more ergonomic for front-end developers</strong></p><p>For what little you give up in power by choosing GraphQL, you get back in ergonomics. For example, GraphQL has a familiar JSON-like syntax:</p><pre>query {<br>  user(id:1) {<br>    name<br>    organization {<br>      name    <br>    }<br>  }<br>}</pre><p>And, the response of a GraphQL query is a JSON object that <em>exactly mirrors the shape of the request.</em></p><pre>{<br>  &quot;user&quot;: {<br>    &quot;name&quot;: &quot;Vitalik&quot;,<br>    &quot;organization&quot;: {<br>      &quot;name&quot;: &quot;Ethereum Foundation&quot;<br>    }<br>}</pre><p>Given that JSON is the most commonly used data format for transmitting data on the web, this syntax is incredibly approachable for most web developers.</p><p>The equivalent SQL query, meanwhile, would look like:</p><pre>SELECT user.name, organization.name<br>FROM user JOIN organization ON (user.organization_id=organization.id)<br>WHERE user.id=1</pre><p>Not the worst thing to look at, but it’s arguably less straightforward than the GraphQL query.</p><p>And, the response data would be denormalized and tabular, sent in the proprietary wire protocol of the specific SQL database you happen to be using. This is in contrast to the intuitive nesting of the GraphQL response, expressed as plain-text JSON sent over HTTP.</p><p>The GraphQL ecosystem, also has tooling, such as R<a href="https://www.apollographql.com/docs/react/api/react-apollo.html">eact-Apollo</a>, which makes it incredibly simple to integrate data fetched via GraphQL directly into UI components of web applications. Since SQL is almost never consumed via HTTP directly from mobile or web applications, no such tooling exists in the SQL ecosystem that I’m aware of.</p><p><strong>3. GraphQL was designed to be consumed across trust boundaries</strong></p><p>Perhaps more importantly, <em>SQL endpoints were never designed to be consumed across organizational trust boundaries</em>. For example, if we’re using SQL to supply read-only blockchain data, an overly complex SQL query is sufficient to bring your database to a crawl, making it unusable for anyone else.</p><p>GraphQL is also powerful enough to trigger arbitrarily expensive computations on your backend, however, unlike SQL, tackling this problem has been an area of focus from day one, and there is a growing body of <a href="https://users.dcc.uchile.cl/~jperez/papers/www2018_preprint.pdf">research</a> and <a href="https://www.npmjs.com/package/graphql-query-complexity">tooling</a> to enable dynamically blocking expensive queries and throttling clients.</p><p>Meanwhile, the analogous approach to solving this problem in SQL has traditionally been to manually <a href="https://stackify.com/performance-tuning-in-sql-server-find-slow-queries/">find the slow queries</a> and simply rewrite them. Alternately, one might add indexes or change the database schema to lessen the impact of the “approved” expensive queries. That’s the nature of how SQL has always been deployed in organizations, with only a tightly controlled group of people or services able to query an endpoint directly.</p><p>Another place where GraphQL’s cross-organizational DNA shines is in its schema introspection. GraphQL treats schema introspection as a first class concern of the language.</p><p>For example, the Root type in GraphQL has a __schema field that can be used to introspect the types that are available to query:</p><pre>// GraphQL request<br>query {<br>  __schema {<br>    types {<br>      name<br>      description<br>      fields {<br>        name<br>      }<br>    }<br>  }<br>}</pre><pre>// JSON response<br>{<br>  &quot;data&quot;: {<br>    &quot;__schema&quot;: {<br>      &quot;types&quot;: [<br>       { <br>         &quot;name&quot;: &quot;Root&quot;,<br>         &quot;description&quot;: null<br>       },<br>       {<br>          &quot;name&quot;: &quot;User&quot;,<br>          &quot;description&quot;: &quot;A user of the platform.&quot; <br>          &quot;fields&quot;: [<br>            { &quot;name&quot;: &quot;name&quot; },<br>            { &quot;name&quot;: &quot;id&quot; }          <br>          ]<br>        },<br>        {<br>          &quot;name&quot;: &quot;Organization&quot;,<br>          &quot;description&quot;: &quot;An organization of the platform.&quot; <br>          &quot;fields&quot;: [<br>            { &quot;name&quot;: &quot;name&quot; },<br>            { &quot;name&quot;: &quot;id&quot; }          <br>          ]<br>        }    <br>      ]<br>    }  <br>  }<br>}</pre><p>In fairness to SQL, while some introspection queries can look <a href="https://stackoverflow.com/questions/2835102/how-do-i-introspect-on-a-sql-server">truly horrific</a>, a mostly analogous introspection to the above doesn’t look <em>terrible</em> if you’re familiar with the syntax:</p><pre>SELECT c.table_schema,c.table_name,c.column_name,pgd.description<br>FROM pg_catalog.pg_description pgd<br>  RIGHT JOIN information_schema.columns c on<br>    (pgd.objsubid=c.ordinal_position)<br>WHERE c.table_schema NOT IN (&#39;pg_catalog&#39;, &#39;information_schema&#39;);</pre><p>However, this SQL query is full of vendor-specific parameters for a Postgres database. The equivalent query for a MySQL database would be different. Also, while the above query is easy enough to read as plain text, sending that query and receiving a response, requires <em>special tooling — </em>a vendor-specific CLI client or a cross-vendor Desktop GUI, which understands the vendor-specific SQL flavors, <a href="https://www.postgresql.org/docs/9.3/protocol-flow.html">wire protocols</a>, ODBC, or some combination of the above.</p><p>GraphQL, on the other hand, returns plain text JSON over HTTP for all queries, including introspection queries, so that you can kick the tires on an endpoint with Postman, Chrome Dev Tools, or the simple curl command that comes preloaded on every Mac and Linux OS terminal.</p><h3>Conclusion</h3><p>It’s true that many of the shortcomings of REST and SQL that I’ve highlighted are not without remedy. There have been efforts to solve over-fetching and under-fetching problems with RESTful APIs. There have been efforts to add schemas to RESTful APIs, which theoretically could be served from a predefined endpoint. SQL is also just a query language, not an implementation, and so, nothing stops us from building an SQL interface that uses HTTP, returns plain text CSV or JSON over the wire, and has more sensible introspection capabilities. However, efficiently querying for arbitrary data directly, across organizational trust boundaries as blockchain and content-addressed storage networks have now enabled, is simply <em>not in the DNA of either of these two technologies.</em></p><p>GraphQL, meanwhile, was designed from the ground up for this use case. It was designed with front-end engineers in mind with <a href="https://graphql.github.io/swapi-graphql/">user-friendly GUIs for advanced introspection</a> and mature tooling that makes it nearly seamless to declaratively bind GraphQL queries to UI components in the browser. In a paradigm where dApps primarily consist of browser apps interfacing with smart contracts running on a blockchain, the needs and preferences of front-end engineers will be a driving force in determining the technology stack of the decentralized web. It’s why we’re already seeing <a href="https://github.com/ConsenSys/ethql">multiple</a> <a href="https://medium.com/dsys/ethereum-meet-graphql-c28f3402fe8f">efforts</a> to put a GraphQL interface in front of Ethereum’s JSON RPC API.</p><p>At The Graph, we believe that building rich user experiences with consumer-grade performance, on top of blockchains, is one of the primary hurdles to achieve widespread adoption of blockchain and the decentralized web. It’s why last July <a href="https://medium.com/graphprotocol/the-graph-is-now-open-source-bab53cda6de3">we open-sourced</a> <a href="https://github.com/graphprotocol/graph-node">an indexing server</a> that allows developers to efficiently query Ethereum and IPFS data for their decentralized applications via a GraphQL interface. In the future, as analytics pipelines for data science and machine learning on blockchain become a more common use case, we will look at supporting SQL and, perhaps, other query languages as well… Datalog, anyone?</p><p>If you’re building something cool on blockchain, I would love to hear about it, and how you’re fetching data, in the comments. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7443a69c69a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/graphprotocol/graphql-will-power-the-decentralized-web-d7443a69c69a">GraphQL Will Power the Decentralized Web</a> was originally published in <a href="https://medium.com/graphprotocol">The Graph</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Graph’s Research and Specifications are Now Open Source]]></title>
            <link>https://medium.com/graphprotocol/the-graphs-research-and-specifications-are-now-open-source-4e9edb279790?source=rss-76484371ee41------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e9edb279790</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[protocol]]></category>
            <category><![CDATA[query]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Brandon Ramirez]]></dc:creator>
            <pubDate>Wed, 13 Feb 2019 21:08:22 GMT</pubDate>
            <atom:updated>2019-02-13T21:34:32.804Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Graph’s Research and Specifications Are Now Open Source</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VgiIXxV9743AIvCnPP0kPQ.png" /></figure><p>The Graph Protocol team hosted an event last month, Graph Day, which marked a number of exciting milestones for our project. Yaniv, our project lead, took the stage to launch our hosted service and Graph Explorer. Jannis, our tech lead, demonstrated just how easy it is to start building on The Graph, using a combination of our CLI, Subgraph APIs, and the Graph Explorer UI. Read Yaniv’s write-up on these announcements <a href="https://medium.com/graphprotocol/announcing-graph-explorer-a39318ffb569">here</a>.</p><p>Shortly after the event, Multicoin Capital announced <a href="https://multicoin.capital/2019/01/28/our-investment-in-the-graph/">their investment thesis on The Graph</a>, and why they led our seed round last year.</p><p>As research lead, I also took the stage to present ongoing progress on our decentralized protocol design. In that talk, I announced our <a href="https://github.com/graphprotocol/research/tree/master/specs/graph-protocol-v1">hybrid network specification</a>, which is now<strong> open-source on Github under an MIT License!</strong> ☄</p><p>It’s in a draft state, and we eagerly await comments and constructive feedback from our community. By working together, we can identify the mechanisms and interfaces which will best serve decentralized applications and our growing community of developers.</p><p>First, I want to share highlights of what I presented at Graph Day, what is covered in the hybrid network spec. Then, I explain what the community can expect from our research efforts in the future.</p><h3>What was presented</h3><p>My hour-long research talk was divided into three parts. The first two were foundational concepts for understanding what we are building:</p><ul><li>Trust-minimized services (<a href="https://youtu.be/j2rXJLW_93o?t=93">1:33</a>)</li><li>Work token economics (<a href="https://youtu.be/j2rXJLW_93o?t=948">15:48</a>)</li></ul><p>In the last section (<a href="https://youtu.be/j2rXJLW_93o?t=1593">26:33</a>), I applied these concepts to present our specific protocol design — a decentralized query layer for Web3.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fj2rXJLW_93o%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dj2rXJLW_93o&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fj2rXJLW_93o%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/13e0950a847131c8cd2d01067969d438/href">https://medium.com/media/13e0950a847131c8cd2d01067969d438/href</a></iframe><p>See the full talk <a href="https://www.youtube.com/watch?v=j2rXJLW_93o">here</a>, or just take a look at <a href="https://www.slideshare.net/secret/iNtK1lI2IETZOG">the slides</a> (Carl and Lucas, our designers, did a beautiful job!).</p><h3>What was announced</h3><p>At the end of the talk, I announced that we open-sourced our <a href="https://github.com/graphprotocol/research">research repository</a> on Github, containing our <a href="https://github.com/graphprotocol/research/tree/master/specs/graph-protocol-v1">hybrid network specification.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lihhNpQaehcsxkZIMdxQYQ.png" /><figcaption><a href="https://www.slideshare.net/secret/iNtK1lI2IETZOG/103">https://www.slideshare.net/secret/iNtK1lI2IETZOG/103</a></figcaption></figure><p>When we <a href="https://medium.com/graphprotocol/introducing-the-graph-4a281b28203e">introduced our project</a> in July 2018, Yaniv mentioned that we would launch a local node, a hosted service, and then a fully decentralized network… so, what is the hybrid network?</p><p>The hybrid network is a version of our protocol design that bridges the gap between our hosted service, which is mostly centralized, and our fully decentralized protocol.</p><p>In its current form, it plays the role of a straw-man proposal, allowing us to begin prototyping and evaluating many of the mechanisms, economics, and architectural decisions of the protocol. It also lets us incorporate feedback from the community into our ongoing research.</p><p>Importantly, several design choices in the protocol have been deferred, opting instead for centralized components which may be swapped out for decentralized alternatives in the future. Things such as dispute resolution, governance, name registration, just to name a few.</p><p>This gives us more time to evaluate various libraries, mechanisms, and primitives more thoroughly. Many of these are still nascent and have only recently reached a level of maturity where they may be assessed empirically, while others are not even to that point. Using this hybrid approach means that we remain agile and flexible.</p><p>That being said, the hybrid network is a huge step toward <em>full decentralization</em> — it defines the interfaces and mechanisms, allowing anyone running an Indexing Node to participate in the network by indexing subgraphs and responding to queries, in exchange for fees.</p><p>Also in the repo is the original white paper that we used, alongside a working demo, to raise funding at the beginning of last year. We no longer consider it a source of truth for our protocol design, but it’s a fun look into our early vision for The Graph and to see how our research and protocol design has evolved since then!</p><h3>What to expect in the future</h3><p>Our philosophy at The Graph has been to solve real problems for our users (dApp developers) as quickly as possible and decentralize over time, while keeping the quality bar high. For us, that means that dApps leveraging The Graph to build on Ethereum and IPFS should always be able to offer consumer-grade performance to their users, which we think is essential to accelerating adoption of the decentralized web.</p><p>We believe that for layer 1 protocols, it makes perfect sense to decentralize from day one and pursue performance and scalability improvements in a conservative manner over time, as Ethereum has done. For layer 2, however, we believe there’s a tactical opportunity in taking an opposite, and complementary, approach.</p><p>That being said, we know that many of our users are only building on us because they believe in our path to decentralization and that this engenders a level trust from our users — <em>a responsibility which we do not take lightly.</em></p><p>To continue our path to decentralization, we have parallel research and product engineering teams. The research team focuses on our long-term decentralized protocol design, while the engineering team executes against shorter term product milestones, such a launching the open-source Graph Node and the hosted service. We gave equal time to product and research at Graph Day because we want our users to know not only what we are developing day-to-day but to understand where we are headed in the long term.</p><p>To affirm our commitment to openness, <a href="https://medium.com/graphprotocol/the-graph-is-now-open-source-bab53cda6de3">the first thing we shipped last year</a> was a fully open-source implementation of an Indexing and Query Node for Ethereum and IPFS. And, it’s why we feel that releasing a 50+ page specification is as exciting of a milestone to highlight as shipping a product 😀.</p><p>So in this upcoming year, we will continue to build on this research momentum and our commitment to full decentralization. We’ll create a proof of concept of the hybrid network and incorporate learnings from this effort back into the specification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mdbohpv97Pu9sLD5GH0oGw.png" /><figcaption><a href="https://www.slideshare.net/secret/iNtK1lI2IETZOG/105">https://www.slideshare.net/secret/iNtK1lI2IETZOG/105</a></figcaption></figure><p>In parallel, we’ll continue our research effort on the fully decentralized protocol. I presented the above slide at Graph Day with just a handful of the areas of research that we’ll be focused on. I have to say that we’re really excited about what’s coming up next.</p><p>And of course, our engineering team will be adding needed functionality to the open-source <a href="https://github.com/graphprotocol/graph-node">Graph Node</a>, and also supporting and adding to the hosted service and Graph Explorer.</p><h3>Closing thoughts</h3><p>Finally, now that we’ve shipped, we are looking to grow our research investment this year with additional resources. Our current research headcount is 2.5: myself, Jackson, who is entirely focused on zero-knowledge cryptographic proof systems, and Dave, who is splitting his time between engineering and research on consensus protocols. And we’re looking to grow the team.</p><p>If you’re an expert in distributed systems, database architecture, programming languages, formal verification, or computational economics, we want to talk to you!</p><p>Also, the above disciplines are not a comprehensive list. I’ll continue adding issues to our research Github, which describe future focus areas for research, so feel free to engage there or in #research on our Discord if you think you have contributions to make. Questions and feedback on our draft specifications are also highly encouraged.</p><p>Moving forward, we will have as many of our research conversations and discussions in the open as possible, both to give users confidence in our commitment to full decentralization, and to solicit the best ideas from the members of our community. I look forward to having you join us!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e9edb279790" width="1" height="1" alt=""><hr><p><a href="https://medium.com/graphprotocol/the-graphs-research-and-specifications-are-now-open-source-4e9edb279790">The Graph’s Research and Specifications are Now Open Source</a> was originally published in <a href="https://medium.com/graphprotocol">The Graph</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>