Skip to content
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

[Feature request] Add sharding by specified key #18

Open
Alexfilus opened this issue Jan 8, 2025 · 0 comments
Open

[Feature request] Add sharding by specified key #18

Alexfilus opened this issue Jan 8, 2025 · 0 comments

Comments

@Alexfilus
Copy link

Last 7 years I only met projects where ACID transactions were important only for scope of user.
So I am using multiple PostgreSQL clusters sharded on client by userID.
It would be nice to have such feature in yours library.
For example user can specify sharding function on init. And pass sharding key to connection manager before performing request.

WithShardingFunction(func(key int) { return key % 10})

WithShards(shards map[int][]*Node) something like that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant