Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support streams in NodeJS #660

Closed
christopheranderson opened this issue Sep 9, 2016 · 6 comments
Closed

Support streams in NodeJS #660

christopheranderson opened this issue Sep 9, 2016 · 6 comments
Labels
Milestone

Comments

@christopheranderson
Copy link
Contributor

Currently we don't support streams in NodeJS, but they are useful for lots of different applications. It would be good to support them natively.

@christopheranderson christopheranderson added this to the backlog milestone Sep 12, 2016
@yvele
Copy link

yvele commented Sep 14, 2016

@christopheranderson Does this applies to content.body = stream in an HTTP Azure Function scenario?

@mamaso
Copy link
Contributor

mamaso commented Sep 19, 2016

@christopheranderson Thought a little bit about this over the weekend. In your ideal vision, what would we support?

  • Input / output?
  • True streaming behavior vs buffered behavior in the C# / node interaction? i.e. hook the C# streams from blob trigger, etc directly into the node stream? An alternative which loses benefits but is probably easier to implement is to fully read stream in C# and then stream that object to node
  • Control flow via streams? i.e. allow returning of streams? finish execution when all output streams have an 'end' event?

@kshmir
Copy link

kshmir commented Nov 14, 2016

@mamaso I'm currently developing a solution for my particular business, which involves analytics processing, and being able to return chunked http requests would be ideal. This is easily done with express, but doesn't seem to be the case inside azure functions.
#781 is, as you said, a basic wrapper, having that functionality as an express API would probably make it much more useful for serving content and returning streamed data.

As with the other issue I mentioned on, I could lend a hand on this. I'm personally interested on it.

@yvele
Copy link

yvele commented Nov 15, 2016

@kshmir I agree with you about the basic Express wrapper. And you're welcome to contribute: https://github.com/yvele/azure-function-express it doesn't supports chunks

@kevinclarkadstech
Copy link

Ughhh got my whole function built and got req.pipe is not a function. Guess it's back to Digital Ocean for me.

@ejizba
Copy link
Contributor

ejizba commented Mar 15, 2024

It's a long time coming 😅, but we announced preview support for HTTP streams! 🎉 Learn more in our blog post

Closing this issue in favor of Azure/azure-functions-nodejs-library#97, if you want to track GA support

@ejizba ejizba closed this as completed Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants