Implement two-phase commit (2pc) | Hacker News Reader