newest submissions : multi
•
2026-03-21 14:21
Designing a “View Once” Secret Sharing System: Edge Cases, Race Conditions, and TTL Pitfalls
I worked on a small system with a simple requirement: Turns out, this is less about UI and more about consistency and race conditions. The Core Problem You need to guarantee: Exactly one successful read No access after consumption Expiry if never opened Correct behavior under refresh, retries, and concurrent requests Race Conditions If two requests hit at the same time (double-click, bot, prev...