← CodeClarityLab Home
Browse by Category
+ added · updated 7d
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
HTTP/2 Server Push & Early Hints
HTTP/2 Server Push lets a server proactively send assets (CSS, JS, fonts) before the browser requests them. 103 Early Hints is its practical successor — sending Link preload headers before the full response is ready.
1mo ago networking intermediate
How CDNs Work
CDNs use Anycast routing and distributed edge PoPs to serve content from the nearest location — reducing latency from 300ms to 5ms for cached responses.
2mo ago networking intermediate
HTTP Request-Response Cycle
The complete lifecycle of an HTTP request — DNS resolution, TCP connection, TLS handshake, request transmission, server processing, and response delivery.
2mo ago networking intermediate
Latency vs Bandwidth
Latency is delay per request (physics + processing); bandwidth is throughput — high bandwidth does not fix high latency for small interactive responses.
2mo ago networking intermediate
Long Polling vs SSE vs WebSockets PHP 5.0+
Long polling (HTTP hacks), SSE (one-way push over HTTP), WebSockets (full-duplex) — use SSE for server-to-client only, WebSocket for bidirectional.
2mo ago networking intermediate
NAT & Port Forwarding
NAT maps multiple private IPs to one public IP — understanding NAT explains why ngrok is needed for local webhook testing and how Docker port mapping works.
2mo ago networking intermediate
OpenID Connect (OIDC) PHP 7.0+
An identity layer on top of OAuth 2.0 — while OAuth 2.0 handles authorisation (access to resources), OIDC adds authentication (who the user is) via the ID token.
2mo ago networking intermediate
SSL/TLS Certificate Types
DV (automated domain validation), OV (organisation verified), EV (deprecated green bar), Wildcard — Let's Encrypt provides free DV with automated 90-day renewal.
2mo ago networking intermediate
TCP vs UDP
TCP provides reliable ordered delivery with connection setup overhead. UDP is connectionless and faster but unreliable — choose based on whether loss or latency is more acceptable.
2mo ago networking intermediate
Diagram: CORS CORS PHP 5.0+
Cross-Origin Resource Sharing — the browser mechanism that controls which cross-origin requests are permitted, using HTTP headers negotiated between client and server.
2mo ago networking intermediate
Diagram: DNS Record Types DNS Record Types
DNS records map domain names to various targets — A (IPv4), AAAA (IPv6), CNAME (alias), MX (mail), TXT (verification/SPF), SRV (services), and NS (nameservers).
2mo ago networking intermediate
Diagram: DNS Resolution DNS Resolution
The process of translating a human-readable domain name into an IP address via a hierarchy of DNS servers.
2mo ago networking intermediate
Diagram: Email Deliverability Email Deliverability PHP 5.0+
The technical requirements for email reaching inboxes rather than spam folders — SPF, DKIM, DMARC, and sending reputation work together to authenticate your emails.
2mo ago networking intermediate
Diagram: HTTP Methods — Idempotency & Safety HTTP Methods — Idempotency & Safety
Safe methods (GET, HEAD) have no side effects. Idempotent methods (GET, PUT, DELETE, HEAD, OPTIONS) produce the same result regardless of how many times they are called.
2mo ago networking intermediate
Diagram: IPv6 for Web Developers IPv6 for Web Developers
The successor to IPv4 with 128-bit addresses — effectively unlimited address space, mandatory in modern infrastructure, with some practical differences for web applications.
2mo ago networking intermediate
Diagram: OAuth 2.0 OAuth 2.0 PHP 7.0+
An authorisation framework that allows applications to obtain limited access to user accounts on third-party services without exposing passwords.
2mo ago networking intermediate
Diagram: Reverse Proxy vs Load Balancer Reverse Proxy vs Load Balancer
A reverse proxy forwards client requests to backend servers, adding SSL termination, caching, and compression. A load balancer distributes traffic across multiple backends for scalability.
2mo ago networking intermediate
Diagram: TCP/IP Model TCP/IP Model
The four-layer model (Link, Internet, Transport, Application) that describes how data is packaged, routed, and delivered across the internet.
2mo ago networking intermediate
Diagram: TLS Handshake TLS Handshake
The negotiation process between client and server that establishes an encrypted HTTPS connection, agreeing on cipher suites and exchanging keys.
2mo ago networking intermediate
Diagram: WebSocket Protocol WebSocket Protocol PHP 7.0+
A full-duplex communication protocol over a single TCP connection — the client and server can both send messages at any time without polling.
2mo ago networking intermediate
✓ schema.org compliant