Thanks for your great contents, I think we need a content to "How do I write a test for Azure blob service"
Thanks for your share @Milan Jovanović. What should I consider if I have to upload very large (up to 10GB) files?
Consider uploading directly to Blob Storage with pre-signed URLs
@@MilanJovanovicTech Could you please explain more. I believe we need to chunk the file into smaller size and either upload in parallel or something, but something looks not simple here. Thoughts?
@@MilanJovanovicTech What about validation and running business logic? What if need to check allowed upload size for the user?
Decent video, but it doesn't stand out except local emulator. What's really interesting and what I was lookig for when came across the video is showing how to deal with large files upload/download and also how can we make uploading to the blob storage and db transactions (e.g persisting file info) atomic. Maybe, you could cover more in depth work with files and blob storage?
What would you consider a large file?
You can't make it atomic, theoretically. Any one service in a distributed system can fail.
What you can do is implement appropriate compensating actions, based on what failed.
Another option I would consider is being "eventually consistent". Let's say, upload to Blob Storage and subscribe to the upload event, to write some stuff to the DB.
@@MilanJovanovicTech
-What would you consider a large file?
I would consider something larger than MaxAllowedContentLength default a large file or a file that exeeds maximum block size for single upload operation (which would require multipart upload).
- What you can do is implement appropriate compensating actions, based on what failed.
This is a advanced level content type I'm looking for
In my practice project, I use a "Cloudinary" ( I think equivalent of Blob) and I save files in this storage and in database I save only paths to this files. What do you mean about this aproach?
Does Azure Blob Storage can handle rights access for files or is it something we have to implement on web application ?
Great content.
Can this be implemented in a dockerized application on a linux server?
Yes - but I don't think you want to run your own instance of Azurite.
Could you please make a video on sending file from angular and storing it locally in azure storage
I did all this, but I do not see "Files" in my swagger document???
@@MilanJovanovicTech I just used the classic azure function pattern and did it that way. Kinda gave up on the minimalist approach. Good video tho it showed me how to do what I was trying to do.
This is bad practice for big files. You simply proxy the file through the SERVER/API instead of directly going to blobstorage.
If you need to upload GB++ files, you bottleneck bandwith and CPU time for no reason.
There's also pre-signed URL so you can hit Blob storage directly
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt