Skip to content
fellowcoder

The cache you think you have

Your hit rate is 4% and you can't see why. A field guide to the invalidations nobody writes down — in HTTP caches, in Postgres, and in LLM prompt prefixes.

Article6 min

Full-text search in Postgres, without Elasticsearch

Weighted tsvectors, generated columns, ranked results, highlighted snippets, and typo tolerance — a complete search feature in one table.

Tutorial7 minbeginner

Streaming is a state machine, not a string

The token loop is the easy part. Reconnects, partial JSON, backpressure, and the abandoned-request problem are where streaming implementations actually break.

Article7 min

Postgres is probably enough

Before you add Redis, Elasticsearch, a vector database, and a queue: Postgres does all four adequately, and 'adequately' is the correct target until it isn't.

Article6 min