DEV Community

Fena Onditi
Fena Onditi

Posted on

What happens when you enter a domain name (e.g., google.com) into a browser?

Flow of Request for https://www.google.com

  1. DNS Resolution:

    • Browser initiates DNS resolution to translate "www.google.com" to an IP address. Resolved IP address is returned.
  2. TCP/IP Connection:

    • Browser establishes a TCP/IP connection with the web server's IP address on port 443 (HTTPS).
  3. HTTPS/SSL Encryption:

    • Data between browser and server is encrypted via HTTPS/SSL. SSL handshake ensures secure communication.
  4. Firewall Inspection:

    • Encrypted traffic passes through a firewall for security policy checks and threat protection.
  5. Load Balancer:

    • Connection is routed through a load balancer for traffic distribution across multiple web servers.
  6. Web Server:

    • Load balancer forwards the connection to a web server hosting the Google website. Web server handles HTTP requests and connections.
  7. Application Server:

    • Web server delivers the request to an application server, which processes the request and generates a response. Application server may execute server-side scripts and interact with a database.
  8. Database:

    • Application server may request data from a database for information required in the response.
  9. Web Server (Response):

    • Application server returns the response to the web server.
  10. Load Balancer (Response):

    • Load balancer receives the response, typically a dynamic one from the application server.
  11. TCP/IP (Response):

    • Load balancer routes the response back through the TCP/IP stack.
  12. Firewall (Response):

    • The firewall inspects the incoming response for security compliance.
  13. Browser (Response):

    • The firewall returns the response to your browser, which decrypts and renders the content, allowing you to interact with the Google website. Image description

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay