Skip to content

How SpiceDb cache is being distributed among all nodes. #2209

Closed Answered by vroldanbet
Anuragch asked this question in Q&A
Discussion options

You must be logged in to vote

@Anuragch yeah, this is described in this blog post. Strictly speaking, each SpiceDB node will be aware of the existence of each other through service discovery (e.g. in kubernetes, we use kuberesolver, but it also supports non-kube environments through XDS). So effectively, the gRPC client will load-balance requests across nodes using a consistent hash ring: each subproblem in the SpiceDB schema will have its hash computed and be dispatched to the node responsible for that hash range.

So yes, none of this behavior has changed and is there since day one, as it is an integral part of Zanzibar's scaling properties.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by josephschorr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants