Friday 19 January 2018

When uploading a file to node, how to stream that file to multiple other servers?

In a webapp that does a POST request of a file upload to a node server (I'm using Koa), how can I stream that file upload to a couple of other servers at the same time?So basically the webapp uploads to the main server, which uploads the file in parallel to 2 other servers. I'd like the upload to be streaming, so that as it is uploading to the main server, the main server is uploading it as it comes in piece by piece to the other servers.Could anyone suggest how this can be done in node (and Koa)?

Submitted January 19, 2018 at 10:34AM by nowboarding

No comments:

Post a Comment