-
Notifications
You must be signed in to change notification settings - Fork 842
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
Component-specific data storage #229
Comments
Design review: ClusterInfo.DynamicState is the current location for this class of data, but it needs to be extensible. This property can be replaced with a ConcurrentDictionary to store arbitrary state. If change notification is needed, an implementer may choose to store a Signal in the dictionary. |
We ended up using ConditionalWeakTable for this in TransportFailureRateHealthPolicy. It seems like a good compromise for adding state to entities you don't own. |
@Tratcher Should we close it then if there is no actual work left? |
We should check what other state should be moved to this pattern first:
|
We need to be able to associate the custom metadata with:
For another example, see #587 where the need is to be able to associate metadata on the routes. |
There is a need for the storage where different proxy components can store data specific to their internal logic.
At the very least this storage must provide the following capabilities:
Optionally it should also provide:
Examples of the storage use cases:
See also #87
The text was updated successfully, but these errors were encountered: