spicedb icon indicating copy to clipboard operation
spicedb copied to clipboard

add backoff and jitter to CRDB retry logic

Open vroldanbet opened this issue 3 years ago • 0 comments

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

vroldanbet avatar Aug 16 '22 16:08 vroldanbet