The workers would run in 2 asp.net core API… a front-end application is a vue.js SPA… the PoC is like follows… a user(vue) creates a new order (API 1) the order starts an instance workflow and publish a message for the next step… (API 2) which has a worker listening to be activated (deliver task) once the delivery task finish it would send a message to the vue app by WebSockets that the process has finished…
What I want to accomplish is keeping the workers running… so that they are ready to start its job when it is required. (***that’s my question… is there a better approach? than using aspnet core background task (hosted service)***… is there a better architecture? )
BTW I’m using Service Fabric to manage the services.
Why choose asp.net core API ?.. because I need http controllers to manage the identity and communicate the vue app…
Thanks for the interest