DEV Community

loading...

Discussion on: Modular Monoliths: Have we come full circle?

Collapse
pieterhumphrey profile image
Pieter Humphrey

In using something like blitz.js, I'd be concerned about coupling frontend directly to databases -- the model, view, controller pattern MVC was created years ago to avoid this and the brittleless that ensues in terms of maintaining the code / application.

Collapse
infoxicator profile image
Ruben Casas Author

Yeah it is a concern, but it is not as bad as before if implemented correctly, for example the react components can be designed in such a way that their interface with the data is abstracted so as far as the components are concerned the data can come from REST/GraphQL or the database. If decoupled and designed this way then it is just the case of swapping those adaptors in the future if needed.

Collapse
sqlrob profile image
Robert Myers • Edited

"If implemented correctly" is doing a lot of work there. That is way too rare a beast to depend on.

ETA: And the abstraction you're describing is... MVC.

Thread Thread
infoxicator profile image
Ruben Casas Author

The answer if we are coming full circle is likely yes then 😅