← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4361.e.1

设备专用后端适配前端需求

理解等级:中级

原书微内核案例在API层加入 Backends for Frontends(BFF)适配器:核心返回通用信息,面向 iOS 等设备的适配器再调整数据格式、分页和延迟要求。这样可在不把设备差异塞进核心领域组件的情况下扩展终端类型,但每种前端适配器仍需维护。iOS 是书中示例,不是本项目的实际客户端。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Fundamentals of Software Architecture》原书第19章《Choosing the Appropriate Architecture Style》(阅读计划第22项,单元06;源文件:`OEBPS/ch19.html`) - 结论依据:原书图19-4及正文给出BFF适配器、通用后端输出和iOS设备适配项;维护代价是机制推断。 - 原始内容:The API layer supplies general information from the backend, which the BFF adapters translate into a suitable format for the frontend device.