How does multi-region deployments work with SpiceDB. Is each region a separate cluster (caching data within that region) or is the cache shared across regions?
v
vroldanbet
01/05/2024, 9:27 AM
You can technically cluster SpiceDB instances across regions, but the network latency would make dispatch impractical
vroldanbet
01/05/2024, 9:30 AM
But usually Multi-Region deployments are a cluster per region, and they won't share the cache
vroldanbet
01/05/2024, 9:31 AM
They may or may not share the same underlying database, depending on your needs. If you needs a globally consistent world view, you need a database that supports strong consistency in a multi region environment, like Spanner or CockroachDB
m
make it go faster
01/06/2024, 4:25 AM
Are the tables that SpiceDB creates in CockroachDB Global tables or are they regional tables. Is there a way to switch the tables to be Global tables if we want low read latency and can tolerate higher write latency specially the read to write ratio is pretty high?
v
vroldanbet
01/06/2024, 8:51 AM
SpiceDB does not have configuration for those parameters exposed, but you can (and should) go into the DB and run the required statements
vroldanbet
01/06/2024, 8:51 AM
Don't recall from the top of my head which option is the default in CRDB