DEV Community

Discussion on: Bulletproof node.js project architecture 🛡️

Collapse
 
fedemengo profile image
Federico Mengozzi • Edited

Hello, awesome article. Would it be possible to have a list of all patterns used in the project?

Collapse
 
santypk4 profile image
Sam

Sure.

The project follows the 3 tier (or layers) pattern for structuring the code and separate the controllers, services and data access layer.

3 tier pattern

Also, there are some events involved, following the Pub/Sub pattern and inversion of control

And of course, as other developers pointed, you can go nuts and implement something like the 'Clean Domain Driven Design' architecture but is a little overwhelming for little applications.

The list of patterns used here

  • 3 tiers pattern
  • Pub/Sub pattern
  • Inversion of control
Collapse
 
fedemengo profile image
Federico Mengozzi

Thanks! This is really helpful