Python Web Apps that Fly with CDNs Transcripts
Chapter: Large Content
Lecture: Creating the storage zone

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Now we know what kind of user generated content we're gonna work with for our demo app and how to get a hold of it,
0:08 it's time to set everything up over here in Bunny. So the first step is to create the storage zone and put the files there,
0:16 and then we need to put some kind of CDN front end in front of it, just like we did with our URL zones. So let's go over to the storage here.
0:27 You can see for the podcast, we have 880 files at around 30 gigabytes. And for the video storage, we have 15,000 video files at 121 gigs.
0:39 Ooh, that's a lot of data. It's been working perfect though, so no problem there. Let's create a new one. Just like the CDN, we gotta give it a name,
0:49 a unique name here. So Video Collector Demo Storage. This is not the public name, but this is what we see on the inside. So we're gonna do that.
0:57 We're gonna use standard, we could replicate this to the edge at higher expense and be faster, but we're already gonna put the CDN in front of it,
1:05 so we don't really need to do more than that. We can tell it where our home region is and when we log in and we upload and interact with it.
1:14 What I think, my philosophy here is the very closest that you can do to you, to your team is probably best
1:23 because you're gonna be uploading and downloading files through either some tool or maybe through the API in your app, depending on how it works.
1:31 So whatever thing is interacting with the storage directly, probably just pick the closest location. This is not where they're gonna be served from
1:39 for the users. So I am on the West Coast, so I'm gonna say Los Angeles, there we go. And you can also enable geolocation if you want.
1:47 I could turn this off, but it'll replicate out here. So for example, if somebody in Singapore, for example,
1:56 wants to watch the video instead of pulling from over here, it could pull from over here to populate it CDN potentially.
2:04 Alright the price per month is 3.5. We turn off the geo-replication. It doesn't say. It said, you know, you really need to have that.
2:11 That's a good idea. So we'll do this. Oh, I actually had created one of these before and I decided I didn't want it.
2:29 I wanted to clean it up so it looked fresh. So let's do this again really quick. I'm going to call it store.
2:33 Apparently it's like, you know what, that's the old one. So I didn't delete it. I thought I could delete and recreate it, but apparently not yet.
2:40 Here we'll call it store. Perfect. Here's our content. And if you want, you can go and use this to upload the files that you manage right here.
2:51 I like tools that are a little bit, I don't know, a little bit better, as we'll see. So I'm gonna set up, go to the FTP and API access to do that.
3:01 You can also set up error handling, replication, and then connected pull zones, which we don't have yet.
3:08 And if you decide you don't need it, you delete it, which when I did the other one, it just wasn't finished. So, in the next video,
3:15 we'll see how to get our content uploaded here. Again, you could do it here, but like a little more polished tools and so on.
3:22 So, we're gonna go do that with something else next.

Talk Python's Mastodon Michael Kennedy's Mastodon