<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tanusree McCabe on Medium]]></title>
        <description><![CDATA[Stories by Tanusree McCabe on Medium]]></description>
        <link>https://medium.com/@Tanusree.McCabe?source=rss-84558ea84dc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xQy29pw-9onSeWTVgihugA.jpeg</url>
            <title>Stories by Tanusree McCabe on Medium</title>
            <link>https://medium.com/@Tanusree.McCabe?source=rss-84558ea84dc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:25:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Tanusree.McCabe/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[One Architect’s View on What’s Next in Cloud Architecture]]></title>
            <link>https://medium.com/capital-one-tech/one-architects-view-on-what-s-next-in-cloud-architecture-412a93968071?source=rss-84558ea84dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/412a93968071</guid>
            <category><![CDATA[cloud-architecture]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <dc:creator><![CDATA[Tanusree McCabe]]></dc:creator>
            <pubDate>Wed, 19 Jan 2022 17:22:27 GMT</pubDate>
            <atom:updated>2022-01-19T17:22:27.838Z</atom:updated>
            <content:encoded><![CDATA[<h4>A 2021 retrospective on cloud architecture, with a look ahead for 2022</h4><figure><img alt="skyscraper windows with cloudy sky reflecting through" src="https://cdn-images-1.medium.com/max/936/0*S-6CjAr09xsCa9x_.jpg" /></figure><p>Can you believe that the AWS public cloud has been around for <a href="https://www.youtube.com/watch?v=WGA2P_oH5Xc">fifteen</a> years? Fortunately for cloud enthusiasts, there’s no sign of slowing down in the momentum of technological innovation and possibilities with the cloud. I belong in the cloud enthusiast category, as I’ve been a practitioner and advocate of cloud architecture in my <a href="https://www.google.com/url?q=https://www.capitalone.com/tech/software-engineering/effective-enterprise-architecture-manifesto/&amp;sa=D&amp;source=docs&amp;ust=1638555862690000&amp;usg=AOvVaw10TivMPUxITGM9wB5B0pxx">enterprise architecture</a> role for the past several years. I’ve seen organizations evolve from migrating to the cloud to performing cloud native development, and the journey isn’t over yet! As organizations continue to mature their usage of cloud, AWS keeps providing new advancements. In this article, I recap major cloud architecture themes from 2021 and how they may evolve in 2022.</p><h3>Serverless — continued expansion, complimentary to containers</h3><p>Ever since serverless roared onto the cloud scene in <a href="https://www.infoworld.com/article/3406501/what-is-serverless-serverless-computing-explained.html#:~:text=The%20modern%20age%20of%20serverless,production%20status%20in%20July%202018.">2014</a>, <a href="https://www.datadoghq.com/state-of-serverless/">serverless adoption</a> has been on the rise. Serverless reduces the complexity of managing infrastructure and integrations, allowing teams to focus on business logic and add new features quickly. Previously, this benefit to some degree was achieved via containerization. Serverless doesn’t mean that containers are going away; containers are very relevant as a packaging mechanism for <a href="https://www.google.com/url?q=https://www.capitalone.com/tech/cloud/3-considerations-for-containers--serverless-compute-options/&amp;sa=D&amp;source=docs&amp;ust=1638555744683000&amp;usg=AOvVaw2O_RhdmzwmsgsAL8sKd9d4">serverless compute options</a>. For instance, AWS Lambda supports containers as a packaging mechanism and AWS Fargate relies on them for its integration with AWS ECS and AWS EKS. The continued usage of containers is great since many corporations have already invested in container supply chains.</p><p>At the 2021 Re:Invent, AWS announced serverless previews for services such as <a href="https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-msk-serverless-public-preview/">Amazon MSK,</a> <a href="https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-redshift-serverless/">Amazon Redshift</a> and <a href="https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-emr-serverless-preview/">Amazon EMR</a>. I expect that this trend will continue and additional services will provide a serverless offering. That is good news for cloud-based architectures that go beyond the typical web application or microservice to leverage a wider array of AWS offerings. Now they can attain a fully serverless architecture, too.</p><p>In addition, services such as <a href="https://aws.amazon.com/about-aws/whats-new/2021/09/aws-step-functions-200-aws-sdk-integration/">AWS Step Functions</a> announced even more native integrations with other AWS Services. That reduces the need to maintain custom solutions for event driven integration. With such seamless integration, I expect going forward, serverless event driven architectures will take root in even more areas such as machine learning.</p><h3>DevOps — shifting left with a focus on infrastructure as code</h3><p>To me, designing robust architectures for the cloud is synonymous with automation. DevOps emphasizes automation through <a href="https://docs.aws.amazon.com/whitepapers/latest/introduction-devops-aws/infrastructure-as-code.html">infrastructure as code</a>, <a href="https://aws.amazon.com/devops/continuous-integration/">continuous integration (CI)</a> and <a href="https://aws.amazon.com/devops/continuous-delivery/">continuous delivery (CD)</a> to enable faster high quality, secure releases.</p><p>In 2021, we saw further advances in this arena, from <a href="https://aws.amazon.com/about-aws/whats-new/2021/12/aws-cloud-development-kit-cdk-generally-available/">Amazon’s CDK</a> and <a href="https://aws.amazon.com/about-aws/whats-new/2021/11/ci-cd-configuration-aws-serverless-applications-system-general-availability/">SAM pipelines</a> for infrastructure as code automation to ML based DevOps in <a href="https://aws.amazon.com/about-aws/whats-new/2021/06/aws-announces-the-general-availability-of-aws-proton/">AWS Proton</a>.</p><p>The importance of being able to release confidently and quickly cannot be understated. This is key to enabling agility. I expect that in 2022 and beyond we will see more advances in this area as we shift compliance left (e.g. hooks), simplify pipelines by making a distinction between CI and CD, and scale to handle greater degrees of application complexity.</p><h3>Resiliency — bolstering data durability, chaos engineering and cell based architecture</h3><p>A key cloud tenet is around scalability and availability. Additionally, AWS has recognized that data durability is an important part of the stability equation since the recovery of data in a failure event is key to reliability. The ability to test failures as part of application build and deployment is also essential to ensure that the application can, in fact, recover from failure.</p><p>In 2021, AWS continued to publish <a href="https://aws.amazon.com/legal/service-level-agreements/?aws-sla-cards.sort-by=item.additionalFields.serviceNameLower&amp;aws-sla-cards.sort-order=asc&amp;awsf.tech-category-filter=*all">SLAs</a> for their services, and expanded data durability capabilities such as AWS Backup (e.g. <a href="https://aws.amazon.com/about-aws/whats-new/2021/04/amazon-fsx-aws-backup-announce-support-copying-file-system-backups-across-regions-accounts/">file system backups</a>, <a href="https://aws.amazon.com/about-aws/whats-new/2021/03/aws-backup-adds-support-for-continuous-backup-and-point-in-time-recovery-of-amazon-rds-instances/">RDS</a>). They also dipped into chaos engineering with <a href="https://aws.amazon.com/about-aws/whats-new/2021/03/aws-announces-service-aws-fault-injection-simulator/">fault injection simulator</a> on select services. Chaos engineering is a mechanism of resiliency testing, which is a key ingredient in <a href="https://www.capitalone.com/tech/cloud/4-steps-for-pairing-the-cloud-and-devops-to-improve-resiliency/">pairing cloud and DevOps to increase resiliency</a>. I expect there will be continued advances to support data durability and chaos engineering in 2022 and beyond.</p><p>In addition, I believe that <a href="https://www.youtube.com/watch?v=swQbA4zub20">cell-based architectures</a>, as shared by AWS in 2018 re:invent, will be an essential part of future cloud architectures. Cell-based architectures are a natural progression of applying fault domain concepts to an application; rather than a fault domain being a zone or a region, a cell based architecture can be agnostic of both. I expect that AWS will continue to provide advances that allow for cell based architectures to be easier to adopt (e.g. <a href="https://aws.amazon.com/blogs/aws/amazon-route-53-application-recovery-controller/">Amazon Route53 Application Recovery Controller</a>).</p><h3>Optimization — enabling optimum workload performance and cost</h3><p>As more and more organizations succeed in getting into the cloud, the question arises of ‘now what?’ One word: <em>optimization</em>.</p><p>AWS has trended in the direction of providing ever more mature insights enabling workload optimization, from <a href="https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-cloudwatch-metrics-insights-preview/">CloudWatch Insights</a> to <a href="https://aws.amazon.com/aws-cost-management/">cost management resources</a>. These capabilities are essential to enabling both performance and <a href="https://www.capitalone.com/tech/cloud/cloud-cost-optimization/">cloud cost optimization</a>. Speaking of cost, AWS has also delivered more capabilities that allow for flexible cost control; for example, tiered storage for services such as <a href="https://aws.amazon.com/about-aws/whats-new/2021/05/amazon-elasticsearch-service-announces-a-new-lower-cost-storage-tier/">Elastic Search</a> and <a href="https://aws.amazon.com/about-aws/whats-new/2021/11/s3-intelligent-tiering-archive-instant-access-tier/">AWS S3</a>.</p><p>I expect that we will continue to see cost levers by service becoming more transparent and configurable to enable delivery teams to optimize their workloads. That being said, good application design is still paramount — domain-driven architectures, microservices, CAP theorem, etc all need to be well understood and incorporated into effective workload design and implementation.</p><h3>2022 will continue the cloud momentum observed in 2021</h3><p>Serverless and DevOps helped enable key architecture characteristics such as resiliency. Optimization is moving to the forefront because it’s not beneficial enough to just be in the cloud; it’s all about being in the cloud <strong>and</strong> doing it well. Fifteen years in, it’s still an exciting time to be a cloud architect. 2021 brought about some great advances in the field, and I look forward to seeing even more advances in 2022.</p><p><em>DISCLOSURE STATEMENT: © 2022 Capital One. Opinions are those of the individual author. Unless noted otherwise in this post, Capital One is not affiliated with, nor endorsed by, any of the companies mentioned. All trademarks and other intellectual property used or displayed are property of their respective owners.</em></p><p><em>Originally published at </em><a href="https://www.capitalone.com/tech/cloud/whats-new-in-cloud-architecture-for-2022/"><em>https://www.capitalone.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=412a93968071" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capital-one-tech/one-architects-view-on-what-s-next-in-cloud-architecture-412a93968071">One Architect’s View on What’s Next in Cloud Architecture</a> was originally published in <a href="https://medium.com/capital-one-tech">Capital One Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Manifesto for Effective Enterprise Architecture]]></title>
            <link>https://medium.com/capital-one-tech/a-manifesto-for-effective-enterprise-architecture-7e887185f587?source=rss-84558ea84dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e887185f587</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[enterprise-architecture]]></category>
            <dc:creator><![CDATA[Tanusree McCabe]]></dc:creator>
            <pubDate>Wed, 21 Oct 2020 14:11:36 GMT</pubDate>
            <atom:updated>2020-10-21T14:11:36.260Z</atom:updated>
            <content:encoded><![CDATA[<h4>4 principles to guide successful architects and architecture</h4><figure><img alt="2 animated men in yellow jackets and construction hats staring at blue buildings" src="https://cdn-images-1.medium.com/max/1024/0*zBDzNAlIszpQ_RaO" /></figure><p>As an architect at Capital One, one of my major goals is to establish better ways of performing the architect function. To me, the primary value of enterprise architecture is in defining the ‘north star’ or strategic direction for the course of one or more capabilities. An architect’s success in living up to this value can be measured in a number of ways, but based on my 10 years of experience, I propose the following four principles to help guide effective enterprise architecture:</p><ol><li>Contextual understanding <em>over </em>siloed decision making.</li><li>Tangible direction<em> over</em> stale documentation.</li><li>Driving behavior <em>over</em> enforcing standards.</li><li>Evolution <em>over</em> frameworks.</li></ol><p>As stated in the <a href="https://agilemanifesto.org/">Agile Manifesto</a>, <em>“That is, while there is value in the items on the right, we value the items on the left more.”</em> Similarly, these principles comprise an ‘Architecture Manifesto’ that emphasizes the items on the left as more valuable than the items on the right. Let’s dive a little deeper on each one of these.</p><h4>1. Contextual Understanding Over Siloed Decision Making</h4><p>It is rare that a decision can be made without consideration of any trade-offs. Often, the quality of a decision is directly impacted by the experience and knowledge of the person that made it. The caution here is to avoid being an<em> aloof</em> architect. An aloof architect is someone who makes decisions based solely on one’s own experiences and siloed considerations. An aloof architect typically has good intentions but will miss important considerations and that inevitably leads to flawed decision making.</p><p>Rather, be an <em>aware </em>architect. An aware architect provides context from many different perspectives, ranging from business to technical, across different disciplines and subject matter domains. An aware architect is always learning and able to bring in their context to inform the decision making process. An aware architect is also self-aware in understanding his or her own limits, and will bring in additional expertise as needed to supplement their own contextual understanding. Decisions made with contextual understanding are likely to be less brittle and more sustainable than otherwise. This is key in architectural decision making since, while architectures do evolve over time, changing certain architectural decisions after implementation can be very painful and very difficult. Enabling flexibility as an outcome is key to <a href="https://www.thoughtworks.com/books/building-evolutionary-architectures">evolutionary architecture</a>.</p><h4>2. Tangible Direction Over Stale Documentation</h4><p>The adage that a picture is worth a thousand words is still true, and having a reference architecture document that multiple parties can use to understand their proposed target state is also useful. The caution here is to avoid being an <em>archaeological</em> architect. An archaeological architect is someone stuck in the cycle of documenting current state and forever updating current state as the delivery teams continue to release. This is a trap of reactive thinking and offers very little value.</p><p>Rather, be an <em>ambitious</em> architect. The ambitious architect is someone who upholds the documentation focus to be on the proposed future, and the decisions made to define that future, to sustain consistent thinking for posterity. This allows for the right kind of conversations and deliberations to be proactive and strategic. To point out what is feasible and what is a constraint, and to formulate a tangible plan to overcome challenges to achieve the proposed target. This kind of conversation and partnership is key to the success of the architect.</p><h4>3. Driving Behavior Over Enforcing Standards</h4><p>While an important outcome of architecture strategy is standardization and re-use of patterns, technologies, and solutions, that doesn’t mean that architects should strive to only be enforcers of standards. The caution here is to avoid being the <em>administrative</em> architect. An administrative architect is someone who focuses on compliance to the rules and regulations to the detriment of everything else.</p><p>Rather, be an <em>ambassador </em>architect. An ambassador architect is someone who understands the rules and regulations, the acceptable proven patterns and solutions, to guide the delivery teams on the expectations of adherence. This position allows for driving the right behaviors with the flexibility for delivery teams to innovate within the guardrails that are laid out in the pursuit of safety and security. An ambassador architect is someone who is also willing to listen to feedback, and able to relay that feedback into improving the standards. Evolving standards and challenging the status-quo based on reality and innovation is necessary to improve the overall architecture guidance.</p><h4>4. Evolution Over Frameworks</h4><p>A good framework can provide a re-usable, clear methodology for solving problems and enabling consistency. The caution here is to avoid being an <em>afraid</em> architect. An afraid architect is someone who performs rigidly by the details of expansive frameworks to try to output what is needed. This is problematic in that it does very little to move the needle strategically. A strategy will be produced, yes; but it likely will not offer as many benefits as it could.</p><p>Rather, be an <em>audacious</em> architect. An audacious architect understands the framework well enough to focus on its value driven output. An audacious architect can evolve the framework itself if needed and moreover understands that architecture solutions can evolve over time. Embracing change to inform better architectures can be risky, yet it is often a risk well worth taking. An audacious architect is always learning and keeps skills and knowledge of business and technology up to date.</p><h4>Applying the Four Principles of the Architecture Manifesto</h4><p>I hope that this architecture manifesto will resonate with you to improve your architect function and guide your ability to output increasingly effective enterprise architecture strategies. An architect that can respect, yet not be bound by, constraints in people, process, or technology is one that can define a ‘north star’ that allows for truly impactful changes. Architects bring value to the teams that they support through their contextual understanding and their achievable vision, by driving the right behaviors and embracing evolution for innovative yet compliant delivery. Such an architect is aware, ambitious, audacious and an ambassador, able to collaborate and output an effective, meaningful enterprise architecture strategy.</p><p><em>City vector created by prostockstudio — </em><a href="http://www.freepik.com/"><em>www.freepik.com</em></a></p><p><em>DISCLOSURE STATEMENT: © 2020 Capital One. Opinions are those of the individual author. Unless noted otherwise in this post, Capital One is not affiliated with, nor endorsed by, any of the companies mentioned. All trademarks and other intellectual property used or displayed are property of their respective owners.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e887185f587" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capital-one-tech/a-manifesto-for-effective-enterprise-architecture-7e887185f587">A Manifesto for Effective Enterprise Architecture</a> was originally published in <a href="https://medium.com/capital-one-tech">Capital One Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 3 R’s of SREs: Resiliency, Recovery & Reliability]]></title>
            <link>https://medium.com/capital-one-tech/the-3-rs-of-sres-resiliency-recovery-reliability-5f2f5360a91b?source=rss-84558ea84dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f2f5360a91b</guid>
            <category><![CDATA[resiliency]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[reliability]]></category>
            <category><![CDATA[sre]]></category>
            <dc:creator><![CDATA[Tanusree McCabe]]></dc:creator>
            <pubDate>Mon, 05 Oct 2020 15:37:05 GMT</pubDate>
            <atom:updated>2020-10-05T15:37:05.659Z</atom:updated>
            <content:encoded><![CDATA[<h4>Using the 3 R’s as a lens to architect reliable applications</h4><figure><img alt="line of construction worker characters in different poses" src="https://cdn-images-1.medium.com/max/1024/0*_ncIsxoKpR863Ely" /></figure><p>In my work as an architect for resiliency and site reliability engineering (SRE) at Capital One, the concepts of resiliency, recovery, and reliability are fundamental to architecting proven applications. Each concept builds on the other to provide a framework of architectural considerations through different lenses that together enable a more reliable product.</p><p>But first, let’s level our understanding on the 3 R’s and their definitions.</p><h3>Defining Resiliency, Recovery, and Reliability</h3><ol><li><strong>Resiliency</strong> is the ability to avoid or mitigate impact from an adverse event by quickly responding to, and fully recovering after, a failure. A focus on resiliency typically amounts to an emphasis on <em>high availability</em>. This allows for increased uptime.</li><li><strong>Recovery </strong>is the<strong> </strong>ability to restore service when failure occurs. As mentioned above, recovery is essential to strong resilience. Recovery directly impacts <a href="https://en.wikipedia.org/wiki/Disaster_recovery#:~:text=The%20Recovery%20Time%20Objective%20(RTO,a%20break%20in%20business%20continuity">Recovery Time Objective (RTO)</a>, the time duration for an application to return to normal service levels after a failure, and <a href="https://en.wikipedia.org/wiki/Disaster_recovery">Recovery Point Objective (RPO)</a>, the tolerance to data loss in terms of time duration. A focus on recovery typically leads to a well founded understanding of both design time and runtime dependencies due to the need to determine recovery methods for all possible failure points. This allows for the elimination of single points of failure and protection against potential failures and data loss.</li><li><strong>Reliability</strong> is the ability for a service to provide its expected functions. As laid out by <a href="https://landing.google.com/sre/">Google for SRE</a>, there are a number of concepts that go into reliability, ranging from technical execution to process and culture. A focus on reliability typically results in stability aligned to customer expectations. <em>Note, stability in this context also includes security. A reliable system is one that is performant, secure, and meets service level objectives (SLOs), thereby instilling trust.</em></li></ol><h3>Using the 3 R’s to Design a System</h3><p>Next, let’s take a look at how to apply the 3 R’s to designing a system. Let’s assume it is a very simple AWS application like so, where the compute layer is a web tier servicing customer transactions, and the database stores transactional information:</p><figure><img alt="Simple cloud based system with an EC2 and an RDS instance in an AWS VPC" src="https://cdn-images-1.medium.com/max/523/0*6g89DH7oKuGSVBzm" /></figure><h3>The Resiliency Lens</h3><p>Applying the <strong>resiliency</strong> lens allows us to examine this architecture to consider the following:</p><ul><li>Can this application scale horizontally up or down in response to changes?</li><li>Is there enough capacity in the services used to allow for scale? For example, do the subnets have enough free IP space? Are the AWS API rate limits well off from being hit?</li></ul><p>Such considerations could lead to the following:</p><figure><img alt="Simple cloud based system expanded to include autoscaling group for EC2 and read replicas for RDS, across multiple AZs" src="https://cdn-images-1.medium.com/max/961/0*g11uS-oqCyd49Sxg" /></figure><p>Our simple application has now been extended to be ‘highly available’:</p><ol><li><strong>Elasticity</strong> — Our single EC2 is now part of an Auto-Scale group that allows it to scale horizontally up or down, and uses a load balancer as an ingress point for the application’s traffic. The load balancer can distribute traffic across the compute layer. <em>Note, our VPC’s subnets are assumed to be sized appropriately and are not shown.</em></li><li><strong>Highly available data layer</strong> — Our single RDS instance is now multi-AZ capable, which allows for distributed reads as well as a recovery process via promotion of a read replica to the master in the event that the original master fails.</li></ol><h3>The Recovery Lens</h3><p>Applying the <strong>recovery</strong> lens allows us to examine this architecture for additional considerations:</p><ul><li>What are the possible failure points and how will we know about them?</li><li>Which failure points are critical and which are not?</li><li>What can be done to recover automatically vs. gracefully degrade and perhaps require human intervention?</li><li>What are the stages of recovery such that critical functionality is restored as quickly as possible, with full restoration afterwards?</li><li>What is the failover strategy?</li><li>What are the standard recovery procedures and have they been tested?</li></ul><p>Such considerations could lead to the following:</p><figure><img alt="Simple cloud system augmented by a variety of AWS services supporting design time , observability and recovery functions" src="https://cdn-images-1.medium.com/max/1024/0*5ItVxUxufMEyWRBm" /></figure><p>Our highly available, resilient application is now augmented by an ecosystem of tools and services to support recovery activity:</p><ol><li><strong>Design time </strong>— Automation intended to support updates (patches, restore) to application code as well as infrastructure as code. For instance, Code Commit can store version controlled source code that can then be deployed as application updates via CodeDeploy onto infrastructure that was provisioned by CloudFormation.</li><li><strong>Observability</strong> — Enables the telemetry (logs, metrics, traces) needed to support insights for troubleshooting, debugging, and restoration activities. For example, CloudWatch can be used for metrics, logs and alerts, X-Ray for traces, and Personal Health Dashboard can help monitor AWS service issues.</li><li><strong>Recovery</strong> — Standard operating procedures and mechanisms to notify humans or trigger self healing actions. For example, checklists that are kept up to date as living documents can help guide procedures, email can escalate notifications to humans, and SNS can be used to trigger self healing actions. <em>Note, self healing actions (e.g. automated scripts) are not shown.</em></li></ol><h3>The Reliability Lens</h3><p>Applying the <strong>reliability</strong> lens allows us to examine this architecture for additional considerations:</p><ul><li>Is this the right level of investment for the expected customer need? In other words, what are the SLOs for the critical transactions? Does that require more redundancy? Is one region sufficient?</li><li>What are the security implications and how can greater security be achieved?</li><li>Based on the customer expectations, what are the performance requirements? Are the resources sized appropriately? Has performance testing occurred?</li><li>Based on the customer expectations, is the architecture cost conscious? Have the resources been selected to maximize cost efficiency?</li></ul><p>Such considerations could lead to the following:</p><figure><img alt="Simple cloud system further augmented by cost and security services" src="https://cdn-images-1.medium.com/max/1024/0*NauJJ5PXGoLl_ZYx" /></figure><p>Our recoverable, resilient system is now augmented by an ecosystem of tools and services designed to improve reliability:</p><ol><li><strong>Cost optimization</strong> — Enables ability to track cost usage over time to enable corrective actions for resource management.</li><li><strong>Security</strong> — Enables ability to secure infrastructure and provide guardrails. For example, IAM allows for identity and access management for least privileged access, Inspector allows for vulnerability detection and management, KMS allows for encryption at rest, and VPC Endpoints allow for traffic to AWS APIs to stay within the AWS backbone, and VPC Flow Logs and Cloud Trail enable review and detection of anomalies.</li></ol><h3>The 3 R’s in Your Applications</h3><p>A thorough understanding of resiliency, recovery and reliability is essential to architecting reliable applications. Reviewing an architecture through each of these lenses allows for thinking through considerations to make comprehensive architecture decisions that affect high availability, restoration, and stability. Note that each decision has a tradeoff with cost and complexity. Thus, understanding and defining the actual customer expectations for reliability must be the starting point of any architecture striving to be resilient, recoverable and reliable.</p><p>For example, if the customer only expects one transaction to be highly available and reliable, then the investment in resiliency, recovery, and reliability should be on the components that support that one transaction, not all the components that comprise the application.</p><p>I encourage you to use the three lenses of resiliency, recovery, and reliability for all of your applications going forward.</p><p><em>Originally published at </em><a href="https://www.capitalone.com/tech/software-engineering/SREs-architecting-with-resiliency-recovery-reliability/"><em>capitalone.com</em></a><em>.</em></p><p><em>DISCLOSURE STATEMENT: © 2020 Capital One. Opinions are those of the individual author. Unless noted otherwise in this post, Capital One is not affiliated with, nor endorsed by, any of the companies mentioned. All trademarks and other intellectual property used or displayed are property of their respective owners.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f2f5360a91b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capital-one-tech/the-3-rs-of-sres-resiliency-recovery-reliability-5f2f5360a91b">The 3 R’s of SREs: Resiliency, Recovery &amp; Reliability</a> was originally published in <a href="https://medium.com/capital-one-tech">Capital One Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Lessons Learned From Implementing Chaos Engineering at Enterprise]]></title>
            <link>https://medium.com/capital-one-tech/3-lessons-learned-from-implementing-chaos-engineering-at-enterprise-28eb3ffecc57?source=rss-84558ea84dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/28eb3ffecc57</guid>
            <category><![CDATA[chaos-engineering]]></category>
            <category><![CDATA[reliability]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[reliability-engineering]]></category>
            <category><![CDATA[resiliency]]></category>
            <dc:creator><![CDATA[Tanusree McCabe]]></dc:creator>
            <pubDate>Thu, 16 Jan 2020 16:36:01 GMT</pubDate>
            <atom:updated>2020-07-29T18:27:46.372Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Tree bending in the wind as a symbol of resiliency." src="https://cdn-images-1.medium.com/max/1024/0*eu7639hY3T1AZ2gi" /></figure><p>Ever since Netflix introduced Chaos Engineering through their <a href="https://github.com/Netflix/SimianArmy">Simian Army</a> toolset in 2012, the idea of inducing failure as a preventative means has become one of the preferred resilience techniques for cloud native distributed systems. Using performance and stress testing alone are legacy techniques and inadequate in unearthing comprehensive weaknesses; chaos engineering evolves and adds to this idea by conducting a series of scientific experiments designed to disrupt steady state. As a result, brittle assumptions are exposed, weaknesses are identified, and confidence is gained into a system’s reliability by addressing these weaknesses.</p><p>As an enterprise architect for resiliency, I promote the use of chaos engineering as a technique to improve reliability for our highly distributed cloud native systems. By partnering with numerous delivery teams and supporting the evolution of our chaos engineering capabilities, I learned several lessons that are elaborated below.</p><h3>#1: It requires the right mindset to work</h3><p>When done well, chaos engineering enables a deep understanding of a system’s behavior. Predictable outcomes enable automation and process improvement directly contributing to a system’s reliability. Assumptions are tested and verified with hard proof, and root causes of failures are identified and addressed to prevent future issues.</p><p>In addition, in complex cloud native distributed systems, it helps to highlight weaknesses in the dependency chain, and either overcome or work around them to provide a better experience to end users. In my experience, often assumptions tend to be made about the reliability of downstream or upstream dependencies, both internal and external to the application. Chaos engineering allows for proving out their veracity. No wonder companies such as Capital One and Netflix practice chaos engineering!</p><p>With all of these benefits, it can sometimes be easy to slip into the mindset that the goal is 100% reliability through identifying and fixing all outcomes. However, this is a misleading goal and the true goal should be a balance between the investment of time and labor required to perform these tests, and achieving the appropriate service level objective (SLO). Planning and performing chaos engineering takes an investment of time, labor and tooling. This investment needs to be weighed against the output and criticality of the system.</p><h3>#2: Causes of failures require widespread coverage</h3><p>Doing chaos engineering well requires well designed experiments that cover a wide breadth of failure modes. These experiments should be based on the failure mode analysis of the system. A common set of failure modes to start with that tools tend to focus on are:</p><ul><li><strong>Resource — </strong>Max out CPU, memory, etc.</li><li><strong>Network</strong> — Bandwidth, throttling, latency, etc.</li><li><strong>Dependencies</strong> — Critical application and infrastructure dependencies.</li><li><strong>Application / Process</strong> — Failure in code, device, processes, container/server, database etc.</li></ul><p>However, while conducting experiments in these areas are valuable, it is not enough. The following areas should also be addressed by failure scenarios because any associated events can also disrupt steady state:</p><ul><li><strong>Environment</strong> — Conditions such as IP usage, access vectors needed for troubleshooting, environment processes etc. For instance, self healing automation needs to be tested to ensure that any components it relies on is in turn available when needed.</li><li><strong>Security</strong> — Compliance variables, security violations etc. For instance, a seemingly benign change of updating a chain of trust for a certificate can have unintended consequences.</li><li><strong>People</strong> — Subject matter experts, change roles, etc. For instance, relying on human knowledge to troubleshoot and respond to an incident rather than shared knowledge available through self service can cause bottlenecks and increase mean time to repair (MTTR).</li><li><strong>Process</strong> — Incident response, build pipelines, availability assumptions etc. For instance, relying on rarely used recovery procedures requires periodic testing to ensure the procedure is valid.</li></ul><p>Also, while failures can occur due to one failure condition, in real life more than one thing can go wrong at the same time.<em> Testing one failure event at a time is good, and testing multiple failure events is even better.</em> This type of testing allows us to better understand interactions and cascading failures in order to define how to react to them. In addition, ensure there’s a rollback capability in case something goes wrong (beyond the failure itself) in performing the experiment. Given that it takes time and effort to design and perform these tests, it’s worth noting that starting small and evolving over time is a good strategy.</p><h3>#3: A prerequisite is enabling observability</h3><p>Understanding the impact of a chaos engineering experiment first requires an understanding of steady state behavior, which means needing a monitoring baseline. Monitoring can be quite hard and complex for a highly distributed, cloud native system. Enabling observability and establishing a baseline of behavior over time is no small feat. An output of chaos engineering should be the tuning of monitors, logs, traces and alerts. However, until a baseline is established, it can be quite difficult to understand the impact of the test in order to know what action to take.</p><p>Baselines should be established with respect to application versions and requires a defined period of time for stability without change. This allows for more effective impact analysis of a particular code release or change contributing to the results of the chaos engineering experiment.</p><h3>Conclusion</h3><p>There are many benefits to performing chaos engineering as a normal part of application delivery. It allows for proactive remediation of potential issues prior to adverse impact, and increases confidence in system reliability. To effectively wield chaos engineering requires broad comprehension of failure modes and cascading failures, as well as a well defined monitoring baseline of system behavior. The investment into chaos engineering is non-trivial, and so should be employed for the most impactful outcomes.</p><h4>Related Articles</h4><ul><li><a href="https://medium.com/capital-one-tech/5-steps-to-getting-your-app-chaos-ready-capital-one-a5b7b3cb8e09">5 Steps to Getting Your App Chaos Ready</a></li><li><a href="https://medium.com/capital-one-tech/continuous-chaos-introducing-chaos-engineering-into-devops-practices-75757e1cca6d">Continuous Chaos — Introducing Chaos Engineering into DevOps Practices</a></li><li><a href="https://medium.com/capital-one-tech/embrace-the-chaos-engineering-203fd6fc6ff7">Embrace the Chaos … Engineering — An Introduction to Chaos Engineering</a></li><li><a href="https://medium.com/capital-one-tech/4-real-world-scenarios-that-read-like-chaos-engineering-experiments-8dbf40c5f247">4 Real-World Scenarios That Read Like Chaos Engineering Experiments</a></li></ul><p><em>DISCLOSURE STATEMENT: © 2020 Capital One. Opinions are those of the individual author. Unless noted otherwise in this post, Capital One is not affiliated with, nor endorsed by, any of the companies mentioned. All trademarks and other intellectual property used or displayed are property of their respective owners.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28eb3ffecc57" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capital-one-tech/3-lessons-learned-from-implementing-chaos-engineering-at-enterprise-28eb3ffecc57">3 Lessons Learned From Implementing Chaos Engineering at Enterprise</a> was originally published in <a href="https://medium.com/capital-one-tech">Capital One Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Considerations for Containers & Serverless Compute Options]]></title>
            <link>https://medium.com/capital-one-tech/3-considerations-for-containers-serverless-compute-options-583d5d6ee93d?source=rss-84558ea84dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/583d5d6ee93d</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[cloud-computing-services]]></category>
            <category><![CDATA[serverless-containers]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[Tanusree McCabe]]></dc:creator>
            <pubDate>Mon, 02 Dec 2019 17:09:42 GMT</pubDate>
            <atom:updated>2020-05-12T18:53:09.028Z</atom:updated>
            <content:encoded><![CDATA[<h4>Choosing the Right Option on the Cloud Compute Spectrum</h4><figure><img alt="turquoise overlapping circles on a purple background with grey dots and gridlines" src="https://cdn-images-1.medium.com/max/1000/0*6IQf7VdHg11Flygc" /></figure><p>Have you ever been overwhelmed by the number of cloud compute options available to support containerized applications? Do you run your containers yourself or on a cloud managed service? Have you foregone containers entirely and are running a serverless function instead? If these thoughts seem familiar, and you’ve already decided that containerized or serverless architectures are the way to go, then this blog is for you!</p><p>The spectrum of cloud compute offerings is varied. As shown in the figure below, the spectrum swings mainly along two vectors: <em>your control and flexibility vs the cloud service’s standardization and limits.</em> Examples from AWS, GCP and Microsoft Azure illustrate the variety of options. In short, the more that you need to control, the more to the self-managed side</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xYSRDhnYrwYyRNjQ" /></figure><p>Before making a final decision on which compute option to use, there are additional criteria to consider.</p><h3>#1 Technical Requirements</h3><p>The first additional criteria is technical requirements. These technical requirements stem from the cloud compute service’s level of standardization, your multi-cloud approach, business needs for concurrency, and your application architecture.</p><p><strong>Standardization<br></strong>As alluded to above, the standardization of a cloud service with respect to supported runtimes, available hardware, and operating systems increases towards the right side of the spectrum. These standards become requirements for your application. If your application cannot comply with the supported standards, and/or keep up maintenance with the provider’s end-of-life notices, the left hand side of the spectrum becomes more feasible.</p><p><strong>Portability / Cloud Switching<br></strong>Another set of technical requirements occurs as a result of your cloud provider approach and whether that drives requirements for operating across multiple cloud providers. Serverless functions are code based, while other compute options on the spectrum are container based. While code and containers by themselves are portable across multiple cloud providers, using the underlying cloud services may incur a <a href="https://aws.amazon.com/blogs/enterprise-strategy/switching-costs-and-lock-in/">cloud switching cost</a> that differs across the spectrum. To reduce cloud switching costs, cloud provider agnostic serverless frameworks for serverless functions are emerging and Kubernetes orchestration is supported by multiple cloud providers.</p><p><strong>Concurrency<br></strong>Concurrency, the ability to handle multiple requests at a time, is another important technical requirement to consider. While the ephemeral nature of serverless functions allows for a pay-as-you-use model, it is limited to supporting one request at a time and can suffer from cold start delays. Serverless containers, managed containers, and self managed containers all support more persistency, which better supports concurrency. This also decreases the number of cold starts and optimizes resource consumption (e.g. while application waits for network response, CPU and memory can be used towards processing another request).</p><p><strong>Architecture<br></strong>Depending on the nature of your application, you may need to re-architect it to take full advantage of the compute offering. For instance, using serverless functions such as AWS Lambda in a <a href="https://aws.amazon.com/lambda/serverless-architectures-learn-more/">multi-tier architecture</a> requires focusing on decoupling and distributing business logic, potentially in conjunction with other services such as AWS Step Functions to provide orchestration workflow and AWS API Gateway.</p><h3>#2 Cost</h3><p>The second additional criteria is cost. In general, cloud services bill <em>cost per resource</em> on the left hand side of the spectrum, and <em>cost per use</em> on the right hand side. However, simply calculating cost using the number of requests to compare between these two cost models is insufficient. For a better cost perspective, consider the total cost of ownership, including the cost of API requests, storage, and networking. For instance, serverless functions in an event-based architecture tend to heavily use API calls and network ingress/egress.</p><p>Another cost factor is related to container density and the cost of supporting services. For example, AWS Lambda natively uses <a href="https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchlogs.html">AWS CloudWatch</a> for logging, which incurs cost. Each Lambda function is a distinct instantiation and the corresponding resource utilization per underlying compute may not be as efficient as managing container density and compute capacity through containerized compute. In containerized compute approaches, the cost of supporting services such as logging may be amortized over many containerized workloads sharing the same compute.</p><h3>#3 Monitoring</h3><p>The third additional criteria is <a href="https://landing.google.com/sre/sre-book/chapters/monitoring-distributed-systems/">white box monitoring</a>, which requires having access to system internals including logs and is essential for debugging issues. Your approach to enabling white box monitoring needs to be considered. For instance, if the approach relies on monitoring agents or sidecars for white box monitoring, it implies needing a containerized compute option. Whereas, if the approach allows for tailing monitoring tooling to support serverless functions either through instrumentation, distributed tracing and/or retrieving logs from cloud native logging service, white box monitoring can still be achieved.</p><h3>Conclusion</h3><p>The following figure describes the output when all of these additional criteria are considered:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ftklxPmAN_4bQ-yQ" /></figure><p>Each approach has its benefits and trade-offs. Going towards the left hand side of the compute spectrum allows for greater control and flexibility. However, it comes with increased operational and maintenance burdens due to needing to manage more aspects of the infrastructure. Going towards the right hand side of the compute spectrum allows for greater agility and reduces the need to manage many infrastructure aspects such as scalability. However, it incurs constraints induced by standards and limits.</p><p>Considering your technical requirements, costs, and monitoring needs will further inform the decision making process as you pinpoint the right choice for your application.</p><p><em>These opinions are those of the author. Unless noted otherwise in this post, Capital One is not affiliated with, nor is it endorsed by any of the companies mentioned. All trademarks and other intellectual property used or displayed are the ownership of their respective owners. This article is © 2019 Capital One.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=583d5d6ee93d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capital-one-tech/3-considerations-for-containers-serverless-compute-options-583d5d6ee93d">3 Considerations for Containers &amp; Serverless Compute Options</a> was originally published in <a href="https://medium.com/capital-one-tech">Capital One Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Serverless Myths to Understand Before Getting Started with AWS]]></title>
            <link>https://medium.com/capital-one-tech/4-serverless-myths-to-understand-before-getting-started-with-aws-48c4ab1203ab?source=rss-84558ea84dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/48c4ab1203ab</guid>
            <category><![CDATA[serverless-architecture]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Tanusree McCabe]]></dc:creator>
            <pubDate>Mon, 06 May 2019 13:31:00 GMT</pubDate>
            <atom:updated>2019-05-06T13:31:00.970Z</atom:updated>
            <content:encoded><![CDATA[<h4>Lessons Learned from Architecting Serverless Applications on AWS</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*FXYXmJVJT9hsykxQ" /></figure><p>If you are thinking about getting started with serverless applications, this article is for you. While serverless provides a number of benefits, in my experience architecting serverless applications, there are several common myths that can get in the way of success.</p><h3>Myth #1: Serverless Means Functions as a Service (FaaS)</h3><p>In the quest to focus development time on application code rather than the underlying infrastructure, serverless architecture is a natural evolution for cloud-based applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rRstxU5tiXLIjtu6" /></figure><p>While FaaS offerings such as <a href="https://aws.amazon.com/lambda/">AWS Lambda</a> may dominate serverless architecture, there are many other serverless options.</p><p>A cloud service can be classified as serverless if:</p><ul><li>There are no servers exposed that you need to directly administer.</li><li>The service is elastic in that it scales automatically and is highly available.</li><li>You only pay for what you use.</li></ul><p>This results in serverless being applicable not just for web based applications, but also real-time analytics and processing. The following is a representative sampling of serverless offerings from AWS to illustrate this breadth:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*luf34h_Fc60MKOEl" /></figure><h3>Myth #2: Serverless is a Monolithic Silver Bullet</h3><p>Serverless, just like any other technology, is not a silver bullet for all use cases and is best suited for event-based architectures. Why?</p><p>Well, traditional client/server architecture in its simplest form looks like the diagram below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8ObvbgtM0pJf5LBK" /></figure><p>The challenges of a traditional client/server architecture like this include:</p><ul><li>Synchronous calls resulting in highly coupled systems.</li><li>State management required.</li><li>Not resilient to failure.</li><li>Not able to scale effectively.</li></ul><p>Simply putting the server logic inside a lambda function does not solve these challenges for client/server architectures; in fact, it creates additional challenges such as:</p><ul><li>Lambda compute and memory limits.</li><li>Consistent packaging and deployment of lambda functions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L0-DXPHJbfmgnCvi" /></figure><p>Rather, the event-based architecture pattern — shown in a simple form here — is much more suited to serverless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qlfJ9ZiThGGZLu1I" /></figure><p>Benefits of using serverless with event-based architecture patterns:</p><ul><li>Asynchronous call enabling decoupled systems.</li><li>Enables immutable, persistent, shareable events.</li><li>Highly resilient to failure.</li><li>Able to scale effectively.</li><li>Highly observable and extensible system.</li><li>Independently releasable.</li><li>Independently optimizable.</li></ul><p>Event-based architecture patterns are commonly found when designing and implementing microservices. While there are still challenges to this architecture — such as needing distributed tracing, managing current state, and solving for eventual consistency — the main challenge to consider is how to avoid recreating a monolithic application in serverless. Consider designing serverless microservices to create a much more flexible, loosely coupled event-based architecture. A well-designed microservice has concise logic, no orchestration logic, typically single purpose code, and operates in an ephemeral environment. Designing your architecture using these principles will help keep the monolith at bay to help take better advantage of serverless.</p><h3>Myth #3: Serverless Means An End to Operational Burdens</h3><p>As alluded to in the previous myth, serverless applications require a high degree of observability in order to effectively troubleshoot. Speaking from experience, it can be quite difficult to determine where, in a highly distributed serverless system, something went wrong. Particularly in the case of cascading failures.</p><p>Beyond health checks, polling, and monitoring metrics, serverless observability requires the ability to interrogate the state of the system as a whole and within each part. Interrogation in this context is the ability to ask questions about the serverless system and understanding the answer. To support such meaningful interrogation, you need to ensure that each component of your serverless system outputs telemetry to support downstream tracing and correlations as well as a full understanding of system state. Defining and testing failure scenarios, as well as audit configurations, helps with determining what kind of telemetry is necessary.</p><p>Since serverless offerings are managed services, agent-based telemetry is no longer an option. Instead, serverless functions need to be instrumented along with deploy paths and rollbacks. Extract logs to queryable systems. When instrumentation isn’t possible, the cloud provider should enable metrics and log extracts that can be correlated. For example, <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/monitoring-cloudwatch.html">DynamoDB can output useful events or metrics</a> about its request state and internal stats.</p><p>A powerful tool in the belt of any serverless developer is <a href="https://opentracing.io/docs/overview/what-is-tracing/">distributed tracing</a>. Distributed tracing allows for end-to-end visibility of a transaction, even as the transaction propagates requests through multiple hops. This shows service dependencies and enables you to establish a baseline of behavior and performance from which you can detect anomalous traces to determine issues. <a href="https://aws.amazon.com/xray/">AWS X-Ray</a> is a distributed tracing service intended to help developers troubleshoot and debug serverless applications. AWS Lambda runs the X-Ray daemon to enable X-Ray visible telemetry.</p><p>The following is a simplified example of various serverless system components interacting with each other while emitting the telemetry necessary to enable observability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JZxuLzSN2xCXtbRx" /></figure><p>Thus, while serverless does remove the operational burden of administering servers, there is still operational effort required to effectively monitor, maintain, and scale a serverless system.</p><h3>Myth #4: Serverless is Infinitely Scalable</h3><p>Speaking of scaling, a major benefit of serverless services is high availability. However, being highly available does not equate to being able to infinitely scale. Each serverless service has its own limits to contend with, whether that be <a href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">lambda’s memory limits</a> or <a href="https://docs.aws.amazon.com/streams/latest/dev/service-sizes-and-limits.html">Kinesis’ throughput limits</a>. Other limits may not be as obvious, such as regionality impeding cross region resiliency or IP exhaustion from operating Lambda in a VPC using an ENI that takes up a subnet IP address. (If the subnet that you configure Lambda with has no available IPs, Lambda will not be able to scale.)</p><p>Lambda has another challenge related to the fact that lambda functions run in containers behind the scenes and require steps to start. This is known as the ‘<a href="https://docs.aws.amazon.com/lambda/latest/dg/running-lambda-code.html">cold start’</a> problem, which can be exacerbated when lambda is configured to run in a VPC due to the additional steps required to support creating and attaching VPC ENI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LrBaFz3ufKZ3i7Tk" /></figure><p>Best practices involve optimizing what you as the developer can control:</p><ul><li>Instantiate clients and connections outside the event handler.</li><li>Schedule function execution as needed for ‘warming’.</li><li>Use environment variables.</li><li>Right-size max memory used.</li><li>Minimize package.</li></ul><h3>Conclusion</h3><p>Serverless is a natural next step in the evolution of cloud technology. With serverless architecture we can focus on innovating applications and solutions rather than administering infrastructure. But don’t be fooled by common myths! Instead, keep in mind the underlying takeaways we covered above:</p><ol><li>Look beyond functions for serverless solutions.</li><li>Apply serverless to event-based architectures instead of recreating monoliths.</li><li>Understand how intrinsic advanced observability is to serverless operations.</li><li>Plan for limits / failure scenarios and optimize for serverless operations to improve resiliency of a serverless system.</li></ol><h3>Related</h3><ul><li><a href="https://medium.com/capital-one-tech/4-steps-for-pairing-cloud-and-devops-to-improve-resiliency-c72fe2e52b05">4 Steps for Pairing the Cloud and DevOps to Improve Resiliency</a></li><li><a href="https://medium.com/capital-one-tech/devops-from-burnout-to-taking-a-capability-centric-view-to-solving-problems-b2d2a8fb674a">From Burnout to DevOps</a></li></ul><p><em>These opinions are those of the author. Unless noted otherwise in this post, Capital One is not affiliated with, nor is it endorsed by any of the companies mentioned. All trademarks and other intellectual property used or displayed are the ownership of their respective owners. This article is © 2019 Capital One.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48c4ab1203ab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capital-one-tech/4-serverless-myths-to-understand-before-getting-started-with-aws-48c4ab1203ab">4 Serverless Myths to Understand Before Getting Started with AWS</a> was originally published in <a href="https://medium.com/capital-one-tech">Capital One Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Steps for Pairing the Cloud and DevOps to Improve Resiliency]]></title>
            <link>https://medium.com/capital-one-tech/4-steps-for-pairing-cloud-and-devops-to-improve-resiliency-c72fe2e52b05?source=rss-84558ea84dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c72fe2e52b05</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <category><![CDATA[resiliency]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Tanusree McCabe]]></dc:creator>
            <pubDate>Thu, 14 Feb 2019 17:49:48 GMT</pubDate>
            <atom:updated>2019-02-22T19:00:40.508Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*9YmIIfIPJ2URLQDc" /></figure><p>Wouldn’t it be great to never have to respond to a 3am on call alert again? Wouldn’t it be nice to trust that your system will always be available to your end users? If so, you’re not alone! By using Cloud services and DevOps principles, attaining this nirvana should be possible. I’ve been an avid DevOps technologist for many years, most recently architecting cloud-based systems for Capital One, and my experiences in the field have lead me to create a simple four-step framework to help enable resilience.</p><h3>First, What is Resilience?</h3><p>Resilience is an outcome of a highly automated, well architected and well tested system, predicated on the following common characteristics:</p><ul><li><strong>Adaptive</strong> — the ability to adapt to changing conditions.</li><li><strong>Self Healing</strong> — the ability to recover from failures autonomously.</li><li><strong>Predictable</strong> — the ability to consistently define responses to failures. This is a prerequisite to support the automation necessary to be adaptive and self healing.</li></ul><p>To achieve these characteristics, resilient systems require the following:</p><ul><li><strong>Investment </strong>— With respect to the labor and cost that is required to develop, test and deploy the resources and processes necessary for a resilient architecture. Infrastructure cost increases proportionally to the level of redundancy and data backup required.</li><li><strong>Automation</strong> — This is essential for both development and software defined operations.</li><li><strong>Monitoring</strong> — Monitoring in a continuous fashion is critical to enabling automated response and reliability.</li><li><strong>Simplicity</strong> — In general, simpler architectures have less ways in which they can fail.</li></ul><h3>Cloud Resiliency</h3><p>Cloud service providers such as Amazon Web Services (AWS) intrinsically enable various aspects of resiliency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LdDZTVAagjdG91Ym" /></figure><ul><li><strong>Regional Autonomy</strong> allows systems to operate freely in a region without dependencies on other regions. Some cloud services are global, such as S3, yet regional autonomy still applies. For instance, S3 provides regional endpoints.</li><li><strong>Redundancy</strong> refers to the typically configurable capabilities of a service to enable differing levels of redundancy and data backups into durable storage.</li><li><strong>Insights </strong>are the ability to provide the data necessary to make automated decisions.</li></ul><h3>DevOps Resiliency</h3><p>In addition, DevOps principles enable aspects of resiliency:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zX3mCeIesyLAGkUk" /></figure><ul><li><strong>Resiliency testing </strong>refers to testing disciplines such as chaos engineering to inject faults and failures to define predictability. These tests are conducted like science experiments, in which you first make a hypothesis, and then run the test to see results. This also includes the testing of the monitoring and incident response solutions and processes.</li><li><strong>Monitoring</strong> in a continuous fashion of the full application stack, to include infrastructure, allows for holistic insights.</li><li><strong>Incident response</strong> relying on software defined operations allows for self healing.</li></ul><h3>Introducing the 4 Steps of the Resiliency Framework</h3><p>Together, Cloud technologies and DevOps provide the foundation of the following simple resiliency framework:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*nqIomxGxhlazZFbPRyxHjA.png" /></figure><h4>Step #1: Detect, DevOps Style</h4><p>Let’s start at the top of the diagram. To <strong>detect</strong> causes of failures, it is first necessary to understand your dependencies. The dependencies that are often overlooked are the ones that we take for granted. DevOps emphasizes breaking silos; with this in mind, breaking silos between cloud infrastructure and applications can help define a well understood dependency chain.</p><p><strong>Run Time Dependencies — </strong>Dependency analysis often focuses on the dependencies used during the run time of the application. Looking across both the infrastructure and application spectrum allows you to define a full set of dependencies, such as:</p><ul><li><strong>Operations</strong> — Are there any dependencies to operate the application?</li><li><strong>Systems</strong> — Are there any dependencies on internal or external systems? How about libraries?</li><li><strong>Infrastructure </strong>— Are there any network dependencies? How about DNS?</li><li><strong>Region</strong> — From a regional autonomy perspective, are there any in-region dependencies? How about cross-region dependencies?</li></ul><p><strong>Build Time Dependencies — </strong>Sometimes this is overlooked. However, to auto-scale an application, or to failover an application in an active-passive or active-standby model, build-time dependencies often come into the picture. For example:</p><ul><li><strong>Auto Scale</strong> — What are the auto-scale dependencies? Need an Amazon Machine Image (AMI)? Container image? Registry? Package repository?</li><li><strong>Bootstrap </strong>— Do you rely on bootstrap scripts? What are the dependencies in the scripts?</li><li><strong>Pipeline </strong>— Do you need an operational pipeline in order to deploy your application to your disaster recovery site? What does it depend on to operate?</li></ul><p>Not all dependencies are equal with respect to the probability that a failure can occur and the impact that that failure can cause. Determine <strong>hard versus soft </strong>dependencies to identify your recovery approach. For which failures can you accept degraded experience? For which ones should you employ a circuit breaker mechanism? For which ones should you failover? What if there are cascading failures?</p><p>Once your dependency chains are identified, detect possible failures and limits to prevent or mitigate them. Failures can come in various forms:</p><ul><li><strong>Man-Made</strong> — Such as deployment errors or misconfiguration. <a href="https://medium.com/capital-one-tech/resiliency-patterns-at-the-edge-capital-one-a5b4d41d477e">Deployment strategies</a> such as canary deployment help ameliorate impact but it is important to define and quickly detect failures through monitoring. Rigorous non-brittle automated testing can help prevent issues through quality control.</li><li><strong>Cloud Services</strong> — While tending to be highly available, cloud services can sometimes incur outages or hit service limits. Soft limits can be raised, but hard limits such as the IP space available in a pre-sized subnet are harder to overcome unless planned for. Capacity needs to be thought about in a failover scenario; are enough instance sizes and IP space available in the DR region? Are cold start delays acceptable? Depending on the service, data replication times may vary.</li><li><strong>Security</strong> — Failures cover a wide spectrum, from certificate expiry to denial of service attacks. Attack vectors should be identified so that mitigation measures can be taken. Delivery teams should reserve development capacity for addressing security related issues, such as vulnerability mitigation.</li><li><strong>Stress — </strong>This includes unexpected load and can be tested and planned for in advance, with performance tuning conducted for an optimal experience. Applications respond to stress differently, depending on whether they are CPU, memory or I/O bound. This application characteristic also influences the types of monitors and alerts that are set.</li><li><strong>Chaos</strong> — Can reign despite our best efforts, whether a failure is due to a natural disaster or a random chance. Chaos engineering and testing can help mitigate this risk. Chaos at the infrastructure level versus the application level should be a consideration.</li></ul><h4>Step #2 Alert with a Cloud and DevOps Mindset</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oM_buMqv4oina93Q" /></figure><p>Moving clockwise on our framework diagram, our next step is <strong>Alert</strong>. Despite best efforts, failures will happen. To allow systems to be resilient, it is essential to employ a continuous monitoring strategy that also includes a <strong>data strategy</strong>: data collection, data ingestion, data analysis, data visualization and finally, meaningful alerts that can result in actionable incidents. From an AWS cloud perspective, monitoring data is provided across services throughout the application and infrastructure stack in the form of metrics, logs and traces. This can result in an overwhelming amount of data. <a href="https://medium.com/capital-one-tech/the-mon-ifesto-part-2-alerting-and-graphing-bf51828a008f">Alerts</a> responding to data need to be fine tuned or else noise will negate the fact that the system was monitored at all. It is critical that the DevOps team knows what actions to take based on an alert (and ideally, can automate those actions).</p><h4>Step #3: Respond &amp; Recover Using Automation and the Appropriate Failover Strategy</h4><p>Continuing on to the next step in the framework, <strong>responding</strong> to a failure means determining the corrective course of action. <strong>Recovery</strong> is then executing that corrective course. Self healing is a result of automated response and recover, and relies on software-defined operations. Software-defined operations is an element of DevOps in which everything, including runbooks, is defined as code and treated as code through the application lifecycle management. Cloud enables this automation via presenting robust APIs.</p><p>The responses and recoveries for each system need to be defined based on that system’s requirements (e.g. SLOs/SLAs, RTOs/RPOs):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3lMvbR7F7u_0doXu" /></figure><p><a href="https://medium.com/capital-one-tech/architecting-for-resiliency-9ec663db5c94">Failover strategies</a> are generally active/active, active/passive, and active/standby, either within a region and multi-AZ or across multiple regions. Failover, graceful degradation, and availability need to be considered for the depth of automation and investment. In addition, session and state management need to be addressed. In general, stateless applications are preferable over stateful applications to reduce failure impact and to enable easier dynamic scaling.</p><p>Failover strategy will inform architectural considerations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*pMCMD0we71WCfxakXYwrjg.jpeg" /></figure><p>For example, the diagram above illustrates a typical three tier application. Considerations include:</p><ul><li><strong>Multi-AZ or Multi-Region</strong> — Based on the system requirements, how much redundancy is needed? How much latency can be withstood?</li><li><strong>Weighting Policy</strong> — Based on the first consideration, Route53 offers several different weighting policies with different outcomes for failover.</li><li><strong>Auto-Scale Policy</strong> — Does the application support horizontal scaling?</li><li><strong>Database Strategy</strong> — Different databases and database services offer different capabilities regarding resiliency. For instance, RDS MySQL and PostgreSQL use a master-read replica strategy, meaning that writes will always occur to the master no matter where the write is sourced (e.g. different region). Whereas, DynamoDB provides Global Tables instead. Synchronous vs. asynchronous data replication and eventual consistency vs. guaranteed consistency are important considerations in determining the predictability of a system.</li><li><strong>Durable Storage Strategy</strong> — it’s important to determine your durable storage strategy with respect to resilience; for example, S3 offers cross region replication, but depending on the volume and size of objects, replication times can differ.</li></ul><h4>Step #4: Refine &amp; Test, Achieving Incremental Improvements</h4><p>Last but not least, we’ll cover the last step in the framework. The only way to have trust and confidence in your system is to continuously improve, in true DevOps spirit, your system and processes. This can be achieved by continuously <strong>refining </strong>your approaches based on <strong>testing</strong> as part of your regular application development lifecycle.</p><p>There are a number of DevOps best practices that can be applied to resiliency:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OcOSEOJzyVL-JKkj" /></figure><ul><li><strong>Source Code Management — </strong>As stated above, software defined operations should be treated as code and follow application code best practices. In addition, feature toggles enable switching new functionality on and off to mitigate application code related errors.</li><li><strong>Continuous Integration / Testing</strong> — As stated above, resiliency and performance testing is paramount to enabling system predictability and fine tuning monitoring and alerting. Similarly, comprehensive testing across the test pyramid is essential to ensuring code quality. In addition, ethical hacking can identify opportunities to improve security.</li><li><strong>Continuous Deployment / Delivery (CD)</strong> — Dependencies are common in a CD process and as stated above, need to be considered for failure planning. Deployment strategies should be chosen based on the system requirements.</li><li><strong>Orchestration / Pipelines</strong> — As stated above, a data strategy enables intelligent alerting and efficient monitoring. Monitoring can be integrated into the pipeline and orchestration processes.</li></ul><p>There are also a number of Cloud best practices that can be applied to resiliency:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sDPDVwbY5yYc17Zk" /></figure><ul><li><strong>Autonomy</strong> — As stated above, cloud best practice is to be as autonomous as possible within a region. Take care to avoid cross-region dependencies if employing a cross-region DR strategy.</li><li><strong>Stateless</strong> — Stateless applications are easiest to scale, and there are many best practices around managing state with respect to failover strategies.</li><li><strong>Reliability</strong> — Cloud services themselves provide reliability SLAs but also enable your application to support reliability based on availability, redundancy, and backup and recovery options.</li><li><strong>Observability</strong> — As stated above, cloud services, although managed, provide insights such as metrics, logs and traces that can be utilized for continuous monitoring.</li></ul><h3>Achieving Pragmatic Resiliency</h3><p>Resiliency will not happen overnight. The ability for cloud-based systems to recover and adapt from failure autonomously is possible but requires investment and continuous refinement. Many of you may already be using cloud technologies and DevOps principles to accelerate your release cycles. My hope is that you can now also apply them to resiliency.</p><p>This four-step resiliency framework is something you can use straight away to promote the right level of resilience in your system, based on your system’s requirements. Be sure to detect all of your dependencies, taking care to think through the ones you assume will always work. Then, alert intelligently based on efficient continuous monitoring. Next, identify the appropriate response to a failure condition. Then, define and automate recovery to normal operations. Expect to continuously refine and expand these approaches through comprehensive testing.</p><h3>Related:</h3><ul><li><a href="https://medium.com/capital-one-tech/how-cloud-and-ops-teams-can-take-cloud-adoption-from-bottleneck-to-engineering-success-666d149db746">How Cloud and Ops Teams Can Take Cloud Adoption From Bottleneck to Engineering Success</a></li><li><a href="https://medium.com/capital-one-tech/architecting-for-resiliency-9ec663db5c94">Architecting for Resiliency</a></li><li><a href="https://medium.com/capital-one-tech/deploying-with-confidence-strategies-for-canary-deployments-on-aws-7cab3798823e">Deploying with Confidence — Minimize Risk, Maximize Resiliency With Canary Deployments on AWS</a></li></ul><p><em>DISCLOSURE STATEMENT: These opinions are those of the author. Unless noted otherwise in this post, Capital One is not affiliated with, nor is it endorsed by, any of the companies mentioned. All trademarks and other intellectual property used or displayed are the ownership of their respective owners. This article is © 2019 Capital One.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c72fe2e52b05" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capital-one-tech/4-steps-for-pairing-cloud-and-devops-to-improve-resiliency-c72fe2e52b05">4 Steps for Pairing the Cloud and DevOps to Improve Resiliency</a> was originally published in <a href="https://medium.com/capital-one-tech">Capital One Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>