When services invoke Task.Run
there are many scenarios where the message becomes lost, e.g. host reboot.
This lightweight wrapper allows lifting those callbacks into more durable systems with serverless technologies like Amazon Simple Queuing Services (SQS) and Lambda.
While refactoring is tedious and time consuming often its easier to rehost existing technologies.
- Create an Amazon SQS Queue
- Create an Amazon Lambda and reference existing service binaries
- Create an Event Source from the Queue to Lambda
- Replace
Task.Run
withDurableTaskFactory.CreateTaskAsync
- Enjoy the magic of reflection =)