I have following type of 3rd party APIs to be called in sequence in c# code.
try
{
transaction:
{
call API 1;
call API 2
call API 3
}
}
Catch
{
transaction rollback:
rollback API 4;
rollback API 5;
}
How should I handle this in Azure function http trigger? Is SAGA or 2 phase commit suitable here? are Azure durable functions suitable? Any other pattern can I use for this?