Comments (13)
Hi, I am new to Dubbo community and willing to complete this task.
Is there any restriction on this issue? For example, in terms of completion time and code quality.
- We have no completion time limitation
- For code quality, we have add a lot of checkers in Github Actions and we will check it when pull request reviewing
from dubbo.
And, regarding the implementation of local cache, since you mentioned that it will be used as a fallback solution, I think it only needs to be implemented in memory (for example, through a
Map
) without the need to store it in the disk (like Nacos) , because it is a small probability event after all.
The main purpose is to save in the disk. To prevent if registry crashed Dubbo cannot start.
from dubbo.
What scenarios need this feature? In general, the registry sdk already supports local cache.
from dubbo.
What scenarios need this feature? In general, the registry sdk already supports local cache.
- zookeeper not support
- Nacos's local cache is not useful for Dubbo. Nacos will use local cache by highest priority, but Dubbo only want it as the fallback.
from dubbo.
Hi, I am new to Dubbo community and willing to complete this task.
Is there any restriction on this issue? For example, in terms of completion time and code quality.
from dubbo.
Hi @AlbumenJ, I checked the relevant code and documentation, and I think the "local cache" mentioned in this issue actually refers to the consumer caching information such as the provider's ip:port
obtained from the registry that is not down. Is that correct?
I did see the local caching function of metadata
in the code, but as far as I know from reading the documentation, the metadata link maintained by Dubbo does not actually require the participation of the Service Discovery registry(Nacos or Zookeeper etc.), so does the work of this issue actually have nothing to do with metadata
?
And, regarding the implementation of local cache, since you mentioned that it will be used as a fallback solution, I think it only needs to be implemented in memory (for example, through a Map
) without the need to store it in the disk (like Nacos) , because it is a small probability event after all.
from dubbo.
And, regarding the implementation of local cache, since you mentioned that it will be used as a fallback solution, I think it only needs to be implemented in memory (for example, through a
Map
) without the need to store it in the disk (like Nacos) , because it is a small probability event after all.The main purpose is to save in the disk. To prevent if registry crashed Dubbo cannot start.
Indeed, you can use serialization interfaces to save information on the local disk. However, if users tamper with the files storing this information, it can lead to data security issues. Unauthorized changes might corrupt the data, introduce errors, or cause security vulnerabilities if sensitive data is exposed or manipulated.
from dubbo.
Hey, I want to help too, can you provide more detailed information? For example, what is the local specific information storage location and storage form. @AlbumenJ
from dubbo.
Hey, I want to help too, can you provide more detailed information? For example, what is the local specific information storage location and storage form. @AlbumenJ
You can check the related example in org.apache.dubbo.registry.support.AbstractRegistry
from dubbo.
Firstly,we should make the zookeeper support the local cache.Secondly,we should make the nacos implements the fallback.It's the all the tasks need to finish in this issue?
from dubbo.
Firstly,we should make the zookeeper support the local cache.Secondly,we should make the nacos implements the fallback.It's the all the tasks need to finish in this issue?
We can make it more common and not depend on the specific registry.
from dubbo.
I test it, and i find out that dubbo cannot work if registry is down.I can check it is true when registry is zookeeper or nacos.And also,i can see the org.apache.dubbo.registry.support.AbstractRegistry
will store the local cache when localCacheEnabled
is true.I think the way to finish it is read the local cache when the registry cannot be connected.
from dubbo.
I test it, and i find out that dubbo cannot work if registry is down.I can check it is true when registry is zookeeper or nacos.And also,i can see the
org.apache.dubbo.registry.support.AbstractRegistry
will store the local cache whenlocalCacheEnabled
is true.I think the way to finish it is read the local cache when the registry cannot be connected.
Yep, you're right. BTW, we should make sure Dubbo will try to reconnect the broken registry continuously.
from dubbo.
Related Issues (20)
- [Bug] 3.3.0-beta2 update to beta3, exception : module java.base does not "opens java.util" to unnamed module HOT 3
- [Bug] 3.2.13 Unable to instantiate factory class [org.springframework.cloud.bootstrap.RefreshBootstrapRegistryInitializer] for factory type [org.springframework.boot.BootstrapRegistryInitializer] HOT 2
- [Feature] May I know how the current progress of 3.3.0 is still far from the official version? HOT 2
- [Bug] 关于dubbo广播【BROADCAST】2.6.X 2.7.X 3.X问题 HOT 5
- [Bug] When triple-rest-cors is enabled, Spring RestClient cannot get a normal response after making a request. HOT 1
- [Bug] About dubbo broadcast 2.6.X 2.7.X 3.X issue HOT 1
- [Bug] The version is upgraded, causing the broadcast mode to be unavailable HOT 3
- [Bug] dubbo-compiler bug ,An error occurs when the proto file does not match the service name
- [Bug] 通过网关将 http 流量接入 Dubbo 后端服务报错 HOT 2
- [Bug] tri protocol does not work properly in dubbo 3.3.0-beta.4-snapshot version HOT 2
- [Bug] 3.2.13 has compatibility issues with Spring boot 3.2+. HOT 5
- [Feature] HTTP/3 Support For Triple Protocol Overview
- [Feature] HTTP/3 Support For Triple Protocol In Native
- [Feature] Websocket Support For Triple Protocol HOT 1
- [Feature] Rest Support For Triple Protocol Overview
- [Feature] Triple Unary Call Support On Servlet
- [Bug] Reference. setCheck (false) and consumer:Check: False is set to false, but when the project starts, it still prompts for connection failure HOT 1
- [Feature] Dubbo Triple OpenAPI Support Requirements
- [Feature] Allow modules to extend Dubbo application configuration HOT 1
- Nacos注册中心开启tls.enable与RocketMQ冲突[Bug] 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 dubbo.