-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BFF #57
Comments
|
微服务治理
|
BFF api 网关:统一的数据接口处理,鉴权、参数、返回值、错误码等 性能视角:降低多加一层带来的链路损耗,服务资源的成本 利用 client 天然分布式的特点,结合 service worker 和边缘计算将 bff 更加前置 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
API Gateway 与 BFF
有了 API Gateway 之后,它可以帮我们完成聚合之类的逻辑。不过有一个问题是前端可能有多种不同的类型,比如 PC 前端,Mobile 前端,它们的业务逻辑不可避免的会有各种各样的差异,如果在 API Gateway 中处理这些差异的话,那么会出现坏味道,为了解决此类问题,我们引入 BFF(Backend For Frontend),每一种前端都有属于自己的 BFF,用来处理专属于自己的业务逻辑,至于 API Gateway,则只处理鉴权,日志等公共业务逻辑。
The text was updated successfully, but these errors were encountered: