<?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 Vaibhav Sharma on Medium]]></title>
        <description><![CDATA[Stories by Vaibhav Sharma on Medium]]></description>
        <link>https://medium.com/@vaibhavsharma_927?source=rss-9d210da7a601------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QDgQIQpagUIfVXODUxQYJA.png</url>
            <title>Stories by Vaibhav Sharma on Medium</title>
            <link>https://medium.com/@vaibhavsharma_927?source=rss-9d210da7a601------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:58:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vaibhavsharma_927/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[When to choose NoSQL Database]]></title>
            <link>https://medium.com/@vaibhavsharma_927/when-to-choose-nosql-database-180f4bfe0037?source=rss-9d210da7a601------2</link>
            <guid isPermaLink="false">https://medium.com/p/180f4bfe0037</guid>
            <category><![CDATA[nosql-database]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[Vaibhav Sharma]]></dc:creator>
            <pubDate>Tue, 20 Feb 2024 04:58:54 GMT</pubDate>
            <atom:updated>2024-02-20T04:58:54.127Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*woT-qlRby2VtGoauxk9BhA.jpeg" /><figcaption>Data flowing in Data Center</figcaption></figure><p>NoSQL Database can be used in following scenarios:</p><ol><li>When your application need to serve data with super-low latency</li><li>When you do not have any relational data</li><li>When your data is unstructured</li><li>When you only need to serialize or deserialized data ( like JSON, XML, YAML etc.)</li><li>And you need to store a massive amount of data — NoSQL databases can scale well</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=180f4bfe0037" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How DNS Works?]]></title>
            <link>https://medium.com/@vaibhavsharma_927/how-dns-works-23f3d7e4bf3c?source=rss-9d210da7a601------2</link>
            <guid isPermaLink="false">https://medium.com/p/23f3d7e4bf3c</guid>
            <category><![CDATA[ip-address]]></category>
            <category><![CDATA[domain-name-system]]></category>
            <dc:creator><![CDATA[Vaibhav Sharma]]></dc:creator>
            <pubDate>Mon, 24 Jul 2023 18:07:30 GMT</pubDate>
            <atom:updated>2023-08-20T18:46:38.652Z</atom:updated>
            <content:encoded><![CDATA[<p>How does DNS (Domain Name System) Resolver Works?</p><p>While browsing any website, the most popular one being google.com, have you ever wondered how a little browser on your laptop is making a connection to the Google server and downloading the web page for you, OR how it even knows where the Google server is located in the web forest (its a Jungle of Connected networks).</p><p>So today we will see how exactly your browser locates any of the Domain names of any of the websites that you enter in your browser.</p><p>I have tried jotting down a sketch for this; here it is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o0k_1FpeCe5qV8TppZNxLg.png" /><figcaption>Working of Domain Name System Lookup</figcaption></figure><p>In this diagram, we can see the step-by-step process of the domain name resolver.</p><ol><li>Whenever a user Opens up a browser and enters any website address in it, like <a href="https://www.google.com/"><em>https://google.com/</em></a><em>,</em></li><li>Now the browser will look into its local browser cache for the IP address of google.com. If it finds it, that’s it; otherwise, it will move forward.</li><li>It will ask the Operating System to give the IP address.</li><li>The OS will look into its local cache (if it has any).</li><li>If OS gets the IP address, it will send it to the browser.</li><li>If the OS doesn’t find it, the browser will send the domain name request to the DNS Resolver.</li><li>DNS Resolver will first look for IP addresses in its local cache.</li><li>DNS Resolver asks the Root DNS server.</li><li><strong>Root DNS Server: </strong>Holds (stores) the IP address of all TLD DNS Servers. It will search the IP address of the TLD server for the .com domain.</li><li>DNS Resolver now asks the .com TLD server to give IP address of google.com</li><li>TLD (Top Level Domain Name Server) It holds the IP address of all authoritative domain name servers that have the same domain extensions or the same type of domain extensions. Like generic TLD servers, they will contain domain names that have.com,.org, etc. domain extensions, like google.com, medium.com, etc. TLD will respond with the IP address of Authoritative Domain Name server</li><li>DNS Resolver will now ask the domain’s nameserver.</li><li>Authoritative Domain Name name server will return the IP address of google.com.</li><li>The DNS Resolver will send this IP address to the browser.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23f3d7e4bf3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java 10 — Local Variable Type Inference]]></title>
            <link>https://medium.com/@vaibhavsharma_927/java-10-local-variable-type-inference-2b5633a7af2e?source=rss-9d210da7a601------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b5633a7af2e</guid>
            <category><![CDATA[local-variable]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[java10]]></category>
            <dc:creator><![CDATA[Vaibhav Sharma]]></dc:creator>
            <pubDate>Thu, 07 May 2020 05:21:06 GMT</pubDate>
            <atom:updated>2020-05-07T05:21:06.762Z</atom:updated>
            <content:encoded><![CDATA[<h3>Java 10 — Local Variable Type Inference</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nzu65hRX1KAkdTyV4AE1Zg.png" /><figcaption>Java 10 — Local Variable Type Reference</figcaption></figure><p><strong>Local Variable Type Inference</strong> is a new feature of Java 10 and it means that you can declare variables <strong>without having to specify the associated type</strong>, which in turn provides us below benefits:</p><ol><li><strong>This adds syntactic sugar to Java</strong> — Improves Developers Experience</li><li><strong>Reduces the wordage/verboseness in writing Java Code</strong> — Reduces boiler plate code and increases code clarity.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6017da8228d569b0547ef1bfae1b246/href">https://medium.com/media/f6017da8228d569b0547ef1bfae1b246/href</a></iframe><h3>Code Before Java-10</h3><p>In Java 8 or Java 7 we were writting code as shown given Code snippet</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d1ad79c4d8941f927957f346ef9a6d9/href">https://medium.com/media/3d1ad79c4d8941f927957f346ef9a6d9/href</a></iframe><h3>Code After Java-10</h3><p>After Java10 the same code can be written as in given code snippet. Here we can clearly see that when we are using <strong><em>var, </em></strong>where the type is inferred from the context. As in line number 4, <strong><em>name </em></strong>variable the type is inferred from the declaring context of this variable. The compile already know the type of <strong><em>name </em></strong>is<strong><em> String.</em></strong></p><blockquote>Java is a Statically Typed Language that means once the type is assigned you cannot change it. That means that you cannot change the type of <strong>name</strong> variable in next statement.</blockquote><h3>Some features of var</h3><ol><li><strong><em>var </em></strong>is not a general keyword</li><li>It is a reserved type-name or context-sensitive keyword</li><li>That means that the code that uses the <strong><em>var</em></strong> as a <strong><em>variable, method </em></strong>or package name is not affected.</li><li>However the code that uses <strong>var </strong>as <strong>class</strong> or <strong>interface</strong> name is affected.</li></ol><h3><strong>Local variable type reference Works With:</strong></h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4152153b16838eac435df01ee5afcbdf/href">https://medium.com/media/4152153b16838eac435df01ee5afcbdf/href</a></iframe><p>a) Restricted to Initializers</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e669cfef00412710adaaa2e4d3655958/href">https://medium.com/media/e669cfef00412710adaaa2e4d3655958/href</a></iframe><p>b) Restricted to Indexes Enhanced for loop as shown in given snippet.</p><p>c) Restricted to Local variable initialized in a traditional for loop.</p><h3>What doesn’t Work?</h3><ol><li>While declaring a Local variable type reference <strong>you must have to initialize them</strong>.</li><li>Local variable type reference is not available for <strong>method parameters, constructor parameters, method return type, fields, catch formats or any other variable deceleration</strong>.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b5633a7af2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy a SonarQube Server on Heroku Cloud?]]></title>
            <link>https://medium.com/@vaibhavsharma_927/how-to-deploy-a-sonarqube-server-on-heroku-cloud-62fd94f36474?source=rss-9d210da7a601------2</link>
            <guid isPermaLink="false">https://medium.com/p/62fd94f36474</guid>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[sonarqube]]></category>
            <dc:creator><![CDATA[Vaibhav Sharma]]></dc:creator>
            <pubDate>Mon, 27 Apr 2020 06:40:20 GMT</pubDate>
            <atom:updated>2020-05-06T11:21:20.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*9Ktrx3MYfHla8WYaBgkr9g.png" /></figure><p>I was working on a task to deploy SonarQube Server on Heroku Cloud. As we cannot directly login on Heroku Dyno and install any software on it, as we can do on AWS EC2 instance, so installing SonarQube on Heroku is a tricky one.</p><p>Below are the commands in total that are required for installing SonarQuber on Heroku.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec36403848f8261eaaa3e3e0b4b2b1f0/href">https://medium.com/media/ec36403848f8261eaaa3e3e0b4b2b1f0/href</a></iframe><p>Now we will discuss all of the commands:</p><blockquote>I hope you have already installed Heroku CLI and Git Bash and you are typing these commands in Git Bash.</blockquote><blockquote>You should be already logged in heroku by using command heroku login</blockquote><pre>heroku create &lt;appName&gt;</pre><p>This command will create the heroku app with the name provided here.</p><pre>heroku addons:create heroku-postgresql:hobby-dev -a &lt;appName&gt;</pre><p>This will add an addon a hobby postgres, please addon a higer version of it as Hobby postgres will be able to support only 1 or 2 code scans due to space limitation.</p><pre>heroku buildpacks:set https://github.com/NayaraCaetano/heroku-buildpack-sonarqube.git -a &lt;appName&gt;</pre><p>This will install the buildpack on the app. This buildpack contains the sonarquber server.</p><p>Rest of the commands for creating a blank readme file and checkin in Heroku Git.<br>Also last command: is used for using <strong><em>performance-m</em></strong> dyno, as we need extra RAM for running SonarQube.</p><pre><br>heroku dyno:resize performance-m -a &lt;appname&gt;</pre><blockquote>You have to increase the add-on size for <strong>postgres </strong>as per your need. Because with free version you can only run couple of scans.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62fd94f36474" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>