16 articles

Backend Development

Practical Go and web development tutorials: concurrency, performance, backend architecture, testing and DevOps — with runnable code examples.

More articles

Prompt Caching: The Cheapest Win in Your LLM Bill

AI Engineering

Prompt Caching: The Cheapest Win in Your LLM Bill

Prompt caching is a prefix match, and one stray timestamp can silently disable it. How cache breakpoints, TTLs and the usage fields actually work — and how to build…

 ·  10 min

Rate Limiting Go APIs with golang.org/x/time/rate

Go Programming

Rate Limiting Go APIs with golang.org/x/time/rate

Protect your Go HTTP APIs with token bucket rate limiting: per-client limiters, middleware, the standard rate limit headers, client-side throttling and when to move…

 ·  9 min