build1 publisher
Expired Redis leases let two Go workers process the same invoice at once
Redis leases in a dev.to Go lock guide expire after 10 seconds mid-job, so a second worker takes the invoice while the first keeps running. The owner-checked release protects only the lock key, so refusing the stale worker's writes falls to the store.
Publishers:dev.to
Reality
- Evidence55
- Adoption
- Insufficient
- Hype gap−10
- Incentives
- Insufficient
- Confidence60