1 00:00:00,770 --> 00:00:05,320 AWS can be very cheap or very expensive depending on how you use it. 2 00:00:05,320 --> 00:00:07,120 To understand pricing on AWS, 3 00:00:07,120 --> 00:00:11,300 we need to talk about two related concepts, space and time. 4 00:00:11,300 --> 00:00:14,260 Space is a measure of capacity or capability. 5 00:00:14,260 --> 00:00:18,060 For example, a computer with a large hard drive is capable of holding a lot of 6 00:00:18,060 --> 00:00:21,390 information, so we say it has a lot of space. 7 00:00:21,390 --> 00:00:24,970 But storage capacity isn't the only kind of capacity there is. 8 00:00:24,970 --> 00:00:27,060 What about processor capacity? 9 00:00:27,060 --> 00:00:30,690 A computer with a fast processor is capable of processing a lot of 10 00:00:30,690 --> 00:00:31,950 information. 11 00:00:31,950 --> 00:00:35,080 So we also say it has a lot of space, even if it has a small hard drive. 12 00:00:36,140 --> 00:00:37,590 There's also network capacity, 13 00:00:37,590 --> 00:00:41,660 which is how fast the computer is able to talk to other computers. 14 00:00:41,660 --> 00:00:45,640 We could say that a computer with a very fast network has a lot of space. 15 00:00:45,640 --> 00:00:50,220 Basically, you can think of space as a measure of how powerful a computer is. 16 00:00:50,220 --> 00:00:54,090 More powerful computers are capable of holding more stuff and doing more stuff. 17 00:00:55,580 --> 00:00:56,980 Then there's time. 18 00:00:56,980 --> 00:00:58,622 Time is a pretty straightforward concept. 19 00:00:58,622 --> 00:01:02,620 It's a measure of how long it takes to do something, but things get a bit 20 00:01:02,620 --> 00:01:05,710 more complicated when you have multiple actors working simultaneously. 21 00:01:06,730 --> 00:01:09,290 Let's say you need to stuff 60 envelopes and 22 00:01:09,290 --> 00:01:12,010 it takes a minute to stuff one envelope. 23 00:01:12,010 --> 00:01:13,450 Its going to take 60 minutes of work, right. 24 00:01:14,700 --> 00:01:17,740 Well, what if we have four people stuffing envelop simultaneously? 25 00:01:18,750 --> 00:01:23,651 Each person only has to stuff 15 envelops, so it takes 15 minutes. 26 00:01:23,651 --> 00:01:26,170 But the task hasn't gotten any smaller. 27 00:01:26,170 --> 00:01:30,460 It's still 60 minutes of work even if it only took 15 minutes of time on the clock. 28 00:01:31,590 --> 00:01:35,840 When we talk about time with computers, we're usually talking about the total work 29 00:01:35,840 --> 00:01:40,300 time added up across all the computers that are working on the task together. 30 00:01:40,300 --> 00:01:42,950 So how does all this relate to AWS? 31 00:01:42,950 --> 00:01:46,310 Anything that you do on AWS will require some amount of space, 32 00:01:46,310 --> 00:01:48,010 some amount of time, or both. 33 00:01:49,090 --> 00:01:52,670 The price you pay is based on space multiplied by time. 34 00:01:52,670 --> 00:01:56,760 In addition, you can usually trade space for time, at least to some degree. 35 00:01:56,760 --> 00:02:00,080 Let's take a look at an example to understand what this means. 36 00:02:00,080 --> 00:02:02,070 You and your friends are going on vacation and 37 00:02:02,070 --> 00:02:04,220 you'll all be staying at the Amazon Hotel. 38 00:02:04,220 --> 00:02:06,360 You need to decide how many rooms to book and 39 00:02:06,360 --> 00:02:08,520 how many nights you'll be staying at the hotel. 40 00:02:08,520 --> 00:02:12,400 At the Amazon hotel, you can book a regular room or a suite. 41 00:02:12,400 --> 00:02:16,260 A suite has more space, but it costs more money than a regular room. 42 00:02:16,260 --> 00:02:19,470 How do you make sure that you can stay at the hotel as long as possible 43 00:02:19,470 --> 00:02:21,160 while not paying too much money? 44 00:02:21,160 --> 00:02:23,260 You could all try to squeeze into one room. 45 00:02:23,260 --> 00:02:25,550 This means that you'll be able to stay at the Amazon hotel for 46 00:02:25,550 --> 00:02:28,510 a long time, because one room isn't very expensive. 47 00:02:28,510 --> 00:02:32,350 However, you're sacrificing space to get that extra time, and 48 00:02:32,350 --> 00:02:34,880 no one will sleep very well in that cramped space. 49 00:02:34,880 --> 00:02:37,550 Alternatively, everyone could get their own room, or 50 00:02:37,550 --> 00:02:39,520 even their own separate suite. 51 00:02:39,520 --> 00:02:43,200 Now, everyone has a lot of space, but that gets expensive quickly and 52 00:02:43,200 --> 00:02:46,400 you might only be able to afford one night at the hotel. 53 00:02:46,400 --> 00:02:50,290 Effectively, you're sacrificing time to get that extra space. 54 00:02:50,290 --> 00:02:52,530 The best approach is somewhere in the middle. 55 00:02:52,530 --> 00:02:56,860 A small number of rooms and suites, shared so that everyone has just enough space 56 00:02:56,860 --> 00:02:59,950 will make sure that you pay the minimum amount for the maximum benefit.