5 ms·
> The latter [BFF] is responsible for: > > Getting the data from each required microservice > > Extracting the relevant parts > > Aggregating them > > And final
by dustedcodes 4y ago
> The latter [BFF] is responsible for:
>
> Getting the data from each required microservice
>
> Extracting the relevant parts
>
> Aggregating them
>
> And finally returning them in the format relevant to the specific client
I am pretty certain that the only reason why BFF were invented is for security in mobile and SPA applications, to securely deal with OAuth tokens.
If you don’t need that don’t use a BFF, keep things simple. Start by not building a SPA when it can be a classic server client web app. I feel like most of the web should just be that.