All topics

Networking

How data moves across the internet, from packets to HTTPS and real-time apps.

9 pages, free to read

  1. 1

    OSI & TCP/IP models

    Beginner

    Network models split communication into layers, each solving one problem and relying only on the layer below, so a web request becomes nested envelopes: HTTP inside TCP inside IP inside an Ethernet or Wi-Fi frame.

    8 min read
  2. 2

    TCP vs UDP

    Beginner

    TCP delivers every byte reliably and in order at the cost of extra round trips; UDP just sends packets fast and leaves reliability to the application.

    9 min read
  3. 3

    HTTP & HTTPS

    Beginner

    HTTP is the request-response language of the web (a method, a path, headers and a body in; a status code, headers and a body out), and HTTPS is the same HTTP sent inside an encrypted TLS connection.

    10 min read
  4. 4

    REST vs GraphQL

    Intermediate

    REST exposes many resource URLs and uses HTTP methods and status codes for meaning, while GraphQL exposes one endpoint with a typed schema where the client asks for exactly the fields it needs.

    10 min read
  5. 5

    DNS

    Beginner

    DNS is the internet's distributed, heavily cached phone book that turns names like example.com into IP addresses by asking root, TLD and authoritative servers in turn.

    9 min read
  6. 6

    TLS & encryption in transit

    Intermediate

    TLS uses certificates and a key exchange to prove the server's identity and agree on a fresh shared key, then encrypts and authenticates every byte with fast symmetric encryption.

    10 min read
  7. 7

    Load balancing

    Intermediate

    A load balancer spreads incoming requests across many healthy servers using an algorithm such as round robin or least connections, so the service scales horizontally and survives server failures.

    10 min read
  8. 8

    CDNs & edge caching

    Intermediate

    A CDN keeps copies of your content on servers in hundreds of cities so users are served from somewhere nearby, cutting latency and taking most of the load off your origin.

    9 min read
  9. 9

    WebSockets & real-time communication

    Intermediate

    WebSockets upgrade one HTTP connection into a long-lived, two-way channel so the server can push messages instantly, instead of the client repeatedly asking whether anything changed.

    9 min read