Re:Why use GraphQL, good and bad reasons
by je42 on Sunday August 26, 2018 @04:46AM
(#17844971)
funny. BFF is not an anti pattern. number one it is a pattern.
it makes sure the frontend code is minimised.
if you want to maximised frontend sure go ahead don't use BFF.
but there are scenarios where you do want to minimise frontend code. for example when you have multiple frontends with different languages and code bases.
[ Parent
| on HN ]
Re:Why use GraphQL, good and bad reasons
by dustingetz on Sunday August 26, 2018 @06:04PM
(#17848196)
The holy grail (and goal of GraphQL) is one general purpose backend maintained by N engineers. Backend-for-frontend is M backends maintained by M*N engineers. This is why Google employs thousands of engineers.
yep. you can still have it with the BFF and GraphQL pattern. Since both would use the same general purpose services.
the key difference between GraphQL and BFF is, the GraphQL service itself is general purpose. hence the biz functionality resides in the frontend.
With the BFF pattern you try to move as much as possible of biz functionality into the backend.