Open SevInf opened 8 months ago
It'd also be nice if we could always issue queries against the primary and selectively choose which queries go to the replica.
Curious if any of these features are being implemented or if you are accepting PRs. I think this is a critical feature for people using replicas in alternative regions. I personally we want this to be filtered or chosen by lowest latency to DB or by ENV variable (for the same reason).
We are definitely accepting PRs @bvkimball. Optimally share the planned API before writing the code, so we are all on the same page.
By default, we select replicas randomly. Users might want to use different selection criterea: for example, round robin or weighted random selection. We should have an option to provide custom selection function.
API sketch: