Hi everbody,

sorry for this very common question, but after hours of trying, testing and 
searching I have no idea where to find a solution for my issue (it is so 
simple to explain, it should even not need any source code):

For a kind of streaming proxy service we need a solution to load data from 
a webserver (normal webrequest) and send it to the endpoint (this could be 
another fast server or a slow user internet connection).
The sources are all very fast and close by the server with the node.js 
instance, even huge files should arrive in seconds. Of cause this works 
brilliant with a simple pipe from the source to the destination, but as 
written the sending bandwidth can be very limited.
This is reason why the idea of a filesystem based cache was born (a memory 
cache is not an option, this would higher the risk of a memory issue).

Writting and simultaneously reading from a file seems not to work, I've 
tried file watchers, too. Filewatchers are working but the updates are 
sometimes very slow and seeking/reading to the right position does not feel 
good at all.

Does node.js provide a way to monitor the end of a file and wait for 
changes? I know this kind of handling from our old c++ software which was 
reading to the end of the file (EOF) and after it was reached the pointer 
was set back by one position.

Thanks for any kind of help!

Regards,
Ralph

-- 
-- 
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.

Reply via email to