Tokyo Notes

The cost of a retry budget

November 20, 2026

A retry is cheap for one caller and expensive for the system. When a dependency slows down, synchronized retries multiply load at exactly the moment the dependency can least afford it. The usual fix is a token budget shared across a request path, with a small amount reserved for interactive traffic.

The subtle part is accounting: a retry that succeeds still consumed budget, and a retry that fails should not be allowed to consume the budget of the next request. Measure both, or the budget becomes a suggestion.

Measuring queue depth without lying to yourself

November 11, 2026

Scraping queue depth every fifteen seconds gives you an average that hides the bursts. If the queue drains faster than the scrape interval, the metric can look healthy while callers are timing out. Event-based sampling or a short-window histogram is usually worth the extra cardinality.

If the queue is empty every time you look, either it is always empty or you are looking at the wrong times.

A short note on clock skew

October 30, 2026

Leases, TTLs, and log ordering all quietly assume clocks that are close enough. When NTP drifts, the symptom is often a timeout or a split-brain that looks like a network fault. Check the offset before rewriting the consensus layer.