magical scriptures
technical notes
cs lore for when ‘claude said it’s fine’ isn’t enough.
gRPC: how a local call becomes a network request
gRPC turns a service definition into generated client and server code, then sends typed messages over HTTP/2. Here is what the stub hides and what it costs.
— likes— views— notes9 min readLoad balancing: what a load balancer does and costs
A load balancer puts one address in front of a pool of servers. It adds capacity and hides failures, but it also adds another network step and another component to run.
— likes— views— notes8 min readCircuit breakers: when to stop calling a service
How a circuit breaker stops calls to a failing dependency, which failures trip it, and what changes when the breaker closes again.
— likes— views— notes6 min readRequest timeouts: how long to wait, and when to retry
How long a request timeout should be, how to set that number from real latency, and why retrying an overloaded service makes the outage worse.
— likes— views— notes5 min readIdempotency and duplicate requests
How application programming interfaces (APIs) handle repeated requests with idempotency keys and a database uniqueness constraint.
— likes— views— notes4 min readText embeddings and cosine similarity
An introduction to embeddings and cosine similarity, with a small vector sketch and a runnable example.
— likes— views— notes4 min readHTTP caching and stale responses
How fresh and stale responses work, with Cache-Control rules and a version check that can avoid a download.
— likes— views— notes4 min read