Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

合并部署和单独部署支持 #480

Open
Luusa1988 opened this issue Jan 25, 2024 · 1 comment
Open

合并部署和单独部署支持 #480

Luusa1988 opened this issue Jan 25, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Luusa1988
Copy link

当应用通过基座+模块的方式改造后,模块间或者模块和基座间服务注入使用@AutowiredFromBase或者@AutowiredFromBiz这个在合并部署时可以,但是项目上希望模块未来能单独部署时,模块间使用RPC进行通信,希望模块或者基座仅仅是打包方式和pom的变更而不需要改动代码,达到这个效果

@lvjing2
Copy link
Collaborator

lvjing2 commented Jan 25, 2024

如果使用 dubbo 或 SOFA RPC 框架,是可以天然支持的,这几个框架提供的注解具备跨模块间调用的能力。如果是使用
feign 的话,是没有这个能力的。那么就需要使用 @AutowiredFromBase @AutowiredFromBiz,然而当前这两个注解是不支持跨进程的调用的。所以需要考虑支持这样的能力

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants