Comments (5)
@EvenLjj 请帮忙一起 check 下这个 issue
from sofa-boot.
在SofaBoot环境下,我们会利用SofaBoot特有的 健康检查机制 来控制rpc服务向注册中心注册的时机。因为健康检查能很好的反应应用当前的情况。上述publishAllProviderConfig
就是这个机制的实现: 发布rpc服务时不通知注册中心,等待应用健康检查通过后,将所有rpc服务一并注册到注册中心。
而provider.delay
是SofaRpc自行设计的一个小trick, 该机制的实现逻辑就是在export
时直接返回成功, 随后异步处理发布动作。看起来和上述健康检查发布逻辑存在一定的冲突。我们reivew一下这里的逻辑看看如何做一下两个功能的兼容吧。
针对你目前提出的解决方案,更改 ProviderConfigContainer#publishAllProviderConfig方法,不把节点写上写注册中心,你可能需要注意上述两个机制发生的时间差,以确保最终至少有一个机制会正常向注册中心发布服务。
from sofa-boot.
@EvenLjj 请帮忙一起 check 下这个 issue
确实存在这个问题,可以考虑在 ProviderConfigContainer#publishAllProviderConfig 中去识别这种延迟发布的 providerConfig,根据delay时间异步去注册中心注册服务。
from sofa-boot.
related #1290
from sofa-boot.
@shawnliang1124 我修复了一版、可以拉一下我的代码验证一下功能哈。
from sofa-boot.
Related Issues (20)
- sofaboot不支持polaris注册中心 HOT 3
- 模块化配置后报Bean重复错误 HOT 2
- sofaboot-dependencies 3.x版本和springboot spirngcloud对应版本表能提供下吗 HOT 1
- 使用sofaboot-dependencies 3.19.1 springboot版本是2.7.10 spingcloud版本是2021.0.8 curator版本冲突 HOT 3
- skywalking兼容问题 HOT 4
- 3.x.x 使用rpc报错 HOT 1
- sofa jvm 服务与rpc 服务共存 HOT 1
- dynamic service invoke optimaze HOT 3
- web-biz插件更新问题 HOT 1
- 性能优化 HOT 2
- 线程池监听统计调度线程使用非守护线程是否会存在应用停止时无法正常关闭? HOT 1
- Setting custom thread pools through SofaService annotation does not take effect when interfaceType is not set HOT 1
- Support sofa-rpc provider register blacklist/whitelist HOT 1
- 909090909090
- SOFABoot4.0 升级问题 HOT 1
- SofaBoot:4.2.0 服务不能正常注册到 Nacos 中 HOT 2
- SofaBoot:4.2.0 不能使用 zookeeper 注册中吗? HOT 2
- sofa性能是否会再次优化 HOT 1
- 【Proposal】支持以k8s为注册中心的配置实现 HOT 1
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 sofa-boot.