Giter Site home page Giter Site logo

Client 这个包同时被domain,和app依赖,但是client的实现是app 这个看着有点费解?请帮忙解惑 about cola HOT 4 OPEN

jiangyiman avatar jiangyiman commented on June 3, 2024
Client 这个包同时被domain,和app依赖,但是client的实现是app 这个看着有点费解?请帮忙解惑

from cola.

Comments (4)

allenbin avatar allenbin commented on June 3, 2024

从官方的文档是这样解释的:服务对外透出的api,既然是api那么和app的关系就不用解释了,是app应用对外的服务公开,这点注意和adapter是有区别的,适配面向的是客户端应用,而client面向的是其它服务,关于domain,并没有直接依赖的,就算领域服务中需要加载其它服务的数据其实用的是gateway做控制反转,然后在gateway的接口实现中进行调用其它服务的api

from cola.

zq99299 avatar zq99299 commented on June 3, 2024

个人觉得这个只适合使用 dubbo 这样的 rpc 框架,对于 Feign 这样的方式,就不合适
没有看到 domain 还会引用 client 的哇

from cola.

hnsongbiao avatar hnsongbiao commented on June 3, 2024

从官方的文档是这样解释的:服务对外透出的api,既然是api那么和app的关系就不用解释了,是app应用对外的服务公开,这点注意和adapter是有区别的,适配面向的是客户端应用,而client面向的是其它服务,关于domain,并没有直接依赖的,就算领域服务中需要加载其它服务的数据其实用的是gateway做控制反转,然后在gateway的接口实现中进行调用其它服务的api

这里"就算领域服务中需要加载其它服务的数据其实用的是gateway做控制反转,然后在gateway的接口实现中进行调用其它服务的api",是意思应用的别人的client吗?

from cola.

hnsongbiao avatar hnsongbiao commented on June 3, 2024

image

从架构图上看,domain并没有引用client

from cola.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.