GitHub user spetz added a comment to the discussion: Bootstrap server - get 
metadata request to support future clustering

> few questions comes to mind :
> 
>     * are read to non-leader(s) allowed in this scheme ? would this be config 
> flag returned by get_metadata() maybe ?
> 
>     * do we introduce a new error / code for the case when a client attempts 
> to write to a non-leader ?
> 
>     * multi AZ scenario: will returned nodes description support of some sort 
> of tagging ? (ex. zone = "eu-west-2")

Valid points! I think that at this stage, it's all about adding the support for 
new metadata request & response and making the SDKs aware of this updated flow 
after establishing the connection. Once we get to the VSR clustering 
implementation, the response will most likely be updated with the additional 
fields, tags, etc.

Speaking of the reads from non-leader(s), I think that this will be allowed. 
Once the clustering implementation gets more and more features, we may also 
introduce multiple leaders (based on partitions) along with other useful ideas.

As for writing to the non-leader node, this should return an error.

GitHub link: 
https://github.com/apache/iggy/discussions/2133#discussioncomment-14259703

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to