8 articles on backend, written by the NEXIT team. Practical, no-hype guides for business owners and developers.
Anvarbek Xaydarov
A token bucket lets bursts through and still caps your average traffic. Here's how it works, a short code example, and the traps that bite in production.
A popular cache key expires and thousands of requests hit your database together. Here's how a cache stampede happens and three ways to stop one.
A retried request shouldn't create a second order or a second charge. Here's how a simple idempotency key makes any write endpoint safe to call twice.
A list page that loads fine with ten rows can crawl with a thousand. Here's how the N+1 query problem happens, how to spot it, and how to fix it.
Retrying failed requests sounds harmless until every client does it at once. Here's how backoff and jitter keep a small hiccup from becoming an outage.
A lost update happens when two requests read the same row and both write back. Here's how optimistic locking with a version column stops it cleanly.
Rate limiting looks simple until a burst of traffic hits. Here's how the token bucket and leaky bucket algorithms work, and which one fits your API.
A retried request shouldn't charge a customer twice. Here's how idempotency keys work, why networks make them necessary, and a small server example.