A callback HTTP request a service sends to your URL when an event occurs.

Webhooks push events instead of polling

Because the call comes from outside, delivery becomes at-least-once, so a receiver must tolerate retries and prove the origin rather than assume it is safe. One event, one callback A webhook turns the usual direction of an API call around: instead of a client polling for fresh data, the provider sends an HTTP request to a URL you registered whenever an event happens. The payload is a small, self-contained description of what changed, delivered straight to an endpoint that is often on an entirely different server. Because the publisher initiates the call, the subscriber stops reopening connections and simply waits for something to arrive, which is how delivery can feel nearly instant without continuous polling. ...

November 18, 2027 · 5 min · XB Field Notes
A held connection steers new work elsewhere; weights change the comparison between peers.

Least connections measures occupied connections, not every kind of load

Least-connections balancing chooses a peer using active connection counts, with the implementation’s weighting and tie rules. In nginx, least_conn accounts for server weights and uses weighted round robin among equally suitable peers. This can help when requests occupy connections for different durations. It is still a connection-based measurement, not direct knowledge of CPU, memory pressure, queued jobs, or database contention. ...

November 11, 2027 · 5 min · XB Field Notes
Observe-decide-act boxes beside the message: Frame every part, count before commit.

A multipart boundary splits the body into parts

Multipart/form-data is one HTTP representation containing several independently described parts. A client chooses a boundary parameter, places that value in the Content-Type header, and writes matching delimiter lines into the body. The arrangement lets one request carry text fields and binary files without pretending that all bytes share one JSON or text grammar. The boundary is framing metadata, not a security decision or a file-type detector. ...

November 10, 2027 · 7 min · XB Field Notes
Observe-decide-act boxes beside the message: Frame each event, resume by policy.

Server-Sent Events stream one way

Server-Sent Events carry server-to-client updates in a streaming HTTP response. They do not turn HTTP into a bidirectional socket, and automatic reconnection does not make delivery durable. Treat event framing, connection lifetime, retained history, and application acknowledgment as separate contracts. A response contains framed text events An SSE response uses text/event-stream and UTF-8. Fields are line-based, and a blank line ends a block. Multiple data lines within one event are joined with newline characters. A colon-prefixed comment is ignored as event data, so it can carry a heartbeat without triggering an application message. ...

November 9, 2027 · 6 min · XB Field Notes
An attack where one HTTP request travels hidden inside another for the backend.

Request smuggling desyncs the proxy chain

An HTTP/1.1 request does not describe where it ends. Its boundary is computed — from Content-Length or the chunked coding — and every hop computes it independently. Request smuggling is what happens when two hops compute different answers from the same bytes. ...

October 19, 2027 · 5 min · XB Field Notes
A cache that revalidates with the origin before deciding whether to serve or replace a stale entry.

Cache invalidation is a push, not a prayer

Changing an origin does not notify every cache that already holds its response. Invalidation is about controlling which stored copies remain eligible for reuse, not merely updating a file. A reliable release distinguishes expiration, validation, targeted removal, and choosing a new URL. These mechanisms have different scopes, and none remotely erases every copy a reader has downloaded. ...

August 5, 2027 · 5 min · XB Field Notes
A header contract that admits trusted cross-origin readers.

CORS preflight checks a browser request before it is sent

A CORS preflight asks whether a browser may send a particular cross-origin request. It describes the requesting origin, intended method, and relevant header names. The browser evaluates the reply before sending that request, unless a valid preflight cache entry already grants permission. CORS also governs whether JavaScript can read the actual response. These are related checks, but neither replaces application authentication or authorization. ...

July 23, 2027 · 5 min · XB Field Notes
Observe-decide-act boxes beside the message: Return the truth, guide the reader.

A 404 page answers honestly

A 404 response has two audiences. Software needs an accurate status; a person needs a useful next step. A beautifully designed error page cannot compensate for a false 200, and a correct status does not excuse an inaccessible page. Keep both parts of the response truthful without turning a missing address into a business outage. ...

July 3, 2027 · 6 min · XB Field Notes