Armchair Architects: Exploring the relationship between Cost and Architecture

Published Apr 27 2022 11:48 AM 2,010 Views
Microsoft

Welcome to season two of the Armchair Architects series! We received great feedback – and lots of good questions and discourse – in season 1, so we’re back for another ten posts and videos from now through mid-Summer.

 

Uli Homann and Eric Charran continue to be our resident experts alongside David Blank-Endelman, host of the Azure Enablement Show. However, this season will feature customer speakers and other activities leading up to the second Backstage Tour virtual event in September.

 

This post focuses on cost considerations when designing your cloud architecture. Too often we hear about architects or developers striving to design the perfect architecture only to realize it’s too expensive once it’s in production. Moreover, the move to cloud makes it possible to rethink costs at the point of design, given that you can refactor the infrastructure choices, which can be more difficult in on-premises environments (the infrastructure is already bought and paid for). It’s one of the key benefits to OpEx versus CapEx models.

 

You can also take advantage of modularity, where some application components (or workloads) require higher availability or security than others so you can more easily optimize for some aspects of the application while saving costs for others.

 

Cloud platforms provide configurable elasticity to grow and shrink infrastructure based on demand. Azure currently has over 70 regions and relationships with partners, like AT&T, who have edge zones that make it possible to scale out to whichever audience or use case your app must support. This flexibility doesn’t come only in the form of actual provisioning, but also in planning the rollout of your app. You can use cost and capacity calculators to determine timing, which could impact the overall cost/benefit structure of your app.

 

These benefits can be awesome, but you still need to determine what your OpEx expenditures will be ahead of time. You need to work forwards from the design to project operating costs for the solution design. It’s almost like a negotiation: if you want x performance or y reliability, it’s going to cost you z amount.

 

Scaling-out isn’t instantaneous or automatic

Architects also need to consider the time it takes to scale-out the provisioning of resources. You need to think about the configuration and control planes for each component to hit the temporal milestones related to the predicted load. For instance, if I’m in a seasonal business where my orders might spike around the Super Bowl, then stepwise plan to scale up in time to hit the demand. In today’s world, you still need to look at each component to flip some switches and turn some dials to do that – but do so that limits the risk of prematurely scaling out or in.

 

Another key consideration is that once you’ve scaled out one component, you may put additional pressure on other components (e.g., a persistent data tier). Considerations include understanding how to scale individual components.  For example, does the database need to scale as well when scaling the compute tier? Or if you scale your overall solution, your monitoring capacity will also need to increase.

 

The concept of scale units, which describe all the resources you need (i.e.: management, application, compute, storage, etc.) to satisfy demand for a specific capacity help in this regard for planning. You can then take advantage of the dynamic scaling capabilities built into the cloud services by triggering the necessary scaling in the respective tier but in an orchestrated manner.

 

The scale unit concept means you plan for scaling dependent application components together according to a predefined methodology, rather than attempt to configure them in real time.  This provides specific slices of capacity that can be scaled-out when the situation demands it. It allows you to scale-out the solution symmetrically.

 

For instance, if you’re in the messaging business (i.e., mail), for 5000 users who need a specific amount of storage, you may need this a symmetric amount of Exchange servers and accompanying monitoring capabilities. Then you take that configuration as a single scale-unit for 5000 and “stamp” it out for however many multiples of 5000 users you have. You could do this for whatever measure of your application.

 

What do you do about unexpected demand?

So, you might know what your email service will do over time, but what about spiky, unexpected demand – like a flash sale or news event? How do you ensure that it won’t bring down the entire service if these triggers are activated?

 

Implementing some core architecture patterns will help with this condition.  The throttling pattern applied to your architecture will assist so that it doesn’t become overwhelmed. Depending on your implementation, throttling behavior will safeguard key experiences, while potentially shedding operations.  In the end, depending on your implementation, you may shed some customers, but you won’t bring down your overall application along the way.

 

You also need to architect in the notion of resiliency, so that if a spike does occur and the service is brought down, the user experience is minimally impacted.

 

Avoiding geo-redundancy naivety

It’s easy to expect that cloud hyperscaler zone and region redundancy will help applications remain available in the event of a catastrophic failure.  In some instances, the cloud provider will fail over to other zones within the region.  In an escalated catastrophe, either within the application, infrastructure, or datacenter itself may require a failover to other regions entirely.  In these scenarios, architects must be vigilant about how their application will behave under these circumstances and how users will get routed to the closest and next available region.

 

A prepared standard operating procedure will help for this condition.  For example, all traffic from the impacted region should be rerouted to the next closest (physically) region. Another ideal situation is to have implemented active-active management of the resources, where there is a hot link between them. The second solution is to use Azure Traffic Management or Azure Front Door to effectively manage the load balance. You’re using traffic shaping and traffic management to make sure there is balance between the regions. This allows you to avoid ‘failover’, given that the other regions just take over. It can be more expensive unless you have a global footprint.

 

But how do you keep the costs down with an active-active scenario? Well, it depends on the SLA and business expectations. If an active-passive scenario is deployed, and the time to bring up the other environment isn’t materially different, then this scenario would make more sense.

 

Summary

So, what’s the takeaway? Cost is now an active ingredient in planning the workload – because it can be. Take advantage of the cloud by planning for elasticity correctly and responsibly the first time.

 

Look for the next episode in season two of Armchair Architects. We’ll be talking about how to become a successful cloud architect. In the meantime, dive a little deeper into this topic by watching the video below.

 

%3CLINGO-SUB%20id%3D%22lingo-sub-3297043%22%20slang%3D%22en-US%22%3EArmchair%20Architects%3A%20Exploring%20the%20relationship%20between%20Cost%20and%20Architecture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3297043%22%20slang%3D%22en-US%22%3E%3CP%3EWelcome%20to%20season%20two%20of%20the%20Armchair%20Architects%20series!%20We%20received%20great%20feedback%20%E2%80%93%20and%20lots%20of%20good%20questions%20and%20discourse%20%E2%80%93%20in%20season%201%2C%20so%20we%E2%80%99re%20back%20for%20another%20ten%20posts%20and%20videos%20from%20now%20through%20mid-Summer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUli%20Homann%20and%20Eric%20Charran%20continue%20to%20be%20our%20resident%20experts%20alongside%20David%20Blank-Endelman%2C%20host%20of%20the%20Azure%20Enablement%20Show.%20However%2C%20this%20season%20will%20feature%20customer%20speakers%20and%20other%20activities%20leading%20up%20to%20the%20second%20Backstage%20Tour%20virtual%20event%20in%20September.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20post%20focuses%20on%20cost%20considerations%20when%20designing%20your%20cloud%20architecture.%20Too%20often%20we%20hear%20about%20architects%20or%20developers%20striving%20to%20design%20the%20perfect%20architecture%20only%20to%20realize%20it%E2%80%99s%20too%20expensive%20once%20it%E2%80%99s%20in%20production.%20Moreover%2C%20the%20move%20to%20cloud%20makes%20it%20possible%20to%20rethink%20costs%20at%20the%20point%20of%20design%2C%20given%20that%20you%20can%20refactor%20the%20infrastructure%20choices%2C%20which%20can%20be%20more%20difficult%20in%20on-premises%20environments%20(the%20infrastructure%20is%20already%20bought%20and%20paid%20for).%20It%E2%80%99s%20one%20of%20the%20key%20benefits%20to%20OpEx%20versus%20CapEx%20models.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20take%20advantage%20of%20modularity%2C%20where%20some%20application%20components%20(or%20workloads)%20require%20higher%20availability%20or%20security%20than%20others%20so%20you%20can%20more%20easily%20optimize%20for%20some%20aspects%20of%20the%20application%20while%20saving%20costs%20for%20others.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECloud%20platforms%20provide%20configurable%20elasticity%20to%20grow%20and%20shrink%20infrastructure%20based%20on%20demand.%20Azure%20currently%20has%20over%2070%20regions%20and%20relationships%20with%20partners%2C%20like%20AT%26amp%3BT%2C%20who%20have%20edge%20zones%20that%20make%20it%20possible%20to%20scale%20out%20to%20whichever%20audience%20or%20use%20case%20your%20app%20must%20support.%20This%20flexibility%20doesn%E2%80%99t%20come%20only%20in%20the%20form%20of%20actual%20provisioning%2C%20but%20also%20in%20planning%20the%20rollout%20of%20your%20app.%20You%20can%20use%20cost%20and%20capacity%20calculators%20to%20determine%20timing%2C%20which%20could%20impact%20the%20overall%20cost%2Fbenefit%20structure%20of%20your%20app.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThese%20benefits%20can%20be%20awesome%2C%20but%20you%20still%20need%20to%20determine%20what%20your%20OpEx%20expenditures%20will%20be%20ahead%20of%20time.%20You%20need%20to%20work%20forwards%20from%20the%20design%20to%20project%20operating%20costs%20for%20the%20solution%20design.%20It%E2%80%99s%20almost%20like%20a%20negotiation%3A%20if%20you%20want%20x%20performance%20or%20y%20reliability%2C%20it%E2%80%99s%20going%20to%20cost%20you%20z%20amount.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EScaling-out%20isn%E2%80%99t%20instantaneous%20or%20automatic%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EArchitects%20also%20need%20to%20consider%20the%20time%20it%20takes%20to%20scale-out%20the%20provisioning%20of%20resources.%20You%20need%20to%20think%20about%20the%20configuration%20and%20control%20planes%20for%20each%20component%20to%20hit%20the%20temporal%20milestones%20related%20to%20the%20predicted%20load.%20For%20instance%2C%20if%20I%E2%80%99m%20in%20a%20seasonal%20business%20where%20my%20orders%20might%20spike%20around%20the%20Super%20Bowl%2C%20then%20stepwise%20plan%20to%20scale%20up%20in%20time%20to%20hit%20the%20demand.%20In%20today%E2%80%99s%20world%2C%20you%20still%20need%20to%20look%20at%20each%20component%20to%20flip%20some%20switches%20and%20turn%20some%20dials%20to%20do%20that%20%E2%80%93%20but%20do%20so%20that%20limits%20the%20risk%20of%20prematurely%20scaling%20out%20or%20in.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20key%20consideration%20is%20that%20once%20you%E2%80%99ve%20scaled%20out%20one%20component%2C%20you%20may%20put%20additional%20pressure%20on%20other%20components%20(e.g.%2C%20a%20persistent%20data%20tier).%20Considerations%20include%20understanding%20how%20to%20scale%20individual%20components.%26nbsp%3B%20For%20example%2C%20does%20the%20database%20need%20to%20scale%20as%20well%20when%20scaling%20the%20compute%20tier%3F%20Or%20if%20you%20scale%20your%20overall%20solution%2C%20your%20monitoring%20capacity%20will%20also%20need%20to%20increase.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20concept%20of%20%3CEM%3Escale%20units%3C%2FEM%3E%2C%20which%20describe%20all%20the%20resources%20you%20need%20(i.e.%3A%20management%2C%20application%2C%20compute%2C%20storage%2C%20etc.)%20to%20satisfy%20demand%20for%20a%20specific%20capacity%20help%20in%20this%20regard%20for%20planning.%20You%20can%20then%20take%20advantage%20of%20the%20dynamic%20scaling%20capabilities%20built%20into%20the%20cloud%20services%20by%20triggering%20the%20necessary%20scaling%20in%20the%20respective%20tier%20but%20in%20an%20orchestrated%20manner.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20scale%20unit%20concept%20means%20you%20plan%20for%20scaling%20dependent%20application%20components%20together%20according%20to%20a%20predefined%20methodology%2C%20rather%20than%20attempt%20to%20configure%20them%20in%20real%20time.%26nbsp%3B%20This%20provides%20specific%20slices%20of%20capacity%20that%20can%20be%20scaled-out%20when%20the%20situation%20demands%20it.%20It%20allows%20you%20to%20scale-out%20the%20solution%20symmetrically.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20instance%2C%20if%20you%E2%80%99re%20in%20the%20messaging%20business%20(i.e.%2C%20mail)%2C%20for%205000%20users%20who%20need%20a%20specific%20amount%20of%20storage%2C%20you%20may%20need%20this%20a%20symmetric%20amount%20of%20Exchange%20servers%20and%20accompanying%20monitoring%20capabilities.%20Then%20you%20take%20that%20configuration%20as%20a%20single%20scale-unit%20for%205000%20and%20%E2%80%9Cstamp%E2%80%9D%20it%20out%20for%20however%20many%20multiples%20of%205000%20users%20you%20have.%20You%20could%20do%20this%20for%20whatever%20measure%20of%20your%20application.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhat%20do%20you%20do%20about%20unexpected%20demand%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ESo%2C%20you%20might%20know%20what%20your%20email%20service%20will%20do%20over%20time%2C%20but%20what%20about%20spiky%2C%20unexpected%20demand%20%E2%80%93%20like%20a%20flash%20sale%20or%20news%20event%3F%20How%20do%20you%20ensure%20that%20it%20won%E2%80%99t%20bring%20down%20the%20entire%20service%20if%20these%20triggers%20are%20activated%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EImplementing%20some%20core%20architecture%20patterns%20will%20help%20with%20this%20condition.%26nbsp%3B%20The%20throttling%20pattern%20applied%20to%20your%20architecture%20will%20assist%20so%20that%20it%20doesn%E2%80%99t%20become%20overwhelmed.%20Depending%20on%20your%20implementation%2C%20throttling%20behavior%20will%20safeguard%20key%20experiences%2C%20while%20potentially%20shedding%20operations.%26nbsp%3B%20In%20the%20end%2C%20depending%20on%20your%20implementation%2C%20you%20may%20shed%20some%20customers%2C%20but%20you%20won%E2%80%99t%20bring%20down%20your%20overall%20application%20along%20the%20way.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20also%20need%20to%20architect%20in%20the%20notion%20of%20resiliency%2C%20so%20that%20if%20a%20spike%20does%20occur%20and%20the%20service%20is%20brought%20down%2C%20the%20user%20experience%20is%20minimally%20impacted.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAvoiding%20geo-redundancy%20naivety%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIt%E2%80%99s%20easy%20to%20expect%20that%20cloud%20hyperscaler%20zone%20and%20region%20redundancy%20will%20help%20applications%20remain%20available%20in%20the%20event%20of%20a%20catastrophic%20failure.%26nbsp%3B%20In%20some%20instances%2C%20the%20cloud%20provider%20will%20fail%20over%20to%20other%20zones%20within%20the%20region.%26nbsp%3B%20In%20an%20escalated%20catastrophe%2C%20either%20within%20the%20application%2C%20infrastructure%2C%20or%20datacenter%20itself%20may%20require%20a%20failover%20to%20other%20regions%20entirely.%26nbsp%3B%20In%20these%20scenarios%2C%20architects%20must%20be%20vigilant%20about%20how%20their%20application%20will%20behave%20under%20these%20circumstances%20and%20how%20users%20will%20get%20routed%20to%20the%20closest%20and%20next%20available%20region.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20prepared%20standard%20operating%20procedure%20will%20help%20for%20this%20condition.%26nbsp%3B%20For%20example%2C%20all%20traffic%20from%20the%20impacted%20region%20should%20be%20rerouted%20to%20the%20next%20closest%20(physically)%20region.%20Another%20ideal%20situation%20is%20to%20have%20implemented%20active-active%20management%20of%20the%20resources%2C%20where%20there%20is%20a%20hot%20link%20between%20them.%20The%20second%20solution%20is%20to%20use%20Azure%20Traffic%20Management%20or%20Azure%20Front%20Door%20to%20effectively%20manage%20the%20load%20balance.%20You%E2%80%99re%20using%20traffic%20shaping%20and%20traffic%20management%20to%20make%20sure%20there%20is%20balance%20between%20the%20regions.%20This%20allows%20you%20to%20avoid%20%E2%80%98failover%E2%80%99%2C%20given%20that%20the%20other%20regions%20just%20take%20over.%20It%20can%20be%20more%20expensive%20unless%20you%20have%20a%20global%20footprint.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20how%20do%20you%20keep%20the%20costs%20down%20with%20an%20active-active%20scenario%3F%20Well%2C%20it%20depends%20on%20the%20SLA%20and%20business%20expectations.%20If%20an%20active-passive%20scenario%20is%20deployed%2C%20and%20the%20time%20to%20bring%20up%20the%20other%20environment%20isn%E2%80%99t%20materially%20different%2C%20then%20this%20scenario%20would%20make%20more%20sense.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESummary%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ESo%2C%20what%E2%80%99s%20the%20takeaway%3F%20Cost%20is%20now%20an%20active%20ingredient%20in%20planning%20the%20workload%20%E2%80%93%20because%20it%20can%20be.%20Take%20advantage%20of%20the%20cloud%20by%20planning%20for%20elasticity%20correctly%20and%20responsibly%20the%20first%20time.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELook%20for%20the%20next%20episode%20in%20season%20two%20of%20Armchair%20Architects.%20We%E2%80%99ll%20be%20talking%20about%20how%20to%20become%20a%20successful%20cloud%20architect.%20In%20the%20meantime%2C%20dive%20a%20little%20deeper%20into%20this%20topic%20by%20watching%20the%20video%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FyiUAZrR9lek%253Flist%253DPLlrxD0HtieHjThIheXKKON1YJA2K2uE-P%26amp%3Bdisplay_name%3DYouTube%26amp%3Burl%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DyiUAZrR9lek%26amp%3Bimage%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FyiUAZrR9lek%252Fhqdefault.jpg%26amp%3Bkey%3Dfad07bfa4bd747d3bdea27e17b533c0e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22600%22%20height%3D%22337%22%20scrolling%3D%22no%22%20title%3D%22Armchair%20Architects%3A%20Exploring%20the%20relationship%20between%20Cost%20and%20Architecture%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3297043%22%20slang%3D%22en-US%22%3E%3CP%3EWelcome%20to%20season%20two%20of%20the%20Armchair%20Architects%20series!%20This%20post%20focuses%20on%20cost%20considerations%20when%20designing%20your%20cloud%20architecture.%20Too%20often%20we%20hear%20about%20architects%20or%20developers%20striving%20to%20design%20the%20perfect%20architecture%20only%20to%20realize%20it%E2%80%99s%20too%20expensive%20once%20it%E2%80%99s%20in%20production.%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Armchair%20architect%20-%20Cost.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367400iC335ABBED54733FE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Armchair%20architect%20-%20Cost.png%22%20alt%3D%22Armchair%20architect%20-%20Cost.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3297043%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWell%20Architected%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Apr 27 2022 11:58 AM
Updated by: