phatboislym

web stack (0)

Jan 8th, 2023
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | Writing | 0 0
  1. When you type https://www.google.com into your browser and press Enter, a series of events occurs that ultimately allows you to interact with the Google search engine. Here is a breakdown of what happens:
  2.  
  3. DNS request: The first step in this process is the DNS (Domain Name System) request. When you type in a URL like https://www.google.com, your computer needs to know the IP address of the server where the website is hosted. It does this by making a DNS request to a DNS server. The DNS server looks up the IP address associated with the domain name and sends it back to your computer.
  4.  
  5. TCP/IP: Next, your computer establishes a TCP (Transmission Control Protocol) connection with the server. TCP is a set of rules that govern how data is transferred over the internet. It ensures that data is transferred reliably and in the correct order.
  6.  
  7. Firewall: If the server has a firewall set up, the connection request will need to be approved by the firewall before it can be established. The firewall checks the request against a set of rules to determine whether it should be allowed through or blocked.
  8.  
  9. HTTPS/SSL: Once the connection is established, the browser sends an HTTPS (Hypertext Transfer Protocol Secure) request to the server. HTTPS is a secure version of the HTTP protocol that is used to transfer data on the web. It encrypts the data being transferred to prevent it from being intercepted by third parties.
  10.  
  11. Load-balancer: If the server has a load-balancer set up, the HTTPS request will be routed through it. The load-balancer distributes incoming requests across a group of servers to balance the load and ensure that the system remains stable and efficient.
  12.  
  13. Web server: The request is then forwarded to the web server, which processes the request and sends back the appropriate response. The web server retrieves the requested webpage and any associated resources (such as images, videos, or other files) and sends them back to the browser.
  14.  
  15. Application server: If the webpage requires dynamic content (content that is generated in real-time), the request may be forwarded to an application server. The application server processes the request and generates the dynamic content, which is then sent back to the web server to be included in the final webpage.
  16.  
  17. Database: If the webpage requires access to data stored in a database, the application server may need to request this data from the database server. The database server retrieves the requested data and sends it back to the application server, which includes it in the final webpage.
  18.  
  19. Finally, the fully-assembled webpage is sent back to the browser, which renders it for the user to interact with. And that's what happens when you type https://www.google.com into your browser and press Enter!
Advertisement
Add Comment
Please, Sign In to add comment