Mediator vs CQRS vs Repository

Asked

Viewed 29 times

1

Hello,

I’m developing a migration to a new ORM, in . NET, from an application with a complex SQL database, many small tables between them. A very tight system.

In order to better organize the development wanted to implement a Pattern. Any recommendations? I was looking at the mediator, the CQRS, the Repository. The three seem to me well, given the case of a complex database, with many small tables linked together, some that is more suitable?

Thank you.

  • I confess that I spent a long time thinking about what to write, because (p me) this is a question with good potential, but that will most likely be closed. Maybe if I were separated or put in another way, it would make it easier.

  • As for the 3 Patterns, I don’t see much relation (of comparison) between them. It has completely different goals and uses and you can even use them all at the same time.

  • @tvdias I understand what you say about the Patterns. I have a certain difficulty in choosing Patterns, at first sight the three would work well. In the case of a highly coupled database, where the current code is a true spaghetti code with numerous classes representing minimal information. You recommend some Pattern?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.