4 ms·
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
by je42 8y ago
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.
- dustingetz 8y agoThe 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.
- je42 8y agoyep. 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.