-
Notifications
You must be signed in to change notification settings - Fork 40
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
chore(sdk) [NET-1394]: add new storage node cluster address #3020
Conversation
packages/sdk/src/Config.ts
Outdated
export const STREAMR_STORAGE_NODE_GERMANY = '0x31546eEA76F2B2b3C5cC06B1c93601dc35c9D916' | ||
|
||
export const STREAMR_STORAGE_DEFAULT = '0x9dc08ff97f5c156181ec6a0b13fc3946454e529a' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to be very explicit, this could be named to STREAMR_STORAGE_NODE_ADDRESS
and/or type this as HexString
. Then it would be trivial that this is a value that can be given as an argument to addStreamToStorageNode()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add the HexString
type.
About the naming, it is a bit complicated. When we refer to a storage node, we don't actually refer to a single storage node (most of the time) but a cluster of storage nodes. The correct name would therefore be something like STREAMR_STORAGE_NODE_CLUSTER_DEFAULT
. However, our internal naming convention currently refers to the address as storageNodeAddress
so keeping in line with that it may be wise to stick with the NODE
for now. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you mentioned, end-users don't know about the clustering. In SDK's nomenclature the entity to which we add/remove streams in order to get it stored is a storage node. This is an id to such entity, and therefore we should refer it as storage node.
In practice the entity can be a single node or a cluster of nodes. As long as a real cluster (i.e more than one node) is not required, the current name is quite fine.
In summary: in my opinion we should now keep the current consistent term (STREAMR_STORAGE_NODE_ADDRESS
). We can consider renaming the terminology in a follow-up PR, if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed here 6a651e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe would make sense to drop the term "cluster" also in CHANGELOG (lines 15 and 21)
Summary
STREAMR_STORAGE_NODE_ADDRESS
STREAMR_STORAGE_NODE_GERMANY
Checklist before requesting a review
TODO
comments left behind are meant to be left in.