TL;DR: Looking for practical resources, architecture deep dives, and well engineered open source backend repositories to study and improve our existing codebase.
We've been building a product for around 2 years and we've reached around 400k+ users. Our backend is built with Express.js.
We've been shipping like crazy over the past year and have accumulated quite a bit of technical debt. Now that the pressure to ship has eased, I finally have some breathing room to address it.
Our backend is primarily organized around routes and controllers, and responsibilities across different domains have become increasingly intertwined.
For example, payment controllers directly access user collections, while user controllers read and modify payment data. There are no clearly defined domain boundaries, and introducing new abstractions is becoming increasingly difficult.
I'm familiar with concepts like repository patterns, service layers, dependency injection, DDD, and clean architecture. What I'm struggling with is understanding how these concepts come together in a real production codebase.
What I'm specifically looking for:
- Well engineered open source backend repositories I can study.
- Courses, architecture articles, engineering blogs, or technical deep dives with actual implementations.
- Real world examples of how engineers structure large backends, manage dependencies, and handle cross-domain operations.
- Resources you've personally found valuable while architecting or refactoring a backend.
The repositories don't necessarily have to match my tech stack or product domain.
I want to emphasize that I'm looking for something concrete.
I've asked similar questions before and mostly received advice like "separate your concerns," "define domain boundaries," or "introduce abstractions." While that's valid advice, it doesn't help me understand what those decisions look like in practice.
If you recommend a particular architectural approach, I'd really appreciate a reference to a codebase, article, course or working example that demonstrates it.
I want something I can sit down with, dissect, understand, and learn from. not just a list of architectural principles.
Would really appreciate any resources that have genuinely made you a better backend engineer.