Tuesday, 2 May 2017

Nodejs Api call in background

I'm developing an app with node JS, the app generates a report calling the endpoint api.example.com/generate-report

But this report takes around 1 minute on be generated, then I want to implement something like this:

  1. User click on generate report
  2. System return response {generating:"ok"}
  3. After the system generate the report send a notification (this I what I know how to do)
  4. User get the report

Is this possible with nodejs?



via Ismael Martinez

No comments:

Post a Comment