Simple File API Using Azure Blob Storage (running locally)

  Рет қаралды 11,245

Milan Jovanović

Milan Jovanović

Күн бұрын

Пікірлер: 37
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@user-re6bu7dy1l
@user-re6bu7dy1l 6 ай бұрын
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?
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
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.
@user-re6bu7dy1l
@user-re6bu7dy1l 6 ай бұрын
@@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
@Ajmal_Yazdani
@Ajmal_Yazdani 6 ай бұрын
Thanks for your share @Milan Jovanović. What should I consider if I have to upload very large (up to 10GB) files?
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Consider uploading directly to Blob Storage with pre-signed URLs
@Ajmal_Yazdani
@Ajmal_Yazdani 6 ай бұрын
@@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?
@user-re6bu7dy1l
@user-re6bu7dy1l 6 ай бұрын
@@MilanJovanovicTech What about validation and running business logic? What if need to check allowed upload size for the user?
@OgnjenBokic-c7e
@OgnjenBokic-c7e 5 ай бұрын
Great content. Can this be implemented in a dockerized application on a linux server?
@MilanJovanovicTech
@MilanJovanovicTech 5 ай бұрын
Yes - but I don't think you want to run your own instance of Azurite.
@regestea
@regestea 6 ай бұрын
Thanks for your great contents, I think we need a content to "How do I write a test for Azure blob service"
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Great suggestion!
@ferventurart
@ferventurart 5 ай бұрын
Great video Milan!
@MilanJovanovicTech
@MilanJovanovicTech 5 ай бұрын
Thanks a lot!
@investycoon-app
@investycoon-app 6 ай бұрын
Does Azure Blob Storage can handle rights access for files or is it something we have to implement on web application ?
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
It can
@sreenidhisalugu6498
@sreenidhisalugu6498 3 ай бұрын
Could you please make a video on sending file from angular and storing it locally in azure storage
@MilanJovanovicTech
@MilanJovanovicTech 3 ай бұрын
Sure
@Dragonet17
@Dragonet17 6 ай бұрын
Arek you going to create course about Azure ?
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Unlikely
@yunietpiloto4425
@yunietpiloto4425 6 ай бұрын
Great content as always. Thanks for sharing!
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Much appreciated!
@gorgestv6340
@gorgestv6340 6 ай бұрын
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?
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Works like a charm
@AcapellaNutella6
@AcapellaNutella6 5 ай бұрын
I did all this, but I do not see "Files" in my swagger document???
@MilanJovanovicTech
@MilanJovanovicTech 5 ай бұрын
No idea, it should just "work".
@AcapellaNutella6
@AcapellaNutella6 5 ай бұрын
@@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.
@tbalakpm
@tbalakpm 6 ай бұрын
Blog -> Blob
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Rofl, that autocorrect 🥲😂 Thanks for saving the day!
@itirush2701
@itirush2701 6 ай бұрын
Please make video microservice 🙏
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Will consider
@harkiratsingh358
@harkiratsingh358 5 ай бұрын
No need of docker , now it runs within visual studio
@MilanJovanovicTech
@MilanJovanovicTech 5 ай бұрын
How so?
@i3looi2
@i3looi2 4 ай бұрын
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.
@MilanJovanovicTech
@MilanJovanovicTech 4 ай бұрын
There's also pre-signed URL so you can hit Blob storage directly
@sunzhang-d9v
@sunzhang-d9v 6 ай бұрын
Unhappy why not modular content
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Have to keep it varied
A Beginners Guide to Azure Blob Storage
22:24
Travis Roberts
Рет қаралды 4,9 М.
Exceptions Are Extremely Expensive… Do This Instead
17:15
Milan Jovanović
Рет қаралды 45 М.
Colorful Pasta Painting for Fun Times! 🍝 🎨
00:29
La La Learn
Рет қаралды 308 МЛН
Creating a State Machine Saga With MassTransit (Orchestrated Saga)
15:41
Milan Jovanović
Рет қаралды 14 М.
AZURE BLOB STORAGE - Getting Started | Azure Series
30:21
Rahul Nath
Рет қаралды 6 М.
Dockerize Your .NET Application in 5 Minutes!
7:42
Amichai Mantinband
Рет қаралды 15 М.
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 69 М.
Azure Blob Storage - Azure Blob Storage Tutorial - Step by Step
41:03
Scott Duffy @ GetCloudSkills
Рет қаралды 55 М.
A Step-by-Step Guide for the Cache-Aside Pattern + Stampede Protection
19:29
Working With Azure Blob Storage in .NET apps. From Zero To Hero
22:06
Are You Accidentally Crippling Your EF Core Queries?
17:18
Milan Jovanović
Рет қаралды 29 М.