Python Web Apps that Fly with CDNs Transcripts
Chapter: Large Content
Lecture: CDN object storage
0:00 For these large media files and user-generated content files that don't go in our application
0:07 or in source control or things like that, where do they belong? Where do we serve them up?
0:12 Certainly, one option is to create an S3 account or a DigitalOcean Spaces or Azure Blob Storage,
0:20 put your content over there and then point at that with some kind of URL pull zone just
0:26 like we did with our static content, but pointed over there. However, that might not really
0:32 be the easiest case. If the goal is to take these files and put them somewhere that the
0:38 CDN can serve, you can actually put them into object storage inside of bunny.net. So you've
0:46 got this blob or object storage that's very similar to AWS S3 or Azure blob storage. And then that gets stored in one location
0:56 and then the actual blob storage gets replicated globally. You can pick how much that happens and then you front that with a pull zone
1:04 just like we did for our static content and that can be a better experience for people accessing that content through the CDN.
1:13 Now, would I use this as my one and only place to store that data? No, I don't usually store any important data in just one place ever.
1:21 So I might have also an S3 storage or Azure Blob storage or some other backup mechanism for this, you know, just in case like you should your database
1:31 and you should many other things. But for the process of actually getting this data up onto the website and serving it,
1:40 this is actually a really, really cool option. When it creates some of this object storage for some large user generated content
1:47 and then serve it over our app.