33 articles  ·  Go  ·  Backend  ·  Performance

Go & web development, explained by example

Practical tutorials on Go, backend architecture, performance and DevOps — every post built around code you can run.

More articles

How to Test Go Code That Calls an LLM

AI Engineering

How to Test Go Code That Calls an LLM

Non-determinism does not have to mean untestable. Wrapping the model behind an interface, faking it in unit tests, golden files for prompt assembly, and the small…

 ·  10 min

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