Saturday 27 July 2019

Parsing an uploaded CSV in Node in background.

I have a UI from which the user can upload a CSV file (POST request to /api/upload). The CSV file is then received by Express → parsed → written to the database. I have a couple questions regarding this process chain.All the actions (upload, parse, write to db) are happening on the same request endpoint (/api/upload). Should this be distributed among multiple endpoints?I'm facing some concurrency issues when multiple users upload files at the same instance. Is there any way to queue up requests when Express receives them?

Submitted July 27, 2019 at 04:37PM by AllDayIDreamOfSummer

No comments:

Post a Comment