All questions
Showing of 50What happens when you type a URL into a browser and hit Enter?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
The browser walks a fixed sequence of small steps before anything shows. First it parses the URL into scheme, host, and path. It resolves the hostname into an IP address. Then it opens a connection to that server on the right port.
Over that connection the browser sends an HTTP request for the path. The server replies with a status code and usually an HTML body. The browser parses the HTML and finds more resources: stylesheets, scripts, images. It fetches each one, often over the same connection.
Each step adds delay, so a slow page usually has one clear culprit. It might be DNS, connection setup, server time, or heavy assets. Knowing the sequence tells you where to look first.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
How does DNS turn a website hostname into an IP address?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
DNS acts like a phone book that maps names to addresses. Your machine asks a resolver, usually run by your ISP or a public service. The resolver checks its cache first. On a miss it walks the name hierarchy from the top.
It asks a root server, which points to the top-level domain server for .com. That points to the authoritative server for the domain. The authoritative server returns the actual IP address. The resolver hands that back to your program.
This lookup happens before any real request, so it sits on the critical path. A cold lookup can add tens of milliseconds. Caching along the way keeps most lookups fast.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is the difference between TCP and UDP, and when use each?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
TCP gives you a reliable, ordered stream; UDP gives you fast, best-effort messages. TCP sets up a connection, tracks every byte, and resends lost data. It delivers bytes in order, so what you send arrives whole.
UDP just fires packets with no handshake and no retries. Packets can arrive late, out of order, or not at all. In exchange it has almost no overhead and lower latency.
Reach for TCP when correctness matters: web pages, APIs, file transfers, databases. Reach for UDP when speed beats completeness: live video, voice calls, games, DNS lookups. Losing one frame of video beats stalling the whole stream.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What are the common HTTP methods, and what does each one do?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
HTTP methods tell the server what action you want on a resource. Each request names one method up front. The common ones map to reading, creating, updating, and removing.
- GET fetches a resource without changing it.
- POST submits data, often to create something new.
- PUT replaces a resource with the body you send.
- PATCH updates part of a resource.
- DELETE removes the named resource.
- HEAD fetches only the headers, no body.
Picking the right method matters because caches, proxies, and browsers treat them differently. A GET can be cached and prefetched; a POST usually cannot. Using the wrong one causes surprising behavior. It also confuses other developers reading your API.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What do the 2xx, 3xx, 4xx, and 5xx status code families mean?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
Status codes come in families keyed by their first digit. The digit tells you who is happy and who has a problem. You can react to the family even before reading the exact code.
- 2xx means success: the request worked, like 200 OK or 201 Created.
- 3xx means redirect: look elsewhere, the resource moved or is unchanged.
- 4xx means client error: your request was bad, like 404 Not Found or 401 Unauthorized.
- 5xx means server error: the server broke while handling a valid request.
This split guides retries and blame. A 4xx usually will not improve if you retry the same request. A 5xx often will, since the fault sits on the server side.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is the difference between HTTP and HTTPS, and why it matters?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
HTTPS is plain HTTP wrapped inside an encrypted TLS connection. HTTP sends everything as readable text over the wire. HTTPS scrambles it so anyone in between sees only noise.
That layer does three jobs. It hides the content from eavesdroppers. It proves you reached the real server, not an impostor. It detects any tampering with the bytes in transit.
This matters because networks are full of untrusted hops: coffee-shop WiFi, ISPs, proxies. Without HTTPS, passwords and cookies travel in the clear. Browsers now mark plain HTTP pages as not secure, so HTTPS is the default. That is why login pages and payment forms always use it.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is the TCP three-way handshake, and why does it exist?
Answer it yourself first - out loud, or typed below.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Last attempt -
The three-way handshake is how two machines agree to start a TCP connection. It takes three messages before any real data flows. Both sides pick a starting sequence number and confirm they can hear each other.
client -> SYN (let's talk, my seq = x)
server -> SYN-ACK (ok, my seq = y, got your x)
client -> ACK (got your y, let's go)
SYN means synchronize and ACK means acknowledge. The client's SYN proposes its own starting number. The server's SYN-ACK accepts that and proposes its number too. The final ACK confirms the server's number, so both agree.
It exists because TCP promises ordered, reliable delivery. That promise needs both sides to sync sequence numbers first. The handshake also confirms the path works in both directions. The cost is one round trip of delay before you send data.
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓
What is a socket, and what does it represent to your program?
What is the difference between latency and bandwidth, and why care?
What is an IP address, and how does a port identify a process?
What is a cookie, and how does a server use it across requests?
What are the parts of a URL, and what does each part control?
What makes an HTTP method safe versus idempotent, and why does it matter?
When do you use PUT versus PATCH versus POST for updates?
How does TCP guarantee reliable, in-order delivery of a byte stream?
How does a TCP connection close gracefully, and what is the FIN exchange?
What are the steps of a TLS handshake, and what does each achieve?
What is HTTP keep-alive, and why do persistent connections matter?
What is head-of-line blocking, and how does it hurt HTTP/1.1?
How does HTTP/2 improve on HTTP/1.1 for real web applications?
How does browser caching work with Cache-Control, ETag, and revalidation?
What do the Secure, HttpOnly, and SameSite cookie attributes each protect against?
Why does connection pooling matter, and what cost does it save?
How do DNS caching and TTL affect how fast record changes propagate?
What are the common DNS record types, and what is each used for?
How does round-trip time shape the cost of opening a new HTTPS connection?
What is the difference between a 301 and a 302 redirect?
How does a client verify a server's TLS certificate and its chain?
Why does DNS use UDP, and when does it fall back to TCP?
HTTP is stateless, so how do applications keep users logged in?
How does HTTP/2 multiplexing still suffer from TCP head-of-line blocking?
How does HTTP/3 use QUIC over UDP to solve that blocking?
What does TLS 1.3 change, and why is 0-RTT resumption risky?
How does TCP slow start throttle throughput at the start of a connection?
How do Nagle's algorithm and delayed ACK combine to add surprising latency?
What is TCP TIME_WAIT, and how can it exhaust ports at scale?
How does ephemeral port exhaustion happen under heavy outbound connection churn?
What is the bandwidth-delay product, and why does it cap throughput on long links?
How does chunked transfer encoding stream a response of unknown length?
How do you make a non-idempotent request safe to retry?
How do you design retries with backoff and jitter to avoid retry storms?
How do connect timeouts and read timeouts differ, and how do you pick them?
What race occurs when a client reuses a keep-alive connection the server just closed?
How do you size a connection pool, and what breaks when it saturates?
How does a cache stampede happen, and how do you prevent it?
How does a WebSocket connection upgrade from an ordinary HTTP request?
How do WebSockets, Server-Sent Events, and long polling compare for real-time updates?
How does TCP flow control use the receive window to apply backpressure?
How do MTU and MSS affect large transfers, and what is path MTU discovery?
How do you diagnose a slow request across DNS, TCP, TLS, and server time?
This answer is part of Pro.
The full written answer, with the trade-offs and follow-ups an interviewer will probe.
No matches
Try a different filter or search term.
Networking for Developers cheatsheet
- 30-second mental model01
- DNS: name -> IP02
- TCP vs UDP03
- TLS / HTTPS04
- HTTP versions05
- HTTP methods06
- Status codes: what to do about each07
- HTTP caching08
- Cookies09
- Sockets (the API)10
- Connection pooling11
- Common pitfalls12
- + 6 more inside
43 of 50 Networking for Developers answers are in Pro.
Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.
- Full answers + code
- AI explanations, simpler or deeper
- 1,000 AI credits / month
- Cancel anytime
Change topic
Pick a different technology or stack. Your current topic stays put until you choose a new one.
MEAN
MongoDB, Express, Angular, Node.jsMERN
MongoDB, Express, React, Node.jsDjango
Python Full-Stack DevelopmentRuby on Rails
Convention over ConfigurationServerless on AWS
Serverless Architecture on AWSInterviewers also test these - they're common to every stack, whichever one you picked above.
Flutter Mobile
Flutter Cross-Platform Mobile DevelopmentInterviewers also test these - they're common to every stack, whichever one you picked above.
Spring Boot
Enterprise Java Development.NET
Microsoft EcosystemVue
Vue.js, Vite, TypeScript, Tailwind, Node.jsGo Backend
Golang, gRPC, PostgreSQL, Redis, RabbitMQInterviewers also test these - they're common to every stack, whichever one you picked above.
FastAPI
Python, FastAPI, SQLAlchemy, PostgreSQLReact Native
React, TypeScript, Redux, FirebaseiOS Native
Swift, SwiftUI, UIKit, FirebaseAndroid Native
Java, Jetpack Compose, FirebaseDevOps / Platform
Docker, Kubernetes, Terraform, CI/CDInterviewers also test these - they're common to every stack, whichever one you picked above.
AI Engineer
LLMs, RAG, Agents, EvalsAI-Powered Developer
Claude Code, Copilot, Agentic WorkflowsCore SWE Interview Prep
Data structures, algorithms, OS, concurrency, networking, gitInterviewers also test these - they're common to every stack, whichever one you picked above.
Interviewers also test these - they're common to every stack, whichever one you picked above.