I have a webapi that is designed to process reports in a queue fashion. The steps the application takes are as follows:
If you use Asp.net Core,you can use IHostService.