Reputation: 3384
We are working on application having micro-service based architecture with following components as shown in below image and not sure how BFF layer should be structured. We are currently considering two options for our design however not sure which should be recommended approach.
Option 1 : Gateway as BFF
Option 2 : Dedicated Microservice as BFF
Upvotes: 0
Views: 1968
Reputation: 10225
The Gateway and BFF (Backend For Frontend) are not quite the same thing:
What the API actually calls is up to you. The goals of BFF basically imply that something needs to pull together the data that the client needs, in a way that is convenient for the client - i.e. orchestration, maybe even some caching.
Options:
Keep in mind that "API" is a loaded term, which depends on the context:
In your cases I'm sayin the BFF could be implemented either way.
You might also be interested in "Experience API" which is a similar idea (if not the same) as BFF.
Upvotes: 3