I'm looking for a solid solution for long-running background task in a REST API.Basically I have an Express or Koa app where a post route starts some data-collection task. Get data from Mongo + external APIs, process them and save results in DB. This process can take up to 5min and while the task is running every other route is blocked and inaccessible by that task (obviously). I tried Agenda.js but that still blocks every route for that timespan.What are industry standards in Node to implement such feature?
Submitted February 13, 2019 at 01:24PM by speort
No comments:
Post a Comment