<?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 Kayongo Samuel Yongo on Medium]]></title>
        <description><![CDATA[Stories by Kayongo Samuel Yongo on Medium]]></description>
        <link>https://medium.com/@kayongoyongo?source=rss-508186115eec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*inWV1esOY2Ejju1x</url>
            <title>Stories by Kayongo Samuel Yongo on Medium</title>
            <link>https://medium.com/@kayongoyongo?source=rss-508186115eec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 02:19:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kayongoyongo/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[Demystifying *args and **kwargs: Python’s Dynamic Duo]]></title>
            <link>https://kayongoyongo.medium.com/demystifying-args-and-kwargs-pythons-dynamic-duo-1b4708d2878c?source=rss-508186115eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b4708d2878c</guid>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kayongo Samuel Yongo]]></dc:creator>
            <pubDate>Mon, 19 Jun 2023 00:37:20 GMT</pubDate>
            <atom:updated>2023-06-19T00:42:50.746Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*S8mDOfIrepC5luxlDRuHvA.png" /></figure><p>If you are a python developer, there’s a possibility you’ve come across this:</p><pre>def some_function(*args, **kwargs):</pre><p>The first time I came across this, I was really confused. I asked myself lots of questions such as : Why is a python argument taking an asterisk before it? What problem are we trying to solve using these variables ? Is it necessary ?</p><p>Through further reading and practice, my questions were answered and through this article, I’ll try to share on my findings.</p><p>Suppose we have a simplified function that finds the sum of two numbers:</p><pre>#!/usr/bin/python3<br><br>def add(a, b):<br>  return a + b<br><br>print(add(4, 5))</pre><p>If we execute the above code, we get an output of 9.</p><p>Suppose we add a third argument on our print function.</p><pre>#!/usr/bin/python3<br><br>def add(a, b):<br>  return a + b<br><br>print(add(4, 5, 6))</pre><p>we get this error:</p><pre>Traceback (most recent call last):<br>  File &quot;./test.py&quot;, line 6, in &lt;module&gt;<br>    print(add(4, 5, 6))<br>TypeError: add() takes 2 positional arguments but 3 were given</pre><p>Intuitively, some might suggest that we could add another argument to our “add” function. The truth is this will work. <strong>However, </strong>suppose we need the function to find the sum of 50 numbers. Based on the above solution, this would mean that our function would need to take 50 arguments. What if we need to find the sum of 100 numbers? We would need to modify our function to handle 100 arguments. See the problem?</p><p>The above solution is quite cumbersome and inefficient. Is there any possibility of another solution? Yes there is! That’s where the dynamic duo of *args and **kwargs come in.</p><h3><strong>*args</strong></h3><p>*args is a special syntax used in function definitions to indicate that the function can accept <strong>a variable number of non-keyword arguments.</strong> The term &quot;args&quot; is short for &quot;arguments,&quot; and the asterisk (*) before &quot;args&quot; unpacks the arguments into a tuple.</p><p>Here is an example of args in action:</p><pre>def total(*args):<br>  print(args, type(args))<br><br>add(4, 5)</pre><p>output:</p><pre>(2, 3) &lt;class &#39;tuple&#39;&gt;</pre><p>The above code affirms our definition. Each individual variable is stored in a tuple.</p><p>Suppose we want to find the sum of 5 numbers. We would go about it like this in the next code block:</p><pre>def total(*numbers):<br>  sum = 0<br>  for num in numbers:<br>    sum += num<br>  return sum<br><br>print(total(1, 3, 5, 6, 4)</pre><p>The expected output would be 19.</p><p>Note: I used “*numbers” instead of “*args”. This is permitted in python. The only reason args is used is because it is a standard. The major take away is to always include the asterisk.</p><h3>**kwargs</h3><p>**kwargs is a special syntax used in function definitions to indicate that the function can accept a variable number of keyword arguments. The term &quot;kwargs&quot; is short for &quot;keyword arguments,&quot; and the double asterisks (**) before &quot;kwargs&quot; unpack the keyword arguments into a dictionary.</p><p>Here is an example of kwargs in action:</p><pre>def total_cars(**kwargs):<br>    print(kwargs, type(kwargs))<br><br>total_cars(audi=9, suzuki=4, toyota=7)</pre><p>output:</p><pre>{&#39;audi&#39;: 9, &#39;suzuki&#39;: 4, &#39;toyota&#39;: 7} &lt;class &#39;dict&#39;&gt;</pre><p>Suppose we wanted to find the total number of cars. We would go about it like this in the next code block:</p><pre>def total_cars(**cars):<br>  total = 0<br>  for car in cars.values()<br>    total += car<br>  return total<br><br>print(total_cars(audi=9, suzuki=4, toyota=7))</pre><p>The output will be: 20</p><h3>Conclusion</h3><p>These features are very useful in python and make python very flexible and efficient. In my next article, I’ll show a practical application of *args and **kwargs in Object Oriented Programming.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b4708d2878c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first portfolio project]]></title>
            <link>https://kayongoyongo.medium.com/my-first-portfolio-project-25db478de9fd?source=rss-508186115eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/25db478de9fd</guid>
            <dc:creator><![CDATA[Kayongo Samuel Yongo]]></dc:creator>
            <pubDate>Wed, 14 Jun 2023 22:13:13 GMT</pubDate>
            <atom:updated>2023-06-15T21:32:14.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5cyjgnDl8IGcWcne0mG_Hg.png" /></figure><p><strong>Purpose of my project:</strong><br>The project was meant to provide a means so as to make house hunting easier for people. Additionally, it provided a means to connect a tenant to an owner.</p><p><strong>Team members:</strong></p><p>Lyod Ngei — Frontend / Middle-end</p><p>Kayongo Samuel Yongo — Frontend and Middle-end</p><p>Allan Too — Databases and Middle-end</p><p><strong>Audience for the project:</strong><br>The audience for my project were the people who were tired of seeking for apartments the unconventional way.</p><p><strong>Our personal focus:</strong></p><p>As an engineering problem, we wanted to focus on 2 things: creating an experience that would be both web and pocket friendly.</p><h3>A story about myself which relates to why you chose to work on this project:</h3><p>Oddly enough, I have never embarked on the journey of hunting for a house. In all my years of study, I have been very privileged to study within my home county. However, I have been very curious about it.</p><p>I have friends who have embarked on this grueling journey and from the stories I have heard, there seems to be a need for solutions from problems arising from this task.</p><p>An example is knowing which kind of amenities are available. Since we are living in a time where working from home is a major challenge, an amenity such as internet provider is necessary. Knowing which one is reliable and which one offers poor customer service is a necessity for some.</p><p>Additionally, there are some areas which are always affected with power interruptions. Or if power interruptions occur, they take longer to recover. This is an important amenity to seek out when searching for a house. If the new tenants are parents to a new born, this could be considered a major priority.</p><h3>A summary of what I’ve accomplished with my project:</h3><p>For the Frontend we chose to use HTML5, CSS3 and JavaScript without any additional frameworks. We opted not to use other frameworks because we wanted to dedicate our time to solidifying our understanding of JavaScript.</p><p>For the Backend, we chose to use flask so as to familiarize ourselves with how forms and databases interact. additionally, it was a new challenge for us and we managed to solidify our understanding of flask.</p><p>For the database, we utilized MySQL. We were already familiar with it but we wanted to push our understanding of how a flask script actually interacts with it.</p><h3>The most difficult technical challenge in depth</h3><p>Since our app is a house hunting website, the most challenging thing was to add a photo and make it display the individual elements of a house such as Cost.</p><p>In the beginning, our original idea was to add various HTML forms to deal with the different properties. However, this proved to be challenging since it was quite repetitive and inefficient.</p><p>The second idea was to add photos to the database. This seemed like a straight forward solution to begin with. We created a form for adding the houses, we added the photos to the database and saved them as a BLOB(Binary Large Object). The issue now came up in displaying the photos. Since they are stored in a different encoding, changing the encoding back to a jpg proved to be difficult.</p><p>The last and working idea was to save the photos as a path. This method proved to be fruitful as it was easier to display the photos without playing around with their encodings.(I am still a beginner, there’s more to learn)</p><p>Additionally, the method proved to be efficient since we were not messing around with the size of the database which would in turn affect the functionality of the website.</p><h3>What I’ve learned</h3><p><strong>Technical take-aways:</strong></p><p>Efficiency is something that needs to be learned. Sometimes we build things that work but at the end of the day, how fast data can be accessed and received matters to many people.</p><p><strong>What I might do differently:</strong></p><p>Plan more before coding. I need to come up with solutions before actually typing out the code. This will save me a lot of time.</p><p><strong>What you learned about yourself as an engineer:</strong></p><p>To become better a software engineering, one has to have the patience and positive attitude to always approach a problem with a positive attitude. Being bad at something is constant, but to remain bad is a choice.</p><p>I am capable of doing much more if I set my mind to it.</p><p>I should believe in progress before perfection.</p><p><strong>How this project informs your engineering path in the future</strong></p><p>Although it was challenging, I actually enjoyed it since it made me improve on my skills.</p><p><strong><em>About myself:</em></strong></p><p>I am an aspiring software engineer seeking to improve his skills.</p><p><strong><em>LinkedIn profile</em></strong>:</p><p><a href="https://www.linkedin.com/in/samuel-kayongo-3ba7206a/">https://www.linkedin.com/in/samuel-kayongo-3ba7206a/</a></p><p><strong><em>GitHub profile:</em></strong></p><p><a href="https://github.com/KayongoYongo">KayongoYongo - Overview</a></p><p><strong><em>Project Page:</em></strong></p><p><a href="http://web-01.kayongoyongocodes.tech/">http://web-01.kayongoyongocodes.tech</a></p><p><strong><em>Profile for the actual project:</em></strong></p><p><a href="https://github.com/LoydNgei/House-Explorer_Web-App">https://github.com/LoydNgei/House-Explorer_Web-App</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25db478de9fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to add functionality to a user registration form using Flask in Linux(part 1)]]></title>
            <link>https://kayongoyongo.medium.com/how-to-add-functionality-to-a-user-registration-form-using-flask-in-linux-part-1-6e5ef5770cd7?source=rss-508186115eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e5ef5770cd7</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[flask]]></category>
            <dc:creator><![CDATA[Kayongo Samuel Yongo]]></dc:creator>
            <pubDate>Sun, 04 Jun 2023 01:42:54 GMT</pubDate>
            <atom:updated>2023-06-04T01:42:54.912Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever wondered how data gets from a HTML form to a database? We’ll in this series, I’ll try to explain how that happens using Flask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qv39cQA-U_8cUaHuevmfTQ.png" /><figcaption>Simple sign up form</figcaption></figure><p>In this part, I’ll only focus on the required applications needed to run flask.</p><p>Before I proceed, we need to understand the process of sending data from a simple form to a database. The whole process is not complicated. Any individual can understand it.</p><p>I’ll use this image to demonstrate the whole process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nA49LTxRYSN5j5msoH4laA.png" /></figure><p>HTML FORM:</p><p>The HTML for will be responsible for providing an interface for the end user to send the required information such as name and email via POST(It is possible with GET but POST is used for security reasons) to the database.</p><p>Python SCRIPT:</p><p>This script will be responsible for connecting to the database. It will also contain the logic required to add data to the database. Lastly, it will inherit the table model required to match with the name, email and passwords column in the database.</p><p>Database:</p><p>This will be responsible for storing the data we’ve entered in the form.</p><p>For this project, I’ll be using Flask-SQLAlchemy. TO install it in Linux, run the following commands.</p><pre>sudo apt update<br>sudo apt install python3</pre><p>These will ensure that our programs are running with the most up to date libraries.</p><pre>sudo apt install python3 python3-pip</pre><p>Next,</p><pre>pip3 install Flask-SQLAlchemy</pre><p>Finally install MySQL.</p><pre>sudo apt install mysql-server</pre><p>After running the above commands, our coding environment should be ready for our simple project.</p><p>Thank you for reading Part 1 of this article! I hope you found it informative and engaging. Stay tuned for Part 2, where we will delve deeper into How to use flask to make a simple sign u form and explore setting up the actual script. I’m excited to share more insights with you, so make sure to follow me and keep an eye out for the next installment. Until then, happy reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e5ef5770cd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An imaginative Postmortem]]></title>
            <link>https://kayongoyongo.medium.com/an-imaginative-postmortem-66398ce0cbab?source=rss-508186115eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/66398ce0cbab</guid>
            <dc:creator><![CDATA[Kayongo Samuel Yongo]]></dc:creator>
            <pubDate>Sun, 14 May 2023 08:42:50 GMT</pubDate>
            <atom:updated>2023-05-14T08:42:50.259Z</atom:updated>
            <content:encoded><![CDATA[<p>Postmortem: Web Stack Outage — May 13, 2023</p><p>Issue Summary:</p><p>Duration: 5 hours, from 10:00 AM to 3:00 PM (UTC +5)</p><p>Impact: The web application experienced intermittent downtime, resulting in slow response times and partial unavailability for approximately 50% of the users.</p><p>Timeline:</p><p>- 10:00 AM: The issue was detected when monitoring alerts triggered due to high latency and increased error rates.</p><p>- Actions Taken: The incident response team immediately initiated an investigation. The web server logs and application performance metrics were analyzed to identify potential causes.</p><p>- Misleading Investigation/Debugging Paths: Initially, the focus was on the application codebase, suspecting recent changes to be the root cause. Additionally, network connectivity issues were explored, leading to temporary configuration changes that did not resolve the problem.</p><p>- 11:30 AM: As the investigation yielded no conclusive results, the incident was escalated to the infrastructure team for further analysis.</p><p>- Actions Taken: The infrastructure team reviewed system logs, load balancer configurations, and network traffic patterns to identify potential issues.</p><p>- Misleading Investigation/Debugging Paths: The team suspected a misconfiguration in the load balancer settings and spent considerable time investigating that avenue, which proved to be a red herring.</p><p>- 1:00 PM: The incident was escalated to the database administration team for a more comprehensive examination.</p><p>- Actions Taken: The database team performed a thorough analysis of database logs, query performance, and hardware utilization.</p><p>- Misleading Investigation/Debugging Paths: The team initially suspected a database replication issue and performed several tests and configuration changes related to replication, which did not resolve the problem.</p><p>- 2:30 PM: The root cause was identified as a network misconfiguration causing intermittent packet loss between the web servers and the database servers.</p><p>- Root Cause: Due to a recent network upgrade, a misconfigured switch was causing packet loss on specific network segments, leading to intermittent communication failures between the web servers and the database servers.</p><p>- Resolution: The misconfigured switch was identified and reconfigured to resolve the packet loss issue, restoring stable communication between the web servers and the database servers.</p><p>Corrective and Preventative Measures:</p><p>- Improve Monitoring: Enhance monitoring systems to promptly detect and alert for network-related issues, including packet loss and latency.</p><p>- Network Configuration Review: Conduct regular reviews of network configurations to identify and rectify any misconfigurations that might impact system performance.</p><p>- Disaster Recovery Testing: Conduct periodic disaster recovery tests to ensure appropriate failover mechanisms are in place and functioning correctly.</p><p>- Task List:</p><p>- Patch and update network equipment firmware to prevent misconfigurations.</p><p>- Implement redundant network paths to minimize the impact of similar network issues in the future.</p><p>- Enhance logging and diagnostic capabilities for network devices to aid in faster issue resolution.</p><p>- Conduct regular network audits to ensure adherence to best practices and avoid configuration drift.</p><p>This postmortem provides a detailed account of the web stack outage that occurred on May 13, 2023. It highlights the timeline, root cause, resolution, and corrective measures taken to address the issue. By implementing the suggested improvements, the system can better mitigate the risks associated with network misconfigurations and enhance overall reliability and availability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66398ce0cbab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How an internet service interruption helped me answer: what happens when you type google.com]]></title>
            <link>https://kayongoyongo.medium.com/how-an-internet-service-interruption-helped-me-answer-what-happens-when-you-type-google-com-4e856b982ad2?source=rss-508186115eec------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e856b982ad2</guid>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[web-infrastructure]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Kayongo Samuel Yongo]]></dc:creator>
            <pubDate>Sat, 15 Apr 2023 21:51:46 GMT</pubDate>
            <atom:updated>2023-04-16T17:56:29.065Z</atom:updated>
            <content:encoded><![CDATA[<h3>How an internet service interruption helped me answer: what happens when you type google.com in your browser and press Enter?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKBzQ9SItUUZi_Yr1ilaGA.png" /></figure><h3><strong>Introduction</strong></h3><p>In my earlier years of using browsers, I took the browser for granted just like anyone else. My motto at the time was, <strong>“If it works, it works.” </strong>No need for complicating things. However, one memorable day, as I was trying to curb my boredom by looking up an African horror film called <strong>Shumileta(in 144p)</strong>, a very ominous message greeted me on my screen. <strong>“DNS Server Not Responding”.</strong></p><p>I was mad(and feeling superstitious). Was it that Shumileta had decided to pay the DNS server a visit ? Cause why weren’t they responding? (I was 11, forgive me for my ignorance). The <strong>ISP(Internet Service Provider) </strong>was given a call and I was notified by my older sibling that the network was down which was good news to me. At least the DNS server is safe wherever they are. As soon as the internet was back up, I decided to look up DNS and discovered a whole lot of information on what happens when I try to connect to the internet after pressing <strong>Enter.</strong></p><p>In this blog post, we will explore each step of this process and explain what happens behind the scenes.</p><h3><strong>DNS request</strong></h3><p>DNS stands for Domain Name System, which is a protocol used to translate human-readable domain names (such as <a href="http://www.example.com/">www.example.com</a>) into IP addresses (such as 192.0.2.1) that computers can understand.</p><p>A DNS request is a request made by <strong>a client computer to a DNS server</strong> to obtain the IP(Internet Protocol) address associated with a domain name. When a user types a domain name into their web browser, the browser sends a <strong><em>DNS request to a DNS resolver</em></strong>, which is a<strong> server that is responsible for resolving domain names into IP addresses.</strong> The resolver then sends the request to a <strong><em>DNS root server,</em></strong> which <strong>provides a referral to a top-level domain (TLD) server</strong>. The TLD server then <strong>refers the resolver to the authoritative name server for the domain name.</strong></p><p>The <strong><em>authoritative name server</em></strong> is <strong>responsible for providing the IP address associated with the domain name.</strong> Once the <strong>resolver receives the IP address, it sends it back to the client computer, which then uses the IP address to establish a connection with the web server associated with the domain name</strong>. In this case, it is <a href="http://www.google.com/"><strong>www.google.com</strong></a> .This process of DNS resolution is typically very fast and happens in the background without the user being aware of it.</p><h3><strong>TCP/IP</strong></h3><p>TCP/IP (Transmission Control Protocol/Internet Protocol) is <strong>a set of networking protocols that defines how data is transmitted over the Internet.</strong> It is a fundamental part of the Internet and is used to establish connections between computers, exchange data packets, and manage data flow.</p><p>TCP is <strong>responsible for breaking data into packets, sending them over the network, and reassembling them at the receiving end</strong>. It ensures that data is transmitted reliably, with error-checking and retransmission capabilities to ensure that data is not lost or corrupted during transmission.</p><p>IP, <strong>on the other hand, is responsible for the delivery of packets across the network. It provides addressing and routing functions, allowing packets to be directed to their correct destination.</strong> IP is responsible for the basic transmission of data, while TCP ensures that the data is transmitted reliably.</p><p>After the browser obtains the IP address of the server hosting <a href="http://www.google.com/"><strong>www.google.com</strong></a>, it initiates a connection using TCP/IP.</p><h3><strong>Firewall</strong></h3><p>Before the request reaches the web server, it must first pass through a firewall.</p><p>A firewall is a <strong>network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules</strong>. It <strong>acts as a barrier between a private internal network and the public Internet to prevent unauthorized access and potential attacks.</strong></p><p>There are different types of firewalls, including <strong>network firewalls, host-based firewalls, and application firewalls</strong>. Network firewalls are typically placed at the edge of a network and are used to protect the entire network. Host-based firewalls, on the other hand, are installed on individual devices and protect them from unauthorized access. Application firewalls are used to protect specific applications or services.</p><h3><strong>HTTPS/SSL</strong></h3><p>Assuming the request is legitimate, it reaches the web server. In the case of Google, it is a load-balanced network of servers that distribute the incoming requests. The browser initiates an HTTPS (<em>Hypertext Transfer Protocol Secure</em>) connection to the server.</p><p><strong>HTTPS (Hyper Text Transfer Protocol Secure)</strong> is <strong>a protocol for secure communication over the internet</strong>. It is essentially the same as HTTP, but with an added layer of security provided by <strong>SSL (Secure Sockets Layer) or its successor, TLS (Transport Layer Security).</strong></p><p>When you connect to a website using HTTPS, your browser and the website’s server negotiate a <strong>secure connection. </strong>This negotiation involves a process called the <strong>“SSL handshake”</strong>, which establishes a<strong> shared secret key between your browser and the server</strong>. This key is then used to <strong>encrypt all data sent between your browser and the server, including login credentials, credit card information, and any other sensitive information.</strong></p><p>SSL/TLS works by using <strong>a combination of symmetric and asymmetric encryption</strong>. Symmetric encryption is used to <strong>encrypt data that is transmitted between your browser and the server</strong>, while asymmetric encryption is <strong>used to establish the secure connection and negotiate the shared secret key.</strong></p><p>During the SSL handshake, <strong>the server sends a digital certificate to your browser, which contains the server’s public key.</strong> Your browser uses this public key to <strong>encrypt a random symmetric key, which is then sent to the server.</strong> The server uses its <strong>private key to decrypt the symmetric key and then uses it to encrypt all further communication with your browser.</strong></p><h3><strong>Load-balancer</strong></h3><p>A load balancer is <strong>a tool used in computer networking that helps distribute traffic or workload evenly across multiple servers or resources</strong>. <strong>It acts as an intermediary between clients and servers,</strong> receiving requests from clients and forwarding them to different servers in a<strong> balanced and efficient way.</strong></p><p>Load balancing can help <strong>improve the performance, availability, and scalability of web applications or services by ensuring that no single server becomes overloaded with requests.</strong> The <strong>load balancer monitors the health of each server and distributes the workload based on predefined algorithms, such as <em>round-robin</em>, <em>least connection</em>s, <em>IP hash</em>, or other methods.</strong></p><p>When a client sends a request to the load balancer,<strong><em> </em>the load balancer uses its routing algorithm to select an appropriate server to handle the request.</strong> The load balancer then <strong>forwards the request to the chosen server and returns the server’s response to the client.</strong> If one of the servers fails or becomes unavailable, the load balancer can <strong>automatically redirect traffic to other available servers, ensuring that the service remains accessible and responsive.</strong></p><p>In the case of Google, there are multiple load-balancers located in different data centers around the world.</p><h3><strong>Web Servers</strong></h3><p>The load-balancer forwards the request to a <strong>web server</strong>.</p><p>A web server is <strong>a software program that is responsible for processing and responding to client requests on the World Wide Web (WWW).</strong> It is the <strong>foundational component of web hosting infrastructure and plays a vital role in delivering web content to end-users.</strong></p><p>When a user requests a web page or resource, such as an image or video, <strong>their web browser sends a request to the web server for that resource</strong>. The web server then<strong> processes the request and sends the appropriate response back to the client,</strong> typically in the form of an HTML page that can be rendered in the user’s web browser.</p><p>Web servers can be configured to <strong>serve static or dynamic content</strong>. Static content includes files that are served directly from the server’s file system, such as <strong>HTML, CSS, and image files</strong>. Dynamic content, on the other hand, is generated by a web application running on the server, typically using server-side scripting languages such as <strong>PHP, Ruby, Python, or Node.js.</strong></p><p>Web servers can also be used to host various types of web applications, such as content management systems, e-commerce platforms, or social networks.</p><h3><strong>Application Server</strong></h3><p>In the case of Google, the requested web page is generated by an application server.</p><p>An application server is <strong>a type of software framework that provides a platform for running web-based applications.</strong> It acts as a <strong>middle layer between a web server and a database server, and manages the business logic and data access for the application.</strong></p><p>When a user makes a <strong>request to a web-based application, the request is first handled by the web server</strong>. The <strong>web server then passes the request to the application server, which processes the request and retrieves the required data from the database server</strong>. The application server then <strong>returns the requested data to the web server</strong>, which sends it back to the <strong>user’s browser.</strong></p><h3><strong>Database</strong></h3><p>Finally, the application server retrieves the required data from a database. A database is <strong>a structured collection of data that is stored electronically on a computer system.</strong> It is designed to <strong>efficiently organize, manage, and retrieve large amounts of data.</strong></p><p>When data is added to a database, it is stored in a table or tables. Data can be added, modified, or deleted from a database using a database management system (DBMS) such as MySQL, Oracle, or Microsoft SQL Server. A DBMS is <strong>software that provides an interface between the user and the database, allowing users to create, manage, and interact with the data stored in the database.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1IGNE-B7S8aEUg7F4oiWg.png" /><figcaption>A diagram showing what is happening</figcaption></figure><h3><strong>Conclusion</strong></h3><p>In conclusion, when you type <a href="https://www.google.com/">https://www.google.com</a> into your browser and press Enter, a complex sequence of events occurs. Through my time in ALX, I have had the opportunity to go through some of these steps and appreciate the pioneers of such a system. However, the world keeps on changing. At the moment, I cannot see major flaws with how the internet works, but I wonder, what change will take place in the next 3 to 5 years? We’ll wait and see.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e856b982ad2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>