Blog

Deep-dive guides on AI agents, agent orchestration, MCP, and developer tooling.

12 posts found

Data Formats

Why Your 64-Bit IDs Break in JSON: Doubles, 2^53 and the String Fix

JSON allows integers of any size, but most parsers store them as IEEE 754 doubles, so 64-bit IDs above 2^53 come back silently rounded. Here is why it happens, which runtimes do it, and the wire contract that prevents it.

December 1, 2026 · 8 min read
Security

CORS Explained: Preflight, Credentials, and What It Doesn't Protect

CORS is a browser read permission, not a gate in front of your API. How simple and preflighted requests differ, why credentials kill the wildcard, and the Origin-reflection bug that leaks user data.

November 24, 2026 · 9 min read
API Design

HTTP Caching Explained: Cache-Control, ETag and 304 Not Modified

Most caching bugs come from mixing up two questions: how long a cache may reuse a response, and how it cheaply checks once that time is up. Here is how Cache-Control, ETag, Vary and 304 Not Modified actually fit together.

November 23, 2026 · 10 min read
Data Formats

JSON Patch vs JSON Merge Patch: Picking a PATCH Format That Won't Lose Data

JSON Merge Patch reads like the document but cannot set a null or edit one array element; JSON Patch can, at the cost of atomicity rules and index gotchas. Here is how each one breaks and when to use which.

November 21, 2026 · 10 min read
API Design

Retries Done Right: Exponential Backoff, Jitter and Retry-After

Naive retry loops turn small blips into outages. How exponential backoff, full jitter, Retry-After, idempotency and retry budgets fit together, with worked numbers and a TypeScript helper.

November 13, 2026 · 10 min read
API Design

REST vs. RPC-Style API Design: The Tradeoffs Nobody Puts in the Style Guide

Most "REST APIs" in production are actually resource-shaped RPC. Here is what you really give up or gain by choosing REST, JSON-RPC, gRPC, or tRPC for a given piece of your system.

September 28, 2026 · 6 min read
API Design

Designing Sane Pagination: Why Offset Breaks Under Writes and Keyset Fixes It

LIMIT/OFFSET pagination silently duplicates and skips rows the moment writes happen concurrently, and gets slower the deeper a client pages. Here is why, and how keyset (cursor) pagination avoids both problems.

September 20, 2026 · 6 min read
API Design

OpenAPI Spec-Driven Development: The Contract That Keeps Your API and Docs From Diverging

Code-first and spec-first OpenAPI workflows fail in different ways, and neither prevents contract drift unless linting and contract tests are actually wired into CI.

September 7, 2026 · 6 min read
API Design

Webhook Signature Verification: How Stripe, GitHub, and Svix Actually Stop Forged Events

A webhook endpoint is just a public URL that runs code when it receives a POST, so anyone who finds it can send you fake events unless you verify the signature correctly, including the two checks most implementations skip.

August 11, 2026 · 6 min read
Data Formats

JSON Schema in Practice: What allOf, oneOf, and additionalProperties Actually Do

JSON Schema looks like static typing for JSON, but its composition keywords follow evaluation rules that trip up most people writing their first real-world schema. Here's the mental model that actually holds up.

August 10, 2026 · 6 min read
API Design

Idempotency Keys: Why 'Just Retry the Request' Breaks in Production

A dropped connection makes a client retry a POST that already succeeded, and without an idempotency key that retry becomes a duplicate charge, not a safety net. Here's how the pattern actually works and where naive implementations fail.

July 15, 2026 · 6 min read
Data Formats

NDJSON vs JSON Arrays for Streaming: Why the Trailing Bracket Is the Problem

A JSON array requires seeing the closing bracket before any of it is valid, which is exactly what breaks when you stream millions of records. Newline-delimited JSON fixes that by making every line a complete, independent document.

July 13, 2026 · 6 min read

New posts by email

One email when a new post goes up. No other mail; unsubscribe in one click.

We store your email only to send new posts. See the privacy policy.