Designing the Ledgers API with Optimistic Locking | Dark Hacker News