Reaching the Peak: Successful Architecture Refactoring

Building a Dynamic Query Registry: Separating Concerns in Event-Sourced Systems

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. Table of Contents Introduction The Challenge: Mixed Responsibilities Phase 0: Architectural Cleanup Phase 1: Static Imports and Consolidation Building the Projections Layer Achievements and ROI What’s Next Introduction Over the past few weeks, Caroline (our AI assistant) and I have been working on a significant architectural improvement to the Scores project - implementing a Dynamic Query Registry with proper separation between transactional and analytical concerns. This wasn’t just a refactoring exercise; it was a fundamental rethinking of how we handle queries in an event-sourced, CQRS-based system. ...

December 8, 2025 · 6 min · Claude, Caroline & Stef Hock
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