0

We all know that in a layered backend architecture we have the Controller (or view) > Service > Repository (or Manager)

The Repository part is the part that retrieves and updates the DB.

But now that we have ORMs that are fairly advanced, does the manager/repository part still relevant ?

I know everywhere that it's the best practice but I fail to find an actual use case where really we need this layer too.

To give an example, I'm working with Flask and SqlAlchemy on a project and All the "manager" files are just functions that call an SqlAlchemy Query. Had the same question before when working with Laravel.

4

0

Browse other questions tagged or ask your own question.