<?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 Madhuvanthi V on Medium]]></title>
        <description><![CDATA[Stories by Madhuvanthi V on Medium]]></description>
        <link>https://medium.com/@madhuvanthi_v?source=rss-f16394ecdb70------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8GcAFcM_8eYYd6w9VWV0uQ.jpeg</url>
            <title>Stories by Madhuvanthi V on Medium</title>
            <link>https://medium.com/@madhuvanthi_v?source=rss-f16394ecdb70------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:00:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@madhuvanthi_v/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[WXS 1: Caching and Distributed Caching]]></title>
            <link>https://medium.com/@madhuvanthi_v/wxs-1-caching-and-distributed-caching-5c34653139c2?source=rss-f16394ecdb70------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c34653139c2</guid>
            <category><![CDATA[websphere]]></category>
            <category><![CDATA[distributed-cache]]></category>
            <category><![CDATA[cache]]></category>
            <dc:creator><![CDATA[Madhuvanthi V]]></dc:creator>
            <pubDate>Mon, 08 Apr 2024 08:21:54 GMT</pubDate>
            <atom:updated>2024-04-08T08:21:54.126Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is co-authored by <strong>Harshitha Akula</strong>.</p><p>Hello !! <br>My team and I are planning to write a series of blogs on the IBM Websphere eXtreme Scale (WXS)<strong>,</strong> an In-Memory Data Grid. This is the first in the series and explains the basic concepts which we need to be aware of before understanding the eXtreme Scale. Let’s get started.</p><h3><strong><em>Websphere eXtreme Scale Computing:</em></strong></h3><p>Large-scale enterprises require powerful computing to handle enormous amounts of requests and data. This is where Websphere eXtreme Scale comes into play. It performs massive volumes of transactions with high efficiency and linear scalability, all the while being highly available.</p><h3>So, what is Scalability?</h3><p>Scalability is about <em>if the system is able to handle the increasing load gracefully</em>. For example, we might have experienced websites crashing during the exam results time, when a large number of people try to access it to check the results at the same time. This is where scalability proves essential, in making the system cater to increasing demands at any point.</p><h3>Now, how to scale a system?</h3><p>There are 2 ways in which systems are scaled — horizontal scaling and vertical scaling. <em>Horizontal scaling or scale-out involves adding additional system resources </em>(for example, adding extra number of servers or computers). <em>Vertical scaling or scale-up involves increasing the capacity of a system resource</em> (eg. increasing the size of a resource or memory).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*abMsJe4qIKLp-xIOeknK4g.png" /></figure><p>But at a certain point, a resource reaches its maximum throughput after being fully utilized, and this point is called the <em>saturation point</em>, and that resource is called <em>bottleneck resource</em>. In most cases, a database becomes a bottleneck resource due to various financial, physical, or practical reasons limiting it to further scale it. Hence, in most cases, when the demand increases, the database (bottleneck resource) reaches its saturation point, making it unable to cater to further increasing requests, and thus the website crashes.</p><h3>What is Caching?</h3><p>We can see that, the database has become the bottleneck resource because of the increased number of requests it received. Hence, one approach would be to reduce the number of requests targeted towards the database and this is where caching comes into the picture. It is a widely used methodology, especially in the IT such as at the web server tier, application server tier, within a web browser, in the database, etc. <em>Caching involves storing a copy of the frequently accessed data, which is the cache, in a relatively nearby location.</em></p><p>To understand it simpler terms, consider a scenario where you are watching a YouTube tutorial and subsequently taking notes of it. These notes wherein you note down the important and necessary points can be considered as a cache, of the long YouTube tutorial, which you have created for easy &amp; faster access in the future. Any caching mechanism intends to reduce response time by reducing access time to data and to increase scalability by reducing the number of requests made to a bottleneck resource, thus helping with the performance of a system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oY0jL6lKNPA4x-nFQDVMLg.png" /></figure><h3>What are the challenges in storing cache locally?</h3><p>Cache can be stored in many ways. One such way is to store it locally in the system.</p><ul><li>A local cache is not scalable because of the restricted JVM size.</li><li>As the local cache is neither highly available nor fault-tolerant, if any JVM crash happens, the application state is lost.</li><li>Consider a situation where there is a high local cache memory requirement. As the JVM heap size increases, there will be more frequent garbage collection cycles. This may hinder application performance due to an increase in CPU resource utilization.</li></ul><p>It is due to some challenges like these that we need a caching mechanism which can overcome most of these setbacks, namely, distributed caching.</p><h3>What is Distributed Caching?</h3><p>As the name suggests, it means that the cache is distributed across various servers or machines. Consider an e-commerce website which uses a local cache. As we know, the local cache stores product details on the server where the website is hosted. During a festive season, the website would receive increased number of requests per second. This may lead to bottle neck situations. A single local cache might not be able to handle the situation well. If the website is accessed from different regions, there may be high chances of high latency. Distributed caching can prevent this as it <em>stores product details across multiple cache servers located in different regions.</em> When a user accesses the website, the system retrieves product details from the nearest cache server, ensuring a better user experience. It gives high scalability, since when the demand increases (eg. during the festive season), we can increase the number of servers in distributed caching to serve the increased number of requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u8Jd4cBFM8yxMoRofUK2Ew.png" /></figure><h3>What can we achieve using distributed caching?</h3><ul><li><strong>Scalability</strong> — As application traffic increases, additional servers or nodes can be added to handle the extra load, ensuring consistent performance and catering to growing user bases or data volumes.</li><li><strong>Availability</strong> — Distributed caching systems ensure high availability. By replicating cached data across multiple nodes, it ensures that no data is lost and distributed caches can continue to serve data even if some nodes or servers fail, minimizing the risk of service disruptions.</li><li><strong>Low latency</strong> — As the data is near to the user, the response time is faster without delay.</li></ul><h3>In Memory Data Grid (IMDG)</h3><p>Before directly going into the concept of IMDG, let’s first understand more about grids and data grids. <em>Grid in general is a form of loosely coupled and heterogeneous computers that coordinate together to run large tasks</em>. On the other hand, <em>Data grid focuses on the provisioning and accessing of data in a grid manner, that is, using a large number of loosely coupled cooperative caches to store data</em>. Basically, <em>In Memory data grid (IMDG) is a group of loosely coupled heterogeneous computers that couples their computer’s main memory (RAM) for distributed caching.</em> Websphere eXtreme Scale is a use-case of IMDG. We shall discuss more on IMDGs in the upcoming blogs.</p><p>In this blog, we have covered what eXtreme Scale computing is and how we can achieve scalability. We have also covered the basic concepts of caching, local &amp; distributed cache, and how distributed cache is better than local cache and finally, In Memory Data Grid (IMDG). This is our debut attempt at writing blogs, and we highly appreciate any feedback. In our next blog, we shall discuss more on the concepts of eXtreme Scale, which is one of the use cases of IMDG. Thank you, and see you in the next blog :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c34653139c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>