Skip to content

Dubbo调用当配置非共享连接DubboProtocol代理带来的问题 #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SpringStudent opened this issue Apr 17, 2025 · 7 comments
Closed

Comments

@SpringStudent
Copy link

Image

@wangzihaogithub
Copy link
Owner

wangzihaogithub commented Apr 17, 2025

非常激动可以一起讨论,热烈欢迎。

这个“响应无法正常返回” 的问题是不会出现的,因为 ProxyFrontend是Channel单例的,它并没有注解@ChannelHandler.Sharable。

如下图

Image

@wangzihaogithub
Copy link
Owner

可以直接运行该项目下的 /test/包有写好的demo,: com.github.netty.javadubbo。

先启动:Server, 再启动DubboProxyBootstrap,最后启动Client。

@SpringStudent
Copy link
Author

SpringStudent commented Apr 17, 2025 via email

@SpringStudent
Copy link
Author

SpringStudent commented Apr 18, 2025

大佬你好,作为一个小公司的没接触过service mesh和网关转发场景下dubb应用的场景的开发人员,我有点好奇的是你们是怎么在生产实践中应用这个dubbo代理层的。
另外我另一个疑问是,如果一个服务调用要走代理层的话那么他必须要通过直连的方式显示配置dubbo protocol代理层的url 并且只能是dubbo协议,那如果我想动态切换一个服务到底走dubbo protocol代理还是注册中心还有想动态切换协议,该怎么做。

@wangzihaogithub
Copy link
Owner

这个是为了解决dubbo应用们都在云端的内网中,本地无法直接调用云上内网的服务,所以要一个代理拖N个服务

@SpringStudent
Copy link
Author

这个是为了解决dubbo应用们都在云端的内网中,本地无法直接调用云上内网的服务,所以要一个代理拖N个服务

那所以说云上内网的服务你们是舍弃了注册中心了,都通过dubbo protocol代理去调用云上内网服务

@wangzihaogithub
Copy link
Owner

不用舍弃,本地服务只作为消费者使用云端的dubbo服务,云端内网不依赖本地的服务,云端内网可以正常使用任何微服务技术栈(包括注册中心)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants