Thanks for your time to look into this post.
Basic I want to implement one file download cache server for local usage.
The server should meet the following requirements:
1, Save target file/data into local server's disk.
2, Forwarding data stream.
3, Support resumable data cache.
4, Support partial download with Range header.
*Scenario A (**Target File cached in local server's disk**):*
* * For this scenario, i can download the target data from the
local cache server. the server can simply server the data with pipe one
readStream.
*
*
*Scenario B (**Target File isnot in local server's disk**):*
* *For this, i can pipe the source to multi target destinations,
Like:
> var req = request.get('
>> http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz', function(err,
>> response, body) {
>
> if (err) {...}
>
> });
>
> req.pipe(targetStream1);
>
> req.pipe(res);
>
> *
*
*Scenario C (**Target File partly cached in local server's disk due to
network exception**):** *
* * So when someone try to get the target data with partly
cached, the server should do two things.
1st, response cached data with one stream quickly.
2nd, forward the remaining chunk under downloading.
Any suggestion? Great thanks to you all.
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.