-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
看到了大佬价值一亿的AI代码 #34
Comments
有一个大胆的想法,route模块与server模块通过mq来通信 |
并不是什么场景都适合 个人认为 |
也是哦,如果 route 与 server 之间的链接不多的话有点画蛇添足的意思了,但是 route 与 server 之间的链接非常频繁的话,我认为将 http 改成 mq 也未尝不可 |
目前代码发送一条消息的链路是 local client -> route -> server -> remote client 相当于是同步的 |
请问一下大佬,目前搭建的demo环境,server是不是在部署在局域网内或者docker中,route返回的 CimServerRestVO对象中的IP(172.20.16.78)地址是ping不通的 |
多网卡的情况目前没考虑,今后可能会加上内外网映射 IP 的功能,或者是由用户自己配置 server 的 ip 都是可行的。 |
我自己在本地的处理方式是增加一个cim.server.ip的参数,通过AppConfiguration对象获取参数,在get方法中判断,如果不为空直接返回,如果为空通过InetAddress.getLocalHost().getHostAddress()获取 |
嗯,这样也可以,就是说的由用户自己配置那种方案。 |
哈哈,我pr一下吗 |
这个需求还没有完全想好,先等等啊。 |
通过docker运行有注册发现环节的服务时,如果不将网络模式设置为host,大佬目前有比较好的处理方式吗 |
不好意思,docker 我不是很熟。 |
Docker 中通信要么统一采用容器Ip彼此通信,如果为了和宿主机通信的话只能走host模式。和主机共享网络的 |
哈哈
The text was updated successfully, but these errors were encountered: