This repository acts as an entry point to a set of production-ready backend patterns I frequently use when building Node.js microservices.
The actual implementations live as GitHub Gists to keep each concept focused, reviewable, and easy to discuss.
Ensuring the same request does not produce duplicated side effects.
🔗 https://gist.github.com/mostafasayed/155137f22e6244725077a820d5886b6a
Handling transient failures without overloading dependencies.
🔗 https://gist.github.com/mostafasayed/bdde10e078e0be7e7decae1f9c81badc
Preventing cascading failures when dependencies are unhealthy.
🔗 https://gist.github.com/mostafasayed/46eb26d8ca2ad93981fbf2a5328805c5
Tracing requests across services.
🔗 https://gist.github.com/mostafasayed/3e5fc7ae88afd654e4822dde7036b667
Ensuring atomic operations using QueryRunner.
🔗 https://gist.github.com/mostafasayed/c56bc106fe4cc4ed6c8dece497e7d3f6
Clean transaction boundaries using $transaction.
🔗 https://gist.github.com/mostafasayed/983e0a4fb96d2c25b4007f18b8695213
- One concept per file
- Clean version history
- Easy to reference in interviews and discussions
This repo is intentionally minimal and acts as a navigation layer.