Re:If All You Have Is a Database, Everything Looks Like a Nail
by jonathanlydall on Tuesday December 08, 2020 @06:26AM
(#25343970)
It's essentially a facade pattern[0], which in itself can be a good thing.
For example, if all consumers move to GraphQL and away from interacting with all the separate microservice REST endpoints individually, you then have the option of refactoring your architecture (merging/adding micrososervices for example) without worrying about disrupting consumers so long as you ensure that the GraphQL queries still works.
For example, if all consumers move to GraphQL and away from interacting with all the separate microservice REST endpoints individually, you then have the option of refactoring your architecture (merging/adding micrososervices for example) without worrying about disrupting consumers so long as you ensure that the GraphQL queries still works.
[0]: https://en.wikipedia.org/wiki/Facade_pattern