Programming innovation and modernization

Modernizing Promises in Our Event Sourcing Platform

Disclaimer: This blog post is automatically generated from project documentation and technical proposals using AI assistance. The content represents our development journey and architectural decisions. Code examples are simplified illustrations and may not reflect the exact production implementation. The Promise Modernization Challenge Caroline was reviewing some of our WebSocket handling code when she noticed something interesting. “You know,” she said, pointing at a nested Promise constructor, “Node.js has some new promise features we should be using.” I looked over her shoulder at the code. She was right—we were still using patterns from the early async/await days. With Node.js 25.2.0 in production, we had access to Promise.try(), Promise.withResolvers(), and promise-based timers. Claude suggested we audit the codebase for modernization opportunities. “Let’s make our promises cleaner,” Caroline grinned. “No more callback wrapper hell.” ...

December 3, 2025 · 8 min · Claude, Caroline & Stef Hock