1 00:00:09,446 --> 00:00:13,046 Lee: Hello and welcome to Software Architecture Insights, your go-to 2 00:00:13,046 --> 00:00:17,186 resource for empowering software architects and aspiring professionals 3 00:00:17,456 --> 00:00:21,686 with the knowledge and tools they require to navigate the complex 4 00:00:21,686 --> 00:00:24,476 landscape of modern software design. 5 00:00:27,500 --> 00:00:29,354 Your cloud spend is up again. 6 00:00:30,237 --> 00:00:35,014 Finance puts the chart on the screen and everyone in the room looks at engineering. 7 00:00:36,419 --> 00:00:38,954 So you do what a responsible team does. 8 00:00:39,358 --> 00:00:43,454 You turn on tagging so every dollar traces back to a team. 9 00:00:44,655 --> 00:00:47,856 You right-size the instances that are bigger than they need to be. 10 00:00:48,935 --> 00:00:51,101 You switch off the things nobody uses. 11 00:00:51,885 --> 00:00:55,383 You buy reserved capacity for the workloads that you know 12 00:00:55,384 --> 00:00:56,954 will still be running next year. 13 00:00:58,355 --> 00:00:59,635 And it works. 14 00:01:00,265 --> 00:01:03,654 The first pass takes fifteen, maybe twenty percent off the bill. 15 00:01:05,072 --> 00:01:07,817 Then the bill starts climbing again anyway. 16 00:01:08,778 --> 00:01:13,884 Here's why, and it's the first argument in my course, Architecting for Cost. 17 00:01:14,603 --> 00:01:16,363 I call it the floor. 18 00:01:17,617 --> 00:01:19,932 Let me start by defending the playbook. 19 00:01:20,909 --> 00:01:27,192 Tagging, right sizing, cleanup, and commitment, all that is real work. 20 00:01:27,897 --> 00:01:32,135 They're usually the fastest money in the building, and they need almost 21 00:01:32,144 --> 00:01:34,685 nothing from engineering except access. 22 00:01:35,111 --> 00:01:38,273 If your company hasn't done those things yet to try and reduce your cloud 23 00:01:38,273 --> 00:01:41,178 bill, stop listening and go do them. 24 00:01:41,660 --> 00:01:42,516 and I mean that. 25 00:01:43,516 --> 00:01:45,944 But watch what happens over the next year. 26 00:01:46,903 --> 00:01:52,822 The first pass of doing that process finds 15 or 20%, and your cloud bill 27 00:01:52,834 --> 00:01:55,847 does actively go down for a while. 28 00:01:57,120 --> 00:01:59,495 The second pass finds maybe 4%. 29 00:02:00,387 --> 00:02:05,103 The third pass takes engineering weeks, and you end up finding 30 00:02:05,107 --> 00:02:06,508 just a little rounding error. 31 00:02:07,821 --> 00:02:12,375 Most teams read that as a discipline problem, so they 32 00:02:12,406 --> 00:02:14,193 add a monthly cost review. 33 00:02:14,884 --> 00:02:17,110 They put a dashboard up on the wall. 34 00:02:17,654 --> 00:02:22,269 They assign someone to chase the top 10 line items, but the 35 00:02:22,271 --> 00:02:24,609 growth curve just doesn't change. 36 00:02:25,609 --> 00:02:31,708 The reason is that every technique in the playbook stops at the exact same place. 37 00:02:32,583 --> 00:02:38,010 Right sizing makes a wasteful instance cheaper, but it can't 38 00:02:38,043 --> 00:02:40,067 make the instance unnecessary. 39 00:02:41,567 --> 00:02:47,133 Tagging tells you what team owns a line item and never tells you once why the 40 00:02:47,135 --> 00:02:49,152 line item exists in the first place. 41 00:02:50,539 --> 00:02:54,856 A reserved instance commitment buys the same capacity at a discount, 42 00:02:55,582 --> 00:02:57,791 but you still bought the capacity. 43 00:02:58,791 --> 00:03:04,385 Finance can run all three perfectly well and still hit the same floor. 44 00:03:05,400 --> 00:03:08,903 Everything left on the bill is there because of a decision somebody 45 00:03:08,911 --> 00:03:14,005 already made, and you can't see those decisions from a spreadsheet. 46 00:03:15,005 --> 00:03:16,209 Let me show you one. 47 00:03:17,117 --> 00:03:20,258 A team breaks a monolith into 40 services. 48 00:03:21,254 --> 00:03:27,984 They do that for good reasons: independent deploys, clear ownership, teams that 49 00:03:28,004 --> 00:03:29,954 stop waiting on each other to ship. 50 00:03:30,972 --> 00:03:34,753 For a large organization, moving from a monolith to services can 51 00:03:34,753 --> 00:03:37,263 be real valuable work to be done. 52 00:03:37,934 --> 00:03:40,247 But here's what comes along with it. 53 00:03:41,259 --> 00:03:47,032 40 load balancers, at least 80 instances because each service needs 54 00:03:47,032 --> 00:03:53,351 at least two in order to stay highly available, 40 connection pools to your 55 00:03:53,351 --> 00:04:01,078 database, most of them are idle, 40 log streams And calls that used to be 56 00:04:01,079 --> 00:04:04,102 function calls now cross the network. 57 00:04:04,564 --> 00:04:10,222 Some of those cross a zone boundary and that traffic is metered and billed. 58 00:04:11,222 --> 00:04:14,346 None of that was on the whiteboard during the design review where you 59 00:04:14,347 --> 00:04:17,771 decided to move to a service-based architecture in the first place. 60 00:04:18,586 --> 00:04:25,030 All of it has been on the bill every month since Here's a second example. 61 00:04:25,415 --> 00:04:29,276 A team commits to a 15-minute recovery point for a database. 62 00:04:29,869 --> 00:04:31,100 That's a reasonable target. 63 00:04:31,802 --> 00:04:35,223 Someone senior asked for it, and nobody wanted to be the person 64 00:04:35,244 --> 00:04:37,102 arguing for more data loss. 65 00:04:38,293 --> 00:04:41,521 But 15 minutes means continuous replication. 66 00:04:42,435 --> 00:04:48,038 That means a warm standby, maybe in a second region, with duplicate storage. 67 00:04:48,400 --> 00:04:54,362 And every single write crosses a region boundary and gets billed 68 00:04:55,082 --> 00:04:56,384 for the life of the system. 69 00:04:57,636 --> 00:05:04,576 An architect made that call in a meeting where nobody said a price out loud Now 70 00:05:04,581 --> 00:05:06,346 put an analyst in front of that bill. 71 00:05:07,274 --> 00:05:11,273 They can see the load balancer line and the data transfer line rising 72 00:05:11,274 --> 00:05:13,225 together quarter after quarter. 73 00:05:13,974 --> 00:05:14,819 They can chart it. 74 00:05:15,472 --> 00:05:17,493 They can allocate it to the right team. 75 00:05:18,277 --> 00:05:21,671 They can ask the platform group to even explain what it is. 76 00:05:22,640 --> 00:05:29,244 What they can't do is decide that two of those 40 services should be one, or that 77 00:05:29,244 --> 00:05:34,723 a four-hour recovery point would probably be good enough, Or that a single region 78 00:05:34,723 --> 00:05:36,442 is good enough for this application. 79 00:05:37,354 --> 00:05:42,506 Those calls need someone who knows what the services do, who depends on 80 00:05:42,507 --> 00:05:45,159 them, and what breaks if they change. 81 00:05:45,953 --> 00:05:50,268 In most companies, that person is the software architect, probably 82 00:05:50,268 --> 00:05:54,185 you, and you almost certainly don't own the cloud budget. 83 00:05:55,025 --> 00:05:59,760 You'll still be asked to explain it, to defend it, and to bring it down. 84 00:06:00,587 --> 00:06:04,165 You're accountable for a number that you don't control. 85 00:06:05,165 --> 00:06:07,689 So where do you have leverage? 86 00:06:08,396 --> 00:06:10,966 Your leverage comes early in the process. 87 00:06:11,681 --> 00:06:15,799 By the time a line item shows up on an invoice, the decision 88 00:06:15,809 --> 00:06:19,233 behind it is months or years old. 89 00:06:20,115 --> 00:06:24,251 Undoing it costs a migration project and a spot on somebody's roadmap 90 00:06:24,263 --> 00:06:25,681 for at least a quarter or two. 91 00:06:26,681 --> 00:06:32,790 Made in the design review, the same decision costs one more conversation. 92 00:06:33,790 --> 00:06:37,387 Cost work at the end of the quarter is expensive cleanup. 93 00:06:37,756 --> 00:06:42,756 Cost work done early on during the design review, that's 94 00:06:42,756 --> 00:06:46,330 architecture Now, one caveat here. 95 00:06:47,195 --> 00:06:50,522 If you haven't done the basics that we talked about early on, 96 00:06:50,965 --> 00:06:52,936 the floor isn't your problem yet. 97 00:06:53,616 --> 00:06:56,871 Tagging and right-sizing, those things come first, and they'll 98 00:06:56,934 --> 00:06:58,491 pay for themselves quickly. 99 00:06:59,575 --> 00:07:04,114 And if the system is small and the bill is small, a long design 100 00:07:04,114 --> 00:07:07,534 conversation costs more than it saves. 101 00:07:08,436 --> 00:07:12,628 Some savings really are just on the invoice, and finance 102 00:07:12,700 --> 00:07:14,256 can get those done fine. 103 00:07:15,015 --> 00:07:20,518 The floor matters once the easy money is gone and the bill is still growing. 104 00:07:21,921 --> 00:07:26,869 So this week, open your bill and pick the three biggest lines 105 00:07:26,936 --> 00:07:29,022 that aren't plain computing. 106 00:07:29,729 --> 00:07:35,546 Things like load balancers, data transfer, replication, storage 107 00:07:35,549 --> 00:07:38,072 tiers, whatever is the biggest. 108 00:07:38,705 --> 00:07:42,349 For each one, find the decision behind it. 109 00:07:43,091 --> 00:07:44,335 Who made the decision? 110 00:07:44,899 --> 00:07:46,699 When was the decision made? 111 00:07:48,043 --> 00:07:51,339 And whether anyone priced it at the time or not. 112 00:07:52,812 --> 00:07:55,336 Then add one question to your next design review. 113 00:07:56,037 --> 00:07:59,281 What will this design cost every month? 114 00:07:59,877 --> 00:08:02,640 And which part of the design sets that number? 115 00:08:03,846 --> 00:08:07,779 If nobody can answer that question, you've found your floor. 116 00:08:08,779 --> 00:08:13,179 This is the first lesson in my new course, Architecting for Cost, a course 117 00:08:13,180 --> 00:08:19,198 designed to help software architects get a handle on cloud computing costs. 118 00:08:19,800 --> 00:08:24,221 The launch price for this course is $495 instead of the normal 119 00:08:24,229 --> 00:08:28,957 $695, and that special runs through Tuesday, December 1st. 120 00:08:30,248 --> 00:08:34,326 I'm also walking through the same argument in a free webinar this Thursday, 121 00:08:34,611 --> 00:08:37,768 November 19th, at 10:00 AM Pacific Time. 122 00:08:38,313 --> 00:08:41,075 It's called When the Cloud Savings Stop. 123 00:08:41,586 --> 00:08:44,920 The link to the webinar and to the course are both in the show notes 124 00:09:03,474 --> 00:09:06,384 Lee: Thank you for joining us on Software Architecture Insights. 125 00:09:06,984 --> 00:09:11,094 If you found this episode interesting, please tell your friends and colleagues. 126 00:09:11,514 --> 00:09:14,124 You can listen to Software Architecture Insights on all 127 00:09:14,124 --> 00:09:16,044 of the major podcast platforms. 128 00:09:17,064 --> 00:09:20,984 And if you want more from me, take a look at some of my many articles 129 00:09:20,984 --> 00:09:23,844 at softwarearchitectureinsights.com. 130 00:09:23,844 --> 00:09:29,744 And while you're there, join the 2000 people who have subscribed to my 131 00:09:29,744 --> 00:09:34,604 newsletter, so you always get my latest content as soon as it's available. 132 00:09:39,811 --> 00:09:42,661 Thank you for listening to Software Architecture Insights.