<?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 Chaitanya.V on Medium]]></title>
        <description><![CDATA[Stories by Chaitanya.V on Medium]]></description>
        <link>https://medium.com/@chaitanyav09?source=rss-05ba5d3c2185------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5Eq1JiQMtrSp_OpGRYNxVg.jpeg</url>
            <title>Stories by Chaitanya.V on Medium</title>
            <link>https://medium.com/@chaitanyav09?source=rss-05ba5d3c2185------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:24:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chaitanyav09/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[Sliding Window Explained for Beginners: Stop Calculating the Same Things Again]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://code.likeagirl.io/sliding-window-explained-for-beginners-stop-calculating-the-same-things-again-e8a0b7d2a620?source=rss-05ba5d3c2185------2"><img src="https://cdn-images-1.medium.com/max/1589/1*OtofTWObu4qlfsTfnk4cnQ.png" width="1589"></a></p><p class="medium-feed-snippet">Imagine you are going through your expenses at the end of the week and want to know which three consecutive days you spent the most money&#x2026;</p><p class="medium-feed-link"><a href="https://code.likeagirl.io/sliding-window-explained-for-beginners-stop-calculating-the-same-things-again-e8a0b7d2a620?source=rss-05ba5d3c2185------2">Continue reading on Code Like A Girl »</a></p></div>]]></description>
            <link>https://code.likeagirl.io/sliding-window-explained-for-beginners-stop-calculating-the-same-things-again-e8a0b7d2a620?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8a0b7d2a620</guid>
            <category><![CDATA[sliding-window-algorithm]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[sad]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 18:03:45 GMT</pubDate>
            <atom:updated>2026-11-05T18:03:45.290Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Two Pointer Technique Explained for Beginners]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://code.likeagirl.io/two-pointer-technique-explained-for-beginners-35ee63a72ca0?source=rss-05ba5d3c2185------2"><img src="https://cdn-images-1.medium.com/max/1254/1*Y9l_-hW2MYDmH1basywaDw.png" width="1254"></a></p><p class="medium-feed-snippet">Imagine you are at a busy railway station, and you are searching for your friend. You decide that you will start looking from one end of.</p><p class="medium-feed-link"><a href="https://code.likeagirl.io/two-pointer-technique-explained-for-beginners-35ee63a72ca0?source=rss-05ba5d3c2185------2">Continue reading on Code Like A Girl »</a></p></div>]]></description>
            <link>https://code.likeagirl.io/two-pointer-technique-explained-for-beginners-35ee63a72ca0?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/35ee63a72ca0</guid>
            <category><![CDATA[dsa-courses]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[two-pointers]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Sat, 29 Aug 2026 07:36:01 GMT</pubDate>
            <atom:updated>2026-08-31T06:15:47.513Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Arrays: From Classroom Attendance to Algorithms]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://code.likeagirl.io/arrays-from-classroom-attendance-to-algorithms-12ba7e71f73a?source=rss-05ba5d3c2185------2"><img src="https://cdn-images-1.medium.com/max/784/1*HYtv_hsJEHtYILyYmJJC8Q.png" width="784"></a></p><p class="medium-feed-snippet">Think about a classroom during attendance.</p><p class="medium-feed-link"><a href="https://code.likeagirl.io/arrays-from-classroom-attendance-to-algorithms-12ba7e71f73a?source=rss-05ba5d3c2185------2">Continue reading on Code Like A Girl »</a></p></div>]]></description>
            <link>https://code.likeagirl.io/arrays-from-classroom-attendance-to-algorithms-12ba7e71f73a?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/12ba7e71f73a</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[dsa-courses]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[dsa-training]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 07:21:01 GMT</pubDate>
            <atom:updated>2026-08-14T07:21:01.495Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Before We Compare Solutions, We Need a Way to Measure Them]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Imagine two developers solving the same problem.</p><p class="medium-feed-link"><a href="https://code.likeagirl.io/episode-1-time-space-complexity-93536b730cd8?source=rss-05ba5d3c2185------2">Continue reading on Code Like A Girl »</a></p></div>]]></description>
            <link>https://code.likeagirl.io/episode-1-time-space-complexity-93536b730cd8?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/93536b730cd8</guid>
            <category><![CDATA[space-complexity]]></category>
            <category><![CDATA[dsa-problem]]></category>
            <category><![CDATA[time-complexity]]></category>
            <category><![CDATA[time-and-space-complexity]]></category>
            <category><![CDATA[dsa-courses]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 00:55:03 GMT</pubDate>
            <atom:updated>2026-07-30T05:54:01.991Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Before You Write a Single Line of Code, Let’s Talk About DSA]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://code.likeagirl.io/episode-0-introduction-to-dsa-ccc3efe459ef?source=rss-05ba5d3c2185------2"><img src="https://cdn-images-1.medium.com/max/1402/1*AfmjB_nRwD8SayP7gPoOWQ.png" width="1402"></a></p><p class="medium-feed-snippet">How does Google search manage to locate a particular web page among billions of other pages within seconds?</p><p class="medium-feed-link"><a href="https://code.likeagirl.io/episode-0-introduction-to-dsa-ccc3efe459ef?source=rss-05ba5d3c2185------2">Continue reading on Code Like A Girl »</a></p></div>]]></description>
            <link>https://code.likeagirl.io/episode-0-introduction-to-dsa-ccc3efe459ef?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccc3efe459ef</guid>
            <category><![CDATA[data-structures-algorithm]]></category>
            <category><![CDATA[dsa-training]]></category>
            <category><![CDATA[dsa-courses]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 01:06:02 GMT</pubDate>
            <atom:updated>2026-08-10T07:02:06.744Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Stop Building the Same Integration Twice — MCP Server Is Here to Save You]]></title>
            <link>https://code.likeagirl.io/stop-building-the-same-integration-twice-mcp-server-is-here-to-save-you-4a36c4271434?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a36c4271434</guid>
            <category><![CDATA[knowledge]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Thu, 23 Apr 2026 16:31:02 GMT</pubDate>
            <atom:updated>2026-04-23T16:31:02.957Z</atom:updated>
            <content:encoded><![CDATA[<p>Let me paint a picture that probably sounds familiar.</p><p>You’re building an AI-powered feature. Your product manager says, <em>“Hey, can the AI pull data from our database and give users smart insights?”</em> Sounds cool. So you get to work, you write a custom tool, wire up the database connection, handle authentication, format the data, and finally get the AI model talking to your DB. Took a few days, but hey, it works!</p><p>You feel good. You ship it.</p><p>Then, a week later, the same product manager walks in again. <em>“Can we also connect the AI to our CRM? And maybe our file storage too?”</em></p><p>And that’s when it hits you. You’re about to do the exact same thing all over again.</p><p>Write another custom tool. Handle another connection. Format another data source. Test it all again. And then do it a third time for the file storage. And a fourth time for the next thing that comes up.</p><p>This isn’t just exciting. It’s bad engineering. You’re duplicating logic, creating maintenance nightmares, and spending most of your time on boilerplate and infrastructure instead of the actual product. Every new data source becomes its own mini project. Your codebase gradually turns into a set of isolated integrations loosely connected to each other.</p><p>What if there were a standardized way to connect all these systems? That’s exactly what MCP servers provide.</p><h3>MCP Server</h3><p>MCP stands for <strong>Model Context Protocol</strong>. It’s an open standard, originally introduced by Anthropic, which acts as a universal bridge between AI models and the outside world.</p><p>Think of it like a USB-C port, but for AI integrations.</p><p>Before USB-C, every device had its own charging cable. Your phone had one, your laptop had another, your camera had something different. It was chaos. Then USB-C came along and said, <em>“What if everything just used one standard port?”</em></p><p>MCP does exactly that for AI and data sources.</p><p>Instead of building a custom integration every single time you want AI to talk to something new, you build it once using the MCP standard and then anything that speaks MCP can connect to it. Your database, your CRM, your file system, your APIs, they all become available to your AI model through one consistent protocol.</p><h3>How Does It Actually Work?</h3><p>MCP has two components:</p><p><strong>MCP Servers</strong> expose your tools and data. You create an MCP server for your database, and it exposes specific capabilities like “fetch user records” or “query sales data.” The server defines what can be done, and handles all the actual logic.</p><p><strong>MCP Clients</strong> are the AI models or applications that consume those capabilities. When an AI needs data, it reaches out to the MCP server, asks for what it needs, and gets a structured response back.</p><p>The magic is in the standardization. The AI doesn’t need to know <em>how</em> your database works. It just knows that this MCP server has certain tools available, and it can call them. Your database doesn’t need to understand AI either — it just responds to requests through the MCP layer.</p><p>It’s a clean separation of concerns, and it scales beautifully.</p><h3>Why This Changes Everything</h3><p>Here’s the real benefit: once your database exposes an MCP server, connecting a different AI model to it requires almost no additional work. You build the integration once, and it becomes reusable everywhere.</p><p>Your team no longer has to reinvent the wheel for every new AI feature. New developers can plug into existing MCP servers without needing to understand every underlying system. And when something changes, say your database schema is updated. You fix it in one place instead of hunting down five different custom integrations.</p><p>MCP also unlocks composability. Imagine building an AI agent that can query your database, fetch customer information from your CRM, and read files from storage, all in the same workflow. With MCP, these simply become multiple servers the agent connects to.</p><h3>The Bottom Line</h3><p>MCP isn’t just a technical convenience. It represents a shift in how we approach AI integrations. Instead of treating every connection as a one-off problem, MCP provides a framework where integrations are built once and reused across systems.</p><p>If you’re spending more time writing integration code than building actual AI features, it might be time to consider MCP.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a36c4271434" width="1" height="1" alt=""><hr><p><a href="https://code.likeagirl.io/stop-building-the-same-integration-twice-mcp-server-is-here-to-save-you-4a36c4271434">Stop Building the Same Integration Twice — MCP Server Is Here to Save You</a> was originally published in <a href="https://code.likeagirl.io/">Code Like A Girl</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[npm vs npx ,What’s the Difference and When Do You Use Which?]]></title>
            <link>https://medium.com/@chaitanyav09/npm-vs-npx-whats-the-difference-and-when-do-you-use-which-90ecc2667e8b?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/90ecc2667e8b</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 04:42:58 GMT</pubDate>
            <atom:updated>2026-03-04T04:42:58.327Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve spent any time in the JavaScript world, you’ve typed npm install more times than you can count. But then at some point, someone told you to run npx something and you just... did it. It worked. You moved on.</p><p>But do you actually know what just happened? Let’s clear this up once and for all.</p><h3>npm — The Package Manager</h3><p>npm stands for <strong>Node Package Manager</strong>. That’s literally what it does — it manages packages.</p><p>When you run npm install react, npm goes to the npm registry, downloads React, and drops it into your node_modules folder. It also logs it in your package.json so your teammates can install the same thing later. Simple.</p><p>You use npm when you want to <strong>install something and keep it</strong> — either in your project (npm install) or globally on your machine (npm install -g).</p><p>The global part is where things used to get messy. Say you wanted to use create-react-app. The old way? Install it globally first, then run it.</p><pre>npm install -g create-react-app<br>create-react-app my-app</pre><p>Fine, but now you’ve got a globally installed package sitting on your machine forever, potentially going stale. And if you’re on a team, everyone needs to have the same version installed globally. That’s where things start breaking in annoying, hard-to-debug ways.</p><h3>npx — The Package Runner</h3><p>npx stands for <strong>Node Package Execute</strong>. It doesn’t install packages permanently — it just <em>runs</em> them.</p><p>When you type npx create-react-app my-app, npx goes, <em>&quot;Okay, let me grab the latest version of this, run it right now, and then I&#39;m done.&quot;</em> No global install. No stale version. No cleanup needed.</p><p>It’s like the difference between buying a tool versus renting one for the afternoon. If you use it every day, buy it. If you just need it once to scaffold a project, just rent it — why clutter your garage?</p><p>npx also solves the version problem beautifully. Everyone on your team running npx some-tool gets the latest version automatically. No more <em>&quot;works on my machine&quot;</em> drama.</p><h3>The Simple Rule</h3><p>Here’s how to think about it going forward:</p><ul><li><strong>npm</strong> → when you’re installing a dependency your project actually needs (libraries, frameworks, utilities)</li><li><strong>npx</strong> → when you’re running a one-time command or CLI tool without wanting to install it permanently</li></ul><p>Most of the time, scaffolding tools like create-react-app, create-next-app, or code generators are npx territory. Your actual project dependencies — React, Axios, Lodash — are npm territory.</p><p>Once you internalize that distinction, the confusion just disappears. They’re not competitors — they’re teammates solving different problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90ecc2667e8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Really Happens When You Zip a File]]></title>
            <link>https://medium.com/@chaitanyav09/what-really-happens-when-you-zip-a-file-49f4fcf19d1c?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/49f4fcf19d1c</guid>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 04:42:18 GMT</pubDate>
            <atom:updated>2026-03-04T06:48:26.210Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever thought about the process behind how a <strong>100 GB file gets compressed into a 10 GB file</strong>?</p><p>Nothing is removed, and yet, when you unzip it, every single byte comes back exactly as it was.</p><p>As we know, a computer understands only binary data, long sequences of 0s and 1s.So when a file is compressed, it’s not text, images, or folders that are being reduced, it’s these binary patterns being rewritten in a smarter way.</p><p>That’s where <strong>Huffman Coding</strong> comes in.</p><h3>How ZIP Compression Works Using Huffman Coding</h3><h3>Step 1: Reading the File and Observing Patterns</h3><p>When you start compressing a file, the computer doesn’t shrink anything immediately. First, it reads the entire file once, just to observe it. This step is all about understanding repetition.</p><p>To make this simple, imagine a small text file containing:</p><pre>banana_bandana</pre><p>When the computer scans this file, it builds a frequency count in its head:</p><p>a appears <strong>6 times</strong>,<br> n appears <strong>4 times</strong>,<br> b appears <strong>2 times</strong>,<br> while characters like _ and d appear only <strong>once</strong>.</p><p>This frequency count is the key input for Huffman Coding. Characters that appear more frequently are considered more important and are assigned shorter binary codes.</p><pre>a  →  0<br>n  →  10<br>b  →  110<br>d  →  1110<br>_  →  1111</pre><p>Each character ends up with a unique binary representation, and no code overlaps with another, which ensures safe decoding later.</p><h3>Step 2: Building the Huffman Coding Tree</h3><p>Once the frequencies are known, Huffman Coding builds a tree structure based on those counts. Characters are arranged in this tree in a way that reflects how often they appear in the file, with more frequent characters placed closer to the top and rarer ones deeper down.</p><p>Huffman tree looks like this:</p><pre>              (14)banana_bandana<br>             /    \<br>          a(6)     (8)<br>                   / \<br>                n(4)  (4)<br>                      / \<br>                   b(2)  (2)<br>                          / \<br>                       d(1)  _(1)</pre><p>Once the tree is built, assigning binary codes is straightforward.</p><p>By convention:</p><ul><li>moving <strong>left</strong> means 0</li><li>moving <strong>right</strong> means 1</li></ul><p>So when you walk from the root to a character:</p><ul><li>the path you take becomes its binary code</li></ul><p>Using the tree above, you get codes like:</p><ul><li>a → 0</li><li>n → 10</li><li>b → 110</li><li>d → 1110</li><li>_ → 1111</li></ul><p>This is why Huffman Coding is so reliable.<br>Every character is a <strong>leaf node</strong>, and no character’s code can be confused with another because no code sits inside another’s path.</p><h3>Step 3: Encoding the Data</h3><p>Now the actual compression begins.</p><p>The file is read again, character by character, but this time the original binary representation is replaced with the Huffman code assigned to each character. Because common characters are represented using fewer bits, the overall number of bits drops significantly.</p><p>Across large files with millions of repeated patterns, these small savings add up quickly. The ZIP file stores this compressed bit stream along with the information required to rebuild the Huffman tree.</p><h3>Step 4: Unzipping and Reconstructing the Original File</h3><p>When you unzip the file, the process runs in reverse.</p><p>The unzipper first reconstructs the Huffman tree using the stored information. Then it reads the compressed bit stream one bit at a time. Each 0 or 1 moves through the tree until a character is identified. That character is written back to the output, and the process repeats.</p><p>Bit by bit, the original binary data is restored exactly as it was before compression.</p><p>This is why ZIP compression works so reliably, it doesn’t remove information, it simply uses fewer bits to represent the same data, and Huffman Coding is the core reason that’s possible.</p><p>The same idea applies to images and videos as well.<br>For images, the computer doesn’t see pictures. It sees pixels, and large areas often contain repeated or very similar color values, which can be encoded more efficiently. In videos, consecutive frames are usually very similar, so instead of storing everything again, compression focuses on what changes between frames, applying the same repetition-based logic at a binary level.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49f4fcf19d1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Have You Ever Thought About This While Searching Online?]]></title>
            <link>https://medium.com/@chaitanyav09/have-you-ever-thought-about-this-while-searching-online-092d9afa6109?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/092d9afa6109</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Mon, 16 Feb 2026 05:19:31 GMT</pubDate>
            <atom:updated>2026-05-28T10:20:39.590Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever noticed when you open an e-commerce app, and type something <em>wrong.</em></p><p>A typo, a half word, or just “<strong><em>hedphones</em></strong>”. When someone types <strong>“<em>headphones</em>,”</strong> they might be looking for wired headphones, Bluetooth earphones, or noise-cancelling buds.</p><p>And somehow, you still get <strong>headphones</strong>. Sometimes you even see <strong>earphones</strong>, <strong>wireless buds</strong>, or closely related products. Have you ever stopped and wondered how that actually happens?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BgH48UmfZwE-l2z067z6QA.png" /><figcaption>Image generated with AI</figcaption></figure><h3>It’s Not Magic and It’s Not Your Database</h3><p>What’s interesting is how the system understands more than just the word you typed.</p><p>Traditional databases are very literal. They don’t understand typos, intent, similar words, or relevance. To them, text is just data. But users don’t think in data.</p><p>This difference between how systems store text and how humans search for it is where <strong><em>Elasticsearch</em></strong> comes in.</p><h3>What is Elasticsearch?</h3><p>Elasticsearch is built for <strong>searching by meaning</strong>, not just exact matches. Instead of treating text as plain data, it analyzes and indexes it in a way that allows fast full-text search, relevance ranking, filtering, and aggregations across very large datasets.</p><p>That’s why typos still return results, similar products appear naturally, and some items rank higher than others.</p><h3>How Elasticsearch Works Behind the Scenes</h3><h3>Step 1: User Searches in the Application</h3><p>Assume a user searches for <strong><em>bluetooh earphones</em></strong> in an e-commerce application. This search does not go to a database. Instead, it goes to <strong>Elasticsearch</strong>.</p><h3>Step 2: Product Data Was Already Indexed</h3><p>Even before an user searches, products already exist in the system.</p><p>For example:</p><pre>101 → Sony Wireless Noise Cancelling Headphones<br>102 → Boat Bluetooth Earphones<br>103 → JBL Wireless Headphones<br>104 → Wired Earphones</pre><p>When these products are created, their data is indexed in Elasticsearch.</p><p>Rather than storing full product names, Elasticsearch breaks them into individual terms and builds a lookup structure.</p><p>Internally, the data starts to look like this:</p><pre>sony        →[101]<br>boat        →[102]<br>jbl         →[103]</pre><pre>wireless   →[101, 103]<br>bluetooth  →[102]</pre><pre>headphones →[101, 103]<br>earphones  →[102, 104]</pre><pre>noise      →[101]<br>cancelling →[101]<br>wired      →[104]</pre><p>Each word knows exactly <strong>which products contain it</strong>.</p><p>Elasticsearch doesn’t need to scan all products during a search — it simply jumps to the relevant product IDs using these mappings.</p><p>This indexing step happens once, ahead of time, and completely out of the user’s view.</p><p>It’s what makes search fast, flexible, and forgiving later.</p><h3>Step 3: Elasticsearch Analyzes the User Query</h3><p>When the user types <strong>“bluetooh earphones”, </strong>before looking for products, Elasticsearch analyzes this input.</p><p>Then, the text is normalized and broken into search terms. During this process, Elasticsearch recognizes that <em>“bluetooh”</em> is very close to <em>“bluetooth.”</em></p><p>So the query effectively becomes:</p><pre>bluetooth<br>earphones</pre><p>The typo does not stop the search.</p><h3>Step 4: Matching Terms Are Looked Up in the Index</h3><p>Elasticsearch now looks into its index for these terms. From the indexed data, it immediately finds:</p><pre>bluetooth →[102]<br>earphones →[102, 104]</pre><p>At this stage, Elasticsearch already knows that products <strong>102</strong> and <strong>104</strong> are relevant. No full product scan is required.</p><h3>Step 5: Related Meaning Is Considered</h3><p>Search does not stop at exact word matches.</p><p>Elasticsearch understands that:</p><ul><li><em>Bluetooth</em> usually implies <em>wireless</em></li><li><em>Earphones</em> and <em>headphones</em> belong to the same audio category</li></ul><p>So it expands the search to include related terms.</p><p>From the index, it also considers:</p><pre>wireless   →[101, 103]<br>headphones →[101, 103]</pre><p>This brings additional relevant products into consideration.</p><h3>Step 6: All Matching Products Are Collected</h3><p>Elasticsearch now has a combined set of matching product IDs:</p><pre>[101, 102, 103, 104]</pre><p>Each of these products matches the user’s intent in some way.</p><h3>Step 7: Relevance Scoring Is Applied</h3><p>Next, Elasticsearch ranks these products.</p><p>It evaluates:</p><ul><li>How many query terms matched</li><li>Where the match occurred (product name vs others)</li><li>How closely the product aligns with wireless audio intent</li></ul><p>Based on this, products are ordered by relevance.</p><p>For example:</p><pre>102 → Boat Bluetooth Earphones<br>101 → Sony Wireless Headphones<br>103 → JBL Wireless Headphones<br>104 → Wired Earphones</pre><h3>Step 8: Results Are Returned to the Application</h3><p>The ranked product IDs are sent back to the application, where it fetches the product details and displays them to the user.</p><p>What looks like a simple search box is actually the result of carefully designed systems working behind the scenes. Elasticsearch bridges the gap between how humans think and how machines store data.</p><p>Instead of asking <em>“Does this exact word exist?”</em>, it asks:</p><ul><li><em>What did the user probably mean?</em></li><li><em>Which results best match that intent?</em></li><li><em>Which ones should appear first?</em></li></ul><p>That’s why typos don’t break searches, related products show up naturally, and results feel surprisingly accurate .</p><p>The next time you mistype a word and still find exactly what you’re looking for, you’ll know what’s happening. It’s not magic, and it’s not just a database. It’s Elasticsearch doing its thing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=092d9afa6109" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Localhost to Live: Sharing Your App with Cloudflare Tunnel]]></title>
            <link>https://medium.com/@chaitanyav09/from-localhost-to-live-sharing-your-app-with-cloudflare-tunnel-6deb887b9e46?source=rss-05ba5d3c2185------2</link>
            <guid isPermaLink="false">https://medium.com/p/6deb887b9e46</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[localhost]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[cloudflare]]></category>
            <dc:creator><![CDATA[Chaitanya.V]]></dc:creator>
            <pubDate>Wed, 04 Feb 2026 14:09:16 GMT</pubDate>
            <atom:updated>2026-05-28T10:20:19.021Z</atom:updated>
            <content:encoded><![CDATA[<p>The application runs smoothly on localhost.</p><p>Features behave correctly, the UI looks clean, and the backend responds as expected.</p><p>Everything feels ready, until client or interviewer asks a simple question: “Can you share the link?”</p><p>But the project exists only on your local machine, you can’t simply share the code and expect them to run it.</p><p>Deploying it feels too early, the code isn’t production-ready yet. Pushing temporary changes to a staging environment introduces unnecessary complexity. Exposing credentials or internal infrastructure is risky. Setting up hosting just for a short demo feels like wasted time.</p><p>What’s really needed is something much simpler: a way for someone else to see exactly what’s already running locally.</p><p>This is where Cloudflare Tunnel fits in.</p><h3><strong>What is Cloudflare Tunnel ?</strong></h3><p>Cloudflare Tunnel allows a locally running application, <strong>accessible through a secure public URL</strong>, without deploying the code, opening ports, or modifying network settings.</p><h3><strong>How does it work ?</strong></h3><p>Cloudflare Tunnel works by creating a secure, outbound connection from your local machine to Cloudflare’s network.</p><p>When the tunnel starts, <em>cloudflared</em> runs on your system and establishes an encrypted connection to Cloudflare. As the connection is outbound, no inbound ports need to be opened and no firewall rules need to be changed.</p><p>When someone accesses the public URL, the request first reaches Cloudflare. Cloudflare terminates HTTPS at the edge and then securely forwards the request through the tunnel to your local application running on localhost.</p><p>From the user’s perspective, it behaves like a normal HTTPS website.</p><p>From your perspective, the application is still running locally, unchanged.</p><p>This design makes Cloudflare Tunnel both secure and developer-friendly: your machine never accepts direct inbound traffic, and the tunnel can be started or stopped at any time.</p><p>With that understanding, let’s look at how to set up Cloudflare Tunnel and get it running in a few simple steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wAvBQQCItSFTSWsd3T-2kw.png" /><figcaption>Image generated with AI</figcaption></figure><h3>Getting Started with Cloudflare Tunnel</h3><p>The first step is installing <strong>cloudflared</strong>, the command-line tool used to create tunnels.</p><p>On macOS, installation can be done using Homebrew:</p><pre>brew install cloudflare/cloudflare/cloudflared</pre><p>On Linux, cloudflared is available through package managers or as a standalone binary:</p><pre>sudo apt install cloudflared</pre><p>For Windows users, the binary can be downloaded directly from Cloudflare and added to the system PATH.</p><p>After installation, verifying that everything is set up correctly is as simple as running:</p><pre>cloudflared --version</pre><p>Before setting up the tunnel, make sure the application is already running locally.</p><p>This could be:A React application on <a href="http://localhost:3000/"><strong><em>http://localhost:3000</em></strong></a></p><p>A Spring Boot backend on <a href="http://localhost:8080/"><strong><em>http://localhost:8080</em></strong></a></p><p>At this point, nothing special is required. The app runs exactly as it always has.</p><p>Creating a Tunnel in One Command</p><p>With the application running, a tunnel can be started using a single command:</p><pre>cloudflared tunnel --url &lt;http://localhost:3000&gt;</pre><p>Within seconds, Cloudflare generates a public HTTPS URL, typically ending with<em> </em><a href="http://trycloudflare.com/"><strong><em>trycloudflare.com</em></strong></a><em>.</em></p><p>This URL can be opened in any browser, from any network, and it will load the local application as if it were deployed online.</p><p>That link can now be shared with a client, a friend, or an interviewer.</p><h3>How to stop the tunnel ?</h3><p>Stopping the tunnel is as simple as stopping the running process.</p><p>As soon as the tunnel stops, the public URL becomes inaccessible.</p><p>The local application continues running as usual, completely isolated again.</p><h3>Why This Approach is Better?</h3><p>When something works locally and simply needs to be seen, it provides a secure, temporary bridge between your machine and the outside world.</p><p>For developers, that matters. It preserves focus, avoids unnecessary setup, and respects the reality of how work actually gets done. When the demo is over, the tunnel closes, and everything goes back to normal. No cleanup. No compromises.</p><p>Sometimes, all you really need is a link.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6deb887b9e46" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>