<?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 Wilfred Lagat  on Medium]]></title>
        <description><![CDATA[Stories by Wilfred Lagat  on Medium]]></description>
        <link>https://medium.com/@kiprutowillie?source=rss-1b2a0bb0b2c1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UytI_AUJ4p9o7tpXT97uQA.jpeg</url>
            <title>Stories by Wilfred Lagat  on Medium</title>
            <link>https://medium.com/@kiprutowillie?source=rss-1b2a0bb0b2c1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:33:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kiprutowillie/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[What happens when you type google.com in your browser and press Enter]]></title>
            <link>https://medium.com/@kiprutowillie/what-happens-when-you-type-google-com-in-your-browser-and-press-enter-4273a1631de7?source=rss-1b2a0bb0b2c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4273a1631de7</guid>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Wilfred Lagat ]]></dc:creator>
            <pubDate>Sat, 13 May 2023 07:42:32 GMT</pubDate>
            <atom:updated>2023-05-13T07:42:32.555Z</atom:updated>
            <content:encoded><![CDATA[<h3>Well, we all have access to the internet at one point using various browsers. Browsers like Google Chrome, Edge, Firefox, Opera e.t.c takes our requests using the URL (uniform resource locator) for instance <a href="https://www.google.com/">https://www.google.com</a> and hit enter in your keyboard many actions happen within a split of second that you hardly notice.</h3><p><strong>In summary, this is what happens;</strong></p><p>i. Domain Name System (DNS) request</p><p>ii. DNS lookup process</p><p>iii. TCP/IP connectivity</p><p>iv. Firewall protection</p><p>v. HTTPS/SSL</p><p>vi. Load-balancer</p><p>vii. Web server</p><p>viii. Server for applications and Database</p><p>ix. Displaying the web page requested</p><p>Now let us look each feature as it is;</p><p><strong>Domain Name System (DNS) Request</strong></p><p>Whenever you visit a website, you leave your tracks “cache” in your browser, this cache whenever you want to visit the page you had visited earlier you will just be redirected without the involvement of the IP address. This process simplifies the need to go to the server providing the output and acquiring the IP address. And what about if it is your first time visiting the page?</p><p>Well then, we will have to go through this process.</p><p><strong>DNS lookup process</strong></p><p>This is how the lookup process for DNS works;</p><p>The browser sends a request to the <strong>local DNS resolver</strong> which is provided by the <strong>internet service provider (ISP</strong>). The local DNS resolver checks for the latest cache added if it is present, it sends beck the IP address to the browser. If the local DNS doesn’t have the latest copy of DNS record, it sends a request to a root nameserver. The root nameserver replies with address of <strong>top-level domain (TLD) </strong>nameserver e.g .com</p><p>The local DNS resolver sends a request to TLD nameserver and it responds with the address of the authoritative nameserver for the domain and returns back the IP address to the browser. Finally, the browser sends a request to the server at the IP address to retrieve the webpage.</p><p>And what happens if the DNS record is not found? The above process may involve additional steps of checking the services of DNS load balancing or <strong>content delivery networks (CDN).</strong></p><p><strong>TCP/IP connectivity</strong></p><p>Transmission Control Protocol (TCP) and IP (Internet Protocol) are two primary protocols that constitutes the internet. They work by providing a link between a client(browser) and a server for exchanging data between them. TCP/IP link is established when you type <strong>google.com</strong> in your browser to the server that hosts the website. The server provides information such as HTML, CSS and JavaScript files.</p><p><strong>Firewall protection</strong></p><p>This is a security feature which ensures that the data and information provided is not corrupted or there is no one eavesdropping the communication between the client and the server. The firewall monitors the incoming and outgoing processes based on predetermined protocols and security measures. It does so by employing these policies;</p><p>- Policies that allow or prohibits traffic based on the origin or the end of the request. A firewall can be installed to block all the traffic from specific region or different network and to allow only specific IP addresses to access that network. This is a great security measure.</p><p>- Policies that allow traffic based on the type of information provided or port used to access them. A firewall can be installed to prevent access from different ports which majorly can be used to by malware to harm your server.</p><p><strong>HTTPS/SSL</strong></p><p><strong>Hypertext Transfer Protocol Secures (HTTPS)</strong> is much safer than HTTP and it’s used to transfer encrypted data over the internet. Its main purpose is to ensure data sent to your browser and google.com server is safe.</p><p><strong>Secure Socket Layer (SSL) and Transport Layer Security(TLS)</strong> are the encryption protocols that ensure the data and information transmitted over HTTPS is safe. When you try to access the google server the https agrees with google version of SSL/TLS to use and create secure and encrypted channel between your browser and their server. SSL/TLS provides a situation like padlock and key whereby your browser can only have a key to unlock the data asked. No one can have the key to your browser and that means no one in the middle is involved.</p><p><strong>The load-balancer</strong></p><p>This is a tool which is used by the servers to balance the traffic on its group of servers. Google.com receives a lot of traffic and they have a load balancer which distributes requests to different servers available using different load balancing algorithm such as Roundrobin algorithm, weighted Roundrobin algorithm or the least connections algorithm. The load-balancer ensures that no server is overwhelmed by the client requests. The server chosen now will provide us with our requested information.</p><p><strong>The Web server</strong></p><p>A webserver is a software in charge of managing requests of web pages from clients(browsers) for our instance google.com. When the request is received the webserver handles the request and returns the appropriate response to the client. Mostly google.com will obtain requests from the load balancer and sends a response contains usually HTML, CSS and JavaScript files that make up the web page for display.</p><p><strong>The server for application and database</strong></p><p>The application server handles the dynamic content unlike the webserver. It is responsible for producing search results. When you submit your query to google.com the request is sent to the load balancer and then forwards it to the google webserver. The webserver then sends the request to the application server and produces the desired results depending on the search complexity of the search query.</p><p>The database contains well organized data that can be edited or retrieved easily. The application server will look for the databases that contains the information the clients had asked about and retrieves necessary data.</p><p>Once the application server has acquired required the data, it sends it back to the webserver displaying the page.</p><p><strong>Displaying the web page</strong></p><p>After acquiring our response from the webserver, our browser will then process the HTML, CSS and JavaScript files that are included in the web page. This involves interpreting the HTML and CSS code used and any images or other media included on the page. Our googl.com request will then display HTML, CSS and JavaScript files that makes up google web page according to the developers’ set standards.</p><p>In summary, our request google.com will travel through above conditions and within a second depending on our network a cool page of google will be displayed.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4273a1631de7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>