spicedb
spicedb copied to clipboard
add backoff and jitter to CRDB retry logic
The retry logic in CRDB datastore does not have any backoff in place. In order to prevent worsening a scenario where the backend database is having a hard time keeping up, we should add a backoff with jitter to that logic.
https://github.com/authzed/spicedb/blob/4b38ab91ed80e10d7e96c921dbcafd78f39dda27/internal/datastore/crdb/tx.go#L54-L73