All articles
In-depth articles on backend, data, system architecture and software development.
All articles
In-depth articles on backend, data, system architecture and software development.
In-depth articles on backend, data, system architecture and software development.
8 articles
A timed-out request may have succeeded, failed or never arrived. How a receipt that commits with the order, plus If-Match versions, makes every retry safe, and why you need both.
A URL ending in /orders/1042 tells strangers more than you meant. Why every addressable row gets a bigint for joins and a UUIDv7 for the outside, and what that second id really costs.
Thirteen services share one Postgres cluster, yet none can read another's tables. What that isolation buys, what a shared cluster quietly takes back, and how a saga with planned compensations replaces the JOIN.
The gateway gave up after a minute; the gRPC call underneath had no deadline and kept working for a client that was gone. Three ordered questions pick REST, gRPC or Kafka, and each transport's failure mode tells you what to guard.
One commit can change a gRPC contract and every caller, but the deploys still land one at a time. Here is how thirteen NestJS services share one Nx workspace and still boot, ship and evolve alone.
The outbox table is the easy part. Lost and duplicated events come from the relay and the consumer: who claims a row, what happens when a sender stalls, and how an inbox spots the same event twice.
Vector search is the easy part of RAG. The hard part is what happens when nothing matches, how an answer proves its source, and how the index stays fresh, all inside Postgres.
A copied refresh token works exactly like the real one, so the server can't tell user from thief. How rotation and reuse detection make the second holder trip an alarm, from real code, plus the gaps it still leaves.
You have seen all 8 articles.
All articles
In-depth articles on backend, data, system architecture and software development.