Recovering from connection failures to external services

One of the design de[quote=“sasajuric, post:3, topic:11800”]
If you could describe your scenario in more details, and explain the main concerns you have about possible failures and desired recovery behaviour,
[/quote]

I’ve got a pretty thorough description of the problem space in this thread: Using GenServer in a state machine type workflow

I think I may have mischaracterized the needed work by calling it ‘ongoing maintenance tasks’. This is more of an event reactor situation: events come in, and they need to be acted on immediately, which doesn’t seem like a good fit with quantam (looks useful though!). Acting on those events includes some reading from and writing to a central database.

Using Tasks seems like a reasonable approach: launch a Task which queries the database and returns the desired data and/or updates data. If for whatever reasons the Task crashes, I can trap that and retry in the parent process.