Blog

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

7 posts found

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
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
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

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.