Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Retrying failed transactions #148

Open
jimmycuadra opened this issue Jan 4, 2017 · 0 comments
Open

Retrying failed transactions #148

jimmycuadra opened this issue Jan 4, 2017 · 0 comments

Comments

@jimmycuadra
Copy link
Member

Continued from #121.

When a database transaction fails, it might be a good idea to retry it. Some initial thoughts and questions:

  1. What are the most common reasons a transaction would fail?
  2. Do we want to retry all failed transactions or only when the failure was something we know has a possibility of working on another try (e.g. deadlocks)?
  3. What should the limit on the number of retries be?
  4. Should retry logic be part of application logic or encapsulated as part of the database layer itself? (I'm not sure if Diesel has any sort of automatic retrying feature that we might leverage, if we want to go for the latter.)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant