<?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 Ahmed Chami on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Chami on Medium]]></description>
        <link>https://medium.com/@achami8799?source=rss-bf39097cfdd3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*s1l170FilDtMX5AW</url>
            <title>Stories by Ahmed Chami on Medium</title>
            <link>https://medium.com/@achami8799?source=rss-bf39097cfdd3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:53:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@achami8799/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[MagniCache: A caching solution for GraphQL]]></title>
            <link>https://medium.com/@achami8799/magnicache-a-caching-solution-for-graphql-a0a9de353a42?source=rss-bf39097cfdd3------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0a9de353a42</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[caching]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Ahmed Chami]]></dc:creator>
            <pubDate>Thu, 16 Mar 2023 16:14:45 GMT</pubDate>
            <atom:updated>2023-03-16T16:15:44.282Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing MagniCache: An open source GraphQL caching program</h3><p>If you’ve ever worked with GraphQL, you’re probably familiar with the challenges of caching queries. Caching is an essential technique used for improving performance and reducing server load, but it can be tricky to implement in a GraphQL environment.</p><p>That is where MagniCache comes in. MagniCache is an open source program designed to simplify the process of caching GraphQL queries and mutations, by providing a robust and flexible caching layer that can handle a wide range of queries and data types. Now, at its core, MagniCache does exactly what it sounds like: it magnifies caching in GraphQL. It works by intercepting queries and mutations, and caching the relevant data to be returned in future requests. This helps to reduce the number of requests to your GraphQL server, and can significantly improve performance for your users.</p><h3>How does MagniCache work?</h3><p>In short, MagniCache works by caching the results from the query or mutation string as a value, with its corresponding key being the query string. GraphQL typically sends responses within the 300–800ms range from our findings. With MagniCache, however, we have seen response times range from 30ms(server-side) all the way down to 0.4ms(client-side). One thing to note about our program is that if you have a query with 5 cached results, and add another query string to raise it to 6, the whole query will return uncached. This will show a typically low response time, but at this point is where we would cache this new query, in hopes of retrieving excellent response times as was stated earlier. Below is a graph that has a range from over 500ms down to 1.5 ms, an increase of over 99.6%!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eRFhZ-3Yz6uuOe2o" /></figure><h3>Why use MagniCache?</h3><p>With MagniCache, you can significantly improve the performance of your GraphQL queries and mutations by caching frequently requested data. The reduction in server load will also help to provide a much better user experience, especially for high traffic applications. MagniCache is connected to your schema to work for caching and caches queries that have not yet been sent by the server or client. While our eviction policy is static, the client has the ability to provide a max size to the cache(nodes in a LinkedList) for either server or client side caching.Additionally, if needed, MagniCache can provide a simple, yet contemporary visualizer for clients to easily view their cache/response metrics in their browser.</p><h3>How to use MagniCache</h3><p>To use MagniCache, it is as simple as any other package you’ve ever installed. Simply install MagniCache(Server/Client) from NPM. After it has been installed, MagniCache will need to be imported from either the server or client instance, depending on what you have installed and what your needs are.</p><h3>Conclusion</h3><p>MagniCache is an essential tool for improving the performance of your GraphQL queries and mutations. By providing a robust and flexible caching layer, MagniCache simplifies the process of caching, making it easy to handle a wide range of different queries and mutations. With this, you can significantly improve/reduce the number of requests that are sent to your GraphQL server, resulting in a much better user experience, particularly for high-traffic applications. MagniCache is connected to your schema to work for caching and automatically caches queries that have not yet been sent by the server or the client. Additionally, if needed , MagniCache offers a contemporary visualizer for clients to easily view their cache and response metrics.</p><h3>Additional Resources</h3><p>We would greatly appreciate your support for MagniCache! Follow us on LinkedIn to stay updated on the latest news and updates. If you find our project useful, please consider giving our Github repository a star. Clap for this article to help spread the word about MagniCache. If you use Twitter, consider tweeting about our project to help us reach a wider audience. Finally, we would love to hear your thoughts on our project! Consider writing a review or tutorial on Medium, Dev.to, or your personal blog to share your experience with others. Thank you for your support!</p><p><a href="https://www.linkedin.com/company/magnicache/about/">LinkedIn</a></p><p><a href="https://github.com/oslabs-beta/MagniCache/tree/main">Github</a></p><h3>Our Team</h3><p>Yousuf Elkhoga: <a href="https://github.com/yousuf-e">Github</a> <a href="https://www.linkedin.com/in/yousufelkhoga/">LinkedIn</a></p><p>Truman Miller: <a href="https://github.com/trumanmiller">Github</a> <a href="https://www.linkedin.com/in/truman-miller/">LinkedIn</a></p><p>Aria Soltankhah: <a href="https://github.com/ariasoltank">Github</a> <a href="https://www.linkedin.com/in/ariasol/">LinkedIn</a></p><p>Ahmed Chami: <a href="https://github.com/Achami64">Github</a> <a href="https://www.linkedin.com/in/ahmed-chami-dev/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0a9de353a42" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>