Closed vroldanbet closed 10 months ago
Several options:
Closed via https://github.com/authzed/spicedb-kubeapi-proxy/pull/34 Please read the PR body for the decision on how to make workflow data durable.
I we ever need to switch away from SQLite, I started working on a postgres backend implementation: https://github.com/vroldanbet/go-workflows/pull/1
In https://github.com/authzed/spicedb-kubeapi-proxy/pull/16 dual-writes is addressed using a SAGA-like pattern using durable tasks. The state of the workflows is stored in an embedded SQLite which writes to local disk. If the pod is restarted, all state will be lost, which defuses the purposes of the durable task framework.