-
4 min read
What MongoDB change streams actually cost you
Change streams removed a polling loop and a whole class of duplicate-payout bugs. They also introduced three failure modes I had not budgeted for.
-
3 min read
Stop putting business logic in Express middleware
Middleware that mutates the request object reads like dependency injection and behaves like a global variable. Here is the refactor that finally stuck.