Comments (4)
从官方的文档是这样解释的:服务对外透出的api,既然是api那么和app的关系就不用解释了,是app应用对外的服务公开,这点注意和adapter是有区别的,适配面向的是客户端应用,而client面向的是其它服务,关于domain,并没有直接依赖的,就算领域服务中需要加载其它服务的数据其实用的是gateway做控制反转,然后在gateway的接口实现中进行调用其它服务的api
from cola.
个人觉得这个只适合使用 dubbo 这样的 rpc 框架,对于 Feign 这样的方式,就不合适
没有看到 domain 还会引用 client 的哇
from cola.
从官方的文档是这样解释的:服务对外透出的api,既然是api那么和app的关系就不用解释了,是app应用对外的服务公开,这点注意和adapter是有区别的,适配面向的是客户端应用,而client面向的是其它服务,关于domain,并没有直接依赖的,就算领域服务中需要加载其它服务的数据其实用的是gateway做控制反转,然后在gateway的接口实现中进行调用其它服务的api
这里"就算领域服务中需要加载其它服务的数据其实用的是gateway做控制反转,然后在gateway的接口实现中进行调用其它服务的api",是意思应用的别人的client吗?
from cola.
从架构图上看,domain并没有引用client
from cola.
Related Issues (20)
- 请问TDD测试工具第四个自动生成测试类是如何使用的? HOT 1
- Client 和 基础层都用到的枚举类应该放哪里? HOT 5
- DTO的存放位置
- 提问有应用cola的比较有名一点的开源项目吗? HOT 4
- TransitionsBuilderImpl and TransitionsBuilderImpl should have a hierarchical relationship, not an inheritance relationship
- 看了很多架构,发现都没有针对每一层的“DTO”进行设计说明 HOT 1
- Extension 注解传值
- 关于domainservice应当如何理解?
- Command Handler VS Application Service VS Domain Service HOT 1
- 关于COLA的使用问题 HOT 2
- 关于event的问题
- 各位老师,请问使用cola-archetype-web生成的工程和介绍的有些不一样 HOT 1
- 关于状态机是否可在线更新 HOT 1
- 是否考虑 Go 版本的生成工具 HOT 1
- 正在学习状态机组件,内部流转功能在什么场景下使用? HOT 2
- 一些工具类和全局常量等,比如MD5Utils,JSONUtils,DateUtils,这些放在哪一层module呢? HOT 1
- 怎么保证在分布式场景下,状态机修改状态线程安全呢
- cola开发交流群
- 如何表达领域和子域的关系呢?领域的gateway可以调用子域的gateway吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cola.