node.js - Streaming vs linking static files -


i'm looking advantages of streaming on linking static files, eg images, pdf.

to make question more clear, using node can stream files using

fs.createreadstream 

i can understand streaming videos etc why should stream static files. can provide href?

if static files available on url there's no need stream them using node. if node app wants return contents of static file hosted , served somewhere instead of streaming contents can return redirect file's url.


Comments

Popular posts from this blog

python - PyInstaller UAC not working in onefile mode -

python - RuntimeError: can't re-enter readline -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -