Designing the Ledgers API with Optimistic Locking | Hacker News Reader