Dev

Testing Concurrent Go Code with synctest

Testing Concurrent Go Code with synctest

Stop sleeping in concurrent Go tests.

Testing concurrent Go code has always required a bit of discipline. Goroutines are cheap, channels are simple, and context cancellation is idiomatic — background workers and timers are everywhere in real Go services.

Idempotency in Distributed Systems That Actually Works

Idempotency in Distributed Systems That Actually Works

Stop duplicate side effects

Idempotency in distributed systems is the property that saves you after the network lies, the queue retries, the client panics, and the operator hits replay. In production systems, duplicate delivery is normal. Duplicate side effects are the bug.