funcDistributedSystems()[]Article
Locks, consensus, delivery guarantees, and the failure modes unique to systems that span machines.
Distributed Systems
Idempotent Consumers in Go: Handling Duplicate Messages Safely
Why message consumers must assume duplicate delivery, and how to implement deduplication in Go and PostgreSQL without a race condition.
12 min
Distributed Systems
Distributed Locks in Go: Redis, PostgreSQL and the Problems You Need to Understand
Implementing distributed locks in Go with Redis and PostgreSQL advisory locks — lock ownership, TTLs, fencing tokens, and why a naive SET-based lock is unsafe.
13 min