<?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 Qeraunos Team on Medium]]></title>
        <description><![CDATA[Stories by Qeraunos Team on Medium]]></description>
        <link>https://medium.com/@qeraunos?source=rss-dbcbb810e7f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OmQrTs_FsdXeHA63qhZM9A.png</url>
            <title>Stories by Qeraunos Team on Medium</title>
            <link>https://medium.com/@qeraunos?source=rss-dbcbb810e7f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:50:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@qeraunos/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[Want to start a GraphQL project with ludicrously low response times?]]></title>
            <link>https://medium.com/@qeraunos/want-to-start-a-graphql-project-with-ludicrously-low-response-times-70f5e773a41d?source=rss-dbcbb810e7f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/70f5e773a41d</guid>
            <category><![CDATA[localforage]]></category>
            <category><![CDATA[caching]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Qeraunos Team]]></dc:creator>
            <pubDate>Thu, 26 Jan 2023 15:52:41 GMT</pubDate>
            <atom:updated>2023-01-26T15:52:41.184Z</atom:updated>
            <content:encoded><![CDATA[<p>By Amrit Ramos, Arthur Huynh, Dennis Cheung, Jason Hwang</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*ytXMdEGrfra50iyu" /><figcaption>Photo by <a href="https://unsplash.com/@shlomo99">Shlomo Shalev</a> from <a href="http://unsplash.com/">unsplash.com</a></figcaption></figure><p>I’m sure you have heard of GraphQL, the preeminent alternative to REST APIs since its release to the public in 2015. Currently, it has over 9 million weekly downloads, and it’s not stopping anytime soon. GraphQL API’s ability to give the client-side control over what it queries blows REST APIs out of the water. It may take REST APIs dozens if not hundreds of requests for the server to grab the contents that a graphQL API can do in just one request. There is no need to worry about under or over fetching content as GraphQL schemas guarantee you will get the exact you request from it.</p><h3>Is GraphQL too good to be true?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FBRwrJMkbdqGGZVb439%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FBRwrJMkbdqGGZVb439%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FBRwrJMkbdqGGZVb439%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/13e8863899fe1d12a3ec83b0265dc518/href">https://medium.com/media/13e8863899fe1d12a3ec83b0265dc518/href</a></iframe><p>There is a large downside to GraphQL. Since any request done to the server through GraphQL is done through one endpoint, the standard way of caching a HTTP request will not work. REST APIs have been around for decades, and its caching methods have become a standard practice. GraphQL is innovative in its querying methods, and with innovation comes downsides. This is the path not taken, and like any untrodden path, it will have its bumps.</p><p>Caching is not native to GraphQL, but there are 3rd parties out there that seek to address the problem. Apollo is a popular graphQL tool that includes caching among other things, but it may not be the best way to start with such a heavy package with functionality you may not need (over fetching am I right?). Tim Perry explains in his article, “<a href="https://httptoolkit.com/blog/simple-graphql-server-without-apollo/">GraphQL the Simple Way, or: Don’t Use Apollo</a>” on Http Toolkit, that though Apollo may be good for some users, it shouldn’t really be someone’s entry into graphQL.</p><p>We introduce to you Qeraunos, a blazingly fast, lightweight GraphQL caching algorithm! Implementing Qeraunos will enhance your understanding of the fundamentals of graphQL while providing a solution to one of the largest setbacks to GraphQL’s rise to the Software Engineer’s Hall of Fame, caching.</p><p>So, do you want to start a graphQL project or want to improve previous graphQL apps, and implement caching in a straightforward and easy way? Then look no further than Qeraunos for all of your GraphQL caching needs. Qeraunos offers two ways to cache GraphQL queries, caching through the client side or server side. The best part? You can choose which one is right for your project!</p><h3><strong>How it Works</strong></h3><p>Qeraunos can be implemented on both the client side and server side, utilizing our custom caching algorithm to effectively store GraphQL queries. Our algorithm uses a mixture of LFU and LRU eviction policies to keep the queries you use the most, while evicting the least frequently and recently used for a robust and effective eviction policy. On the client side, we employed LocalForage to provide faster and larger storage capacity alongside our algorithm to bring query speeds down to under 1ms, an average decrease of around 99.8%. In fact, it’s so fast, we thought it was an error when we saw a response time of 0ms. However, at this time, client side caching does not support mutations.</p><p>Qeraunos utilizes the same efficient technology on the server side with our own custom cache. Response times are just a bit slower than the client side of course, but are still blazing fast with an average of 10ms, for an average decrease in response times of around 98%. It has the additional capability to cache mutations as well. With each mutation you make, every associated item in the cache will be updated with the new values from the mutation. Our custom key generator uses GraphQL’s AST to parse through queries and join together data in a meaningful way that allows for advanced queries such as mutations.</p><p>Additionally, since Redis is a popular database to use for caching, we integrated full Redis compatibility in Qeraunos on the server side. However, if you do choose to use Redis to cache your GraphQL queries, please take note that it’s not nearly as fast as ours since it clocks in at approximately 20ms, for an average decrease of around 96%. It does have the benefit of a larger storage space solution if you need to scale though.</p><h3>Getting Started</h3><p>With all that said, here are the instructions for how to use both. You can head over to our <a href="http://qeraunos.com/">website</a>, <a href="https://github.com/oslabs-beta/Qeraunos">Github</a>, or NPM (<a href="https://www.npmjs.com/package/@qeraunos/server">server-side</a>, <a href="https://www.npmjs.com/package/@qeraunos/client">client-side</a>) to see all the instructions on how to implement Qeraunos and start caching your graphQL queries today!</p><h4><strong>Features</strong></h4><ul><li>Client side caching abilities harnessing the power of IndexedDB through localForage</li><li>Server side caching abilities with our custom cache, or with the option to add Redis to extend your server side caching capacity</li><li>Caching mutations on server side</li><li>Efficient design with O(1) insertion, deletion, and lookup</li></ul><h3><strong>Contact</strong></h3><p>Visit our <a href="https://qeraunos.com/">website</a> or contact the team with the links below.</p><h4><strong>How to Show Support for Qeraunos</strong></h4><ul><li>Follow us on <a href="https://www.linkedin.com/company/qeraunos/">LinkedIn</a></li><li>Star our repo on <a href="https://github.com/oslabs-beta/Qeraunos">Github</a>!</li><li>Give us claps on this article!</li><li>Tweet about the project on your Twitter.</li><li>Write a review or tutorial on Medium, <a href="http://dev.to/">Dev.to</a> or personal blog.</li></ul><h4><strong>Team members</strong></h4><ul><li>Amrit Ramos | <a href="https://github.com/amritvela">Github</a> | <a href="https://www.linkedin.com/in/amrit-ramos-2103a879/">LinkedIn</a></li><li>Arthur Huynh | <a href="https://github.com/arthurynh">Github</a> | <a href="https://www.linkedin.com/in/arthurnhuynh/">LinkedIn</a></li><li>Dennis Cheung | <a href="https://github.com/Dennis-JS">Github</a> | <a href="https://www.linkedin.com/in/denniskhcheung/">LinkedIn</a></li><li>Jason Hwang | <a href="https://github.com/hwangja1019">Github</a> | <a href="https://www.linkedin.com/in/jason-jh-hwang/">LinkedIn</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70f5e773a41d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>