4 ms·
I see people say "graphql" a lot in this thread. There are a number of downsides to graphql that arise from its overly generic (and yet, at the same time, not
by azangru 4y ago
I see people say "graphql" a lot in this thread.
There are a number of downsides to graphql that arise from its overly generic (and yet, at the same time, not generic enough) nature. No HTTP caching of graphql requests is one. Very deeply nested payloads is another. Difficulty of expressing complex query logic through parameters. Inability to natively represent structures such as trees of unknown depth. Special efforts spent on preventing arbitrarily deep/complex queries. And so on.
A BFF does not have any of these problems. It can be made as closely tailored to a particular frontend as possible. It does not need to concern itself with a generic use case.