Skip to content
Commitwise
Menu

Networking

How data gets from an app to a server and back: TCP/IP, DNS, HTTP versions, TLS, caching and real-time connections.

10 lessons
0 of 10 completed
  1. 01

    Network layers, IP addresses and ports

    How data actually travels from an app to a server. Covers the network layers and what each one adds, packets and the MTU, IPv4 and IPv6 addresses, private ranges, CIDR and NAT, ports and sockets, the server that only listens on localhost, and port exhaustion, as interviews and production ask about them.

    8–30 min beginner Junior & senior

  2. 02

    DNS

    How a name like api.shop.example becomes an IP address. Covers recursive resolvers, root, TLD and authoritative servers, caching and TTLs, the record types (A, AAAA, CNAME, MX, TXT, NS, CAA, HTTPS), the missing trailing dot, no CNAME at the apex, negative caching, moving a domain without downtime, and Kubernetes' ndots:5.

    8–30 min beginner Junior & senior

  3. 03

    TCP vs UDP

    The two transport protocols under almost everything. Covers the TCP handshake, acknowledgements, retransmission, flow and congestion control, why latency beats bandwidth, connection refused vs timed out, TCP as a byte stream and message framing, Nagle, keepalives and idle timeouts, and when UDP is the better choice for calls, games, DNS and QUIC.

    8–30 min beginner Junior & senior

  4. 04

    HTTP: methods, status codes and headers

    What an HTTP request and response really look like. Covers methods and which ones are safe and idempotent, the GET that deleted data, status codes from 200 to 504 (401 vs 403, 302 vs 307, 502 vs 503 vs 504), headers like Host, Content-Type and Content-Length, the JSON body sent as text/plain, compression, and request smuggling.

    7–30 min beginner Junior & senior

  5. 05

    HTTP/1.1, HTTP/2 and HTTP/3

    How each HTTP version moves requests over the network and why the next one was needed. Covers keep-alive and the six-connection limit, head-of-line blocking, HTTP/2 streams, header compression and the death of server push, a new client per request that throws multiplexing away, QUIC and HTTP/3 over UDP, connection migration, ALPN and Alt-Svc, and 0-RTT replay.

    7–30 min intermediate Junior & senior

  6. 06

    TLS and HTTPS

    What TLS protects and how. Covers encryption, integrity and authentication, the TLS 1.3 handshake, forward secrecy, what an eavesdropper still sees, certificates and the chain of trust, the missing intermediate that works on your Mac and fails on Android, expiry and shorter lifetimes, certificate pinning, HSTS, mutual TLS, and where to terminate TLS.

    7–30 min intermediate Junior & senior

  7. 07

    HTTP caching

    How browsers, apps and CDNs reuse responses. Covers Cache-Control, max-age, no-cache vs no-store, heuristic caching when there are no headers, ETags and 304 Not Modified, private vs shared caches, s-maxage, Vary, stale-while-revalidate, versioned asset URLs, caching in iOS and Android clients, and the CDN bug that shows one user's data to another.

    7–30 min intermediate Junior & senior

  8. 08

    Real-time: WebSockets, SSE and long polling

    How a server sends updates the moment they happen. Covers polling and long polling with cursors, reconnect storms and jitter, Server-Sent Events with EventSource, event IDs and automatic resume, proxy buffering, streaming LLM responses, the WebSocket upgrade, frames and heartbeats, authentication and the missing CORS check, scaling connections, and why mobile apps still need push notifications.

    7–30 min intermediate Junior & senior

  9. 09

    Cookies, CORS and sessions

    How a website remembers who you are and which other sites may talk to it. Covers Set-Cookie and its attributes, HttpOnly, Secure and SameSite (Lax by default), sites vs origins, the same-origin policy, CORS headers, simple requests vs preflights, credentials, the misconfigurations that leak data, server sessions vs tokens, where to keep tokens on the web and on mobile, and CSRF.

    7–35 min intermediate Junior & senior

  10. 10

    What happens when you type a URL

    The classic interview question, answered layer by layer. Covers URL parsing and HSTS, browser caches and service workers, DNS, TCP and TLS with real timings, HTTP/2 and HTTP/3, the CDN edge, load balancers, reverse proxies and the application, request tracing, and how the browser turns HTML, CSS and JavaScript into pixels, including async and defer, plus what's different for a mobile app.

    7–30 min intermediate Junior & senior

Esc

Type to search the whole site.