DEV Community

Discussion on: Angular Architecture Patterns and Best Practices (that help to scale)

Collapse
 
carlillo profile image
Carlos Caballero

Hi @yeraycat ,

The facade pattern in this context helps you create a layer between the state management library. Depending on the complexity of your application you can apply it or not, my recommendation of course is that if you apply it. As I said, this post from @pietrucha is simply great.

Collapse
 
yeraycat profile image
Yeray Catalá

Yes, if the application is simple enough it can be an overkill, but I like it because the state management strategy can be changed at any time without affecting the components, and I was afraid about how hard would be to change to another state management library/approach when I started adding NgRX to my projects.

I'm implementing the facade layer asap, so it won't be a problem in the future.

Thread Thread
 
carlillo profile image
Carlos Caballero

That is true, and this is the reason why I'm using... Maybe Akita will be the new bomb?