Multiple Clusters, one DB
# spicedb
n
Hey eveyrone, Can mutliple SpiceDB clusters point to the same Postgres database? The expectation would be that both clusters would return the same data, and writes made to one cluster would also be visible to the other one. Would the
watch
api continue working as expected? I am asking because we plan to migrate from GKE Autopilot to GKE Managed and we will need to create a new cluster and migrate everything that's running on it. Other apps are stateless, so we will run apps in both clusters simultaneously, change the dns, and then terminate the old cluster, wondering if that's going to work with SpiceDB?
v
Hey, yes, this pattern works just fine. Watch API will also continue to work, you will need to make sure your application remembers the last seen zedtoken, and resume the connection. Watch API calls are long-lived grpc streams, so you want to make sure client side reconnections are in place .
3 Views