-
Notifications
You must be signed in to change notification settings - Fork 15
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 blob streams #99
Comments
Hi @adamstoffel, Thank you for your feedback! We will check for the possibilities internally and update you with the findings. |
Transferring this issue to NodeJS-worker repo for further insights. |
The Node.js worker doesn't support streaming data. Here is an issue on the host repo with some of the background: Azure/azure-functions-host#1361
|
Hi @ejizba - the shared memory feature on Python passes the whole set of bytes to the user function as of today. However, I do think that some stream-like abstraction can be given to the user (like |
Yeah I'm less interested in doing a stream if it's just an abstraction, not an actual stream with all the benefits. How likely is the shared memory feature to help with 'out of memory' issues? Or is it realistically just for performance? |
I believe it does reduce one extra copy (which gRPC creates when transferring between the host and the worker). |
Is there an ETA on this? |
@MarioArriaga92 no there is not an ETA for this. We want to do it, but it will not be simple and so far other work has been higher priority. Specifically, you can see our roadmap here with the work we currently have prioritized: |
Having to consider other hosting options due to this limitation. |
I'm cleaning up the stream issues and will use this to track support for streaming Azure resources. This was finally unblocked for us in the host: Azure/azure-functions-dotnet-worker#1081. The .NET Isolated worker was the first one to use it, but we should be able to benefit in Node.js as well. Unfortunately I don't have any ETAs. For now we're focused on GA-ing the v4 programming model, but we will keep the roadmap updated with any stream plans: https://github.com/Azure/azure-functions-nodejs-library/wiki/Roadmap Streaming http will be done separately, tracked by #97 |
The Blob Trigger binding for NodeJS functions always binds data as a Buffer even if 'dataType' is set to 'stream' or 'string'.
Repro steps
Expected behavior
fileBlob
input parameter should be some kind of Stream typeActual behavior
fileBlob
input parameter is a BufferKnown workarounds
None
Related information
Functions runtime ~3
Node ~14
The text was updated successfully, but these errors were encountered: