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

How to write DownloadDirectoryAsync response in a Stream. #298

Open
mathieu-fournier opened this issue Aug 3, 2022 · 1 comment
Open

Comments

@mathieu-fournier
Copy link

Which service(blob, file) does this issue concern?

blob

Which version of the SDK was used?

2.0.4

On which platform were you using? (.Net Framework version or .Net Core version, and OS version)

.Net 6 and Windows 10

What problem was encountered?

Hi o/,
I am trying to download all blobs in a container with DownloadDirectoryAsync.
The only option I see is to download it in a destination file.
How can I write the response in a Stream instead ?

Example :
image

Have you found a mitigation/solution?

I've tried listing blobs and downloading them into a stream. (I have over 5000 small blobs)
The issue with that approach is a low overall download speed due to the latency of azure storage.
For each blob I get ~50 milliseconds of latency and ~5 milliseconds of download time.
So the service is only downloading a blob ~9% of the time.
This results in a ~1000 Kb/sec download speed for the directory.

Thanks (:

@FelixPare
Copy link

I also encountered this issue recently. I wasn't able to achieve the desired result. Still waiting for a viable solution...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants