Introducing Repository Pattern #34
bentshrimp
started this conversation in
Feature Suggestion / Share Ideas
Replies: 1 comment
-
I think it's good! Even if it takes a long time to apply the pattern, I'll try to utilize it! 😄 Thank you for your suggestionAh~ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There a design pattern, called 'repository pattern'. Let's discuss whether we should use repository pattern on this project.
What is Repository Pattern?
Repository pattern allows us to isolate data layer from rest of the application.
Repository pattern capsulize the data layer just like the picture above. Repository sends queries to data sources or map data newly so that it can be used by other domains.
Advantage
Disadvantage
Here are blogs with very good explanations.
https://4z7l.github.io/2020/11/24/repository-pattern.html
https://www.cosmicpython.com/book/chapter_02_repository.html
Beta Was this translation helpful? Give feedback.
All reactions