知识卡片
微在公开接口
服务通过规定接口开放能力,接口既可同步也可异步,并定义外部眼中的服务。微服务的微应体现在公开接口所暴露的领域知识和功能范围,而非代码行数。所有输入输出都应走这扇前门;开放内部数据库会让可查询的模型无限扩张,破坏紧凑接口和封装。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
- · 第14章 微服务
原书出处 · 1 处
- 微服务 · 查看原书依据
Since a service is defined by its public interface, a microservice is a service with a micro-public interface: a micro-front door. Having a micro-public interface makes it easier to understand both the function of a single service and its integration with other system components. Reducing a service’s functionality also limits its reasons for change and
参考来源
- 位置:《Learning Domain-Driven Design》第14章《微服务》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch14.html)
- 结论依据:原文以服务前门定义微服务,并用SQL查询空间解释数据库不应作为公开接口。
- 原始内容:Since a service is defined by its public interface, a microservice is a service with a micro-public interface: a micro-front door. Having a micro-public interface makes it easier to understand both the function of a single service and its integration with other system components. Reducing a service’s functionality also limits its reasons for change and