docusign / docusign-esign-node-client

The Official DocuSign Node.js Client Library used to interact with the eSign REST API. Send, sign, and approve documents using this client.
http://docusign.github.io/docusign-esign-node-client
MIT License
146 stars 100 forks source link

Support streams for downloading envelopes #271

Open jchull opened 3 years ago

jchull commented 3 years ago

We would like to be able to transfer an envelope without storing the entire contents in memory, streams have been around for a while and provide this functionality.

Why streams
Streams basically provide two major advantages compared to other data handling methods:

Memory efficiency: you don’t need to load large amounts of data in memory before you are able to process it

Time efficiency: it takes significantly less time to start processing data as soon as you have it, rather 
than having to wait with processing until the entire payload has been transmitted

More on streams: https://nodesource.com/blog/understanding-streams-in-nodejs/

HobbyProjects commented 3 years ago

Thank you for the suggestion. We'l consider this for future releases.