<?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 gilbert andanje on Medium]]></title>
        <description><![CDATA[Stories by gilbert andanje on Medium]]></description>
        <link>https://medium.com/@gilbertandanje?source=rss-6723e7ee109a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VDUQy9DuHhWWf9v-UmfQ7A.jpeg</url>
            <title>Stories by gilbert andanje on Medium</title>
            <link>https://medium.com/@gilbertandanje?source=rss-6723e7ee109a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 18:04:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gilbertandanje/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[Embracing Anti-Fragility: Learning from Failure for Stronger Systems and Organizations]]></title>
            <link>https://medium.com/@gilbertandanje/embracing-anti-fragility-learning-from-failure-for-stronger-systems-and-organizations-41d3b4404e43?source=rss-6723e7ee109a------2</link>
            <guid isPermaLink="false">https://medium.com/p/41d3b4404e43</guid>
            <category><![CDATA[antifragile]]></category>
            <category><![CDATA[sre]]></category>
            <category><![CDATA[antifragility]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[chaos-engineering]]></category>
            <dc:creator><![CDATA[gilbert andanje]]></dc:creator>
            <pubDate>Sun, 10 Nov 2024 02:40:05 GMT</pubDate>
            <atom:updated>2024-11-11T18:01:29.903Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Welcome back! In this article, we’ll dive into the concept of anti-fragility and the art of learning from failure. By understanding and learning from failures, we can build stronger, more resilient systems and organizations.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TGaWxD0nP3LgL9l0hOXBIQ.png" /><figcaption>From a chaos engineering handbook</figcaption></figure><h3>1. Is Failure Really Bad?</h3><p>Most organizations view failure as something to avoid — yet ironically, these same organizations often encourage risky, large-scale deployments where failure is almost inevitable.</p><p><strong>Reflect:</strong> Think about how failure is perceived in your organization. Does it create a culture of fear, or is it seen as an opportunity to learn?</p><p>As life coach Tony Robbins puts it, <em>“There is no such thing as failure. There are only results.”</em></p><p><a href="https://www.gremlin.com/chaos-monkey">What Is Chaos Monkey? A Complete Guide for Engineers, DevOps &amp; SREs</a></p><h3>2. Changing Perspectives on Failure</h3><p>Many cultures teach that failure is something to be ashamed of, but reframing it as a learning experience can change everything. Winston Churchill once said, <em>“Success is stumbling from failure to failure with no loss of enthusiasm.”</em> By learning from failure, we can fix broken processes and minimize future issues, making systems more resilient.</p><h3>3. Anti-Fragility: Weighing Risks and Benefits</h3><p>Organizations constantly balance risks and rewards, and while anti-fragility can feel like an added investment, it’s particularly valuable when failure risks are high. Rather than reacting blindly, it’s smarter to plan for risk and respond thoughtfully.</p><h3>4. Key Metrics of Anti-Fragility</h3><p>Visualize anti-fragility through <strong>core metrics</strong> that help track and measure resilience. Here are a few:</p><ul><li><strong>MTTD (Mean Time to Detect):</strong> Time taken to detect failures.</li><li><strong>MTTR (Mean Time to Recover):</strong> Recovery time for system components.</li><li><strong>MTRS (Mean Time to Recover a Service):</strong> Recovery time for an entire service.</li><li><strong>SLO (Service Level Objective):</strong> Expected reliability level for a service.</li><li><strong>RPO (Recovery Point Objective):</strong> Maximum acceptable data loss in case of failure.</li></ul><p><em>Each metric provides insight into your system’s robustness and reliability.</em></p><h3>5. Moving Toward a Learning-Focused Culture</h3><p>There’s a saying: <em>“You’re either a learning organization, or you’re losing to someone who is.”</em> Organizations that embrace learning from failure evolve into resilient, customer-focused powerhouses. Shifting from fear of failure to a culture of learning takes courage, but it’s transformative.</p><h3>6. Four Strategies for Building an Anti-Fragile Culture</h3><h4>1. Embrace Continuous Learning</h4><p>Foster a culture of experimentation and learning by rewarding risk-taking and creating opportunities for safe experimentation, like hackathons or improvement projects.</p><h4>2. Implement the Westrum Model</h4><p>According to Dr. Ron Westrum’s research, organizations fall into three categories: pathological, bureaucratic, and generative. <a href="https://itrevolution.com/articles/westrums-organizational-model-in-tech-orgs/"><strong>Explore the Westrum Model in this study</strong></a> to see where your organization fits and how to foster a generative, high-trust culture.</p><p><a href="https://itrevolution.com/articles/westrums-organizational-model-in-tech-orgs/">Westrum&#39;s Organizational Model in Technology Organizations - IT Revolution</a></p><h4>3. Conduct Fire Drills</h4><p>Fire drills simulate real-world failures, ensuring teams are prepared for worst-case scenarios, from data center losses to key team members leaving.</p><h4>4. Adopt Chaos Engineering</h4><p>Chaos engineering involves testing systems by introducing failures in controlled environments. Netflix, a leader in this field, created <strong>Chaos Monkey</strong>, a tool that randomly shuts down production instances to test system resilience.</p><p><a href="https://www.ibm.com/topics/chaos-engineering">What is Chaos Engineering? | IBM</a></p><h3>7. Automated Recovery Design</h3><p>Anti-fragility means building for <strong>automated recovery</strong>:</p><ul><li>Create <strong>immutable infrastructure</strong> using Infrastructure as Code (IaC).</li><li>Enable <strong>holistic monitoring and </strong><a href="https://www.pagerduty.com/"><strong>smart alerting</strong></a>.</li><li>Use <strong>self-healing</strong> tools like <strong>Kubernetes</strong> and <strong>AWS Auto-Scaling</strong>, which can detect and recycle impaired instances automatically.</li></ul><p><a href="https://www.splunk.com/">Splunk | The Key to Enterprise Resilience</a></p><h3>8. Embracing Failure to Build Stronger Systems</h3><p>In this article, you learned how anti-fragility and learning from failure can transform your approach to resilience. Understanding failures helps create robust, reliable systems that thrive even in unpredictable conditions.</p><p><em>Thank you for reading! Embrace failure as a source of insight, strengthen your systems, and continue your journey toward anti-fragility.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41d3b4404e43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Well architected VPC on AWS]]></title>
            <link>https://medium.com/@gilbertandanje/well-architected-vpc-on-aws-7f4afbf5a9db?source=rss-6723e7ee109a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f4afbf5a9db</guid>
            <category><![CDATA[wellarchitectedframework]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[gilbert andanje]]></dc:creator>
            <pubDate>Wed, 06 Nov 2024 17:20:22 GMT</pubDate>
            <atom:updated>2024-11-11T18:44:31.033Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html">What is Amazon VPC?</a></p><p>Understanding Virtual Private Cloud(VPC) on AWS is crucial as that is your logically isolated virtual network in the cloud much like your on premise ‘data center’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*ZTk4IEhMv4OsMKujExB17A.png" /></figure><p>A VPC is where all your configurations begin from. If you do not create a VPC the first time you create a resource, AWS creates a default one for you and assigns it a uniquely identifying hash. VPCs are tied to your AWS account that is billed for all resources consumed.</p><p>One account can configure multiple VPCs and there might be a good reason why you might need this setup. One good case is when you want to build a highly resilient application by deploying multi-region VPCs. This will allow your traffic to failover to a secondary VPC using any of the Disaster Recovery Strategy that you have defined in your Business Continuity Plan(<a href="https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/business-continuity-plan-bcp.htmlhttps://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/business-continuity-plan-bcp.html">BCP</a>):</p><ol><li><a href="https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-options-in-the-cloud.html#backup-and-restore">Backup and restore</a></li><li><a href="https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-options-in-the-cloud.html#pilot-light">Pilot Light</a></li><li><a href="https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-options-in-the-cloud.html#warm-standby\">Warm Standby</a></li><li><a href="https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-options-in-the-cloud.html#multi-site-activeactivehttps://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-options-in-the-cloud.html#multi-site-activeactive">Multi-site active/active</a></li></ol><p><a href="https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-options-in-the-cloud.html">Disaster recovery options in the cloud</a></p><p>Another use case for multiple VPCs is isolating environments eg dev, staging, uat &amp; prod. With this kind of isolation your DevOps team can easily deploy corresponding networking and security measures demanded by each environment without colliding with the demands of the other. An example, the prod environment might have stricter access than dev which befits of a production environment where sensitive data lives.</p><p>Similarly you might want to deploy your data layer in one VPC to enforce security and networking measures befitting of a sensitive data layer. A good example is <a href="https://www.mongodb.com/cloud/atlas/registerhttps://www.mongodb.com/cloud/atlas/register"><strong>Mongo Atlas</strong></a> which lives in a separate VPC and then <a href="https://medium.com/u/1003df504549">MongoDB Engineering</a> <a href="https://medium.com/u/db5cd12199bd">MongoDB</a> allows their clients to connect to their clusters via <a href="https://cloud.mongodb.com/v2/672b7814c41bca4ababeedb3#/security/network/peering">VPC peering</a> or <a href="https://cloud.mongodb.com/v2/672b7814c41bca4ababeedb3#/security/network/privateEndpoint">private endpoints</a> using AWS <a href="https://aws.amazon.com/privatelink/">Private Link</a>.</p><ul><li><a href="https://aws.amazon.com/privatelink/">VPC Networking - AWS PrivateLink - AWS</a></li><li><a href="https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html">What is VPC peering?</a></li></ul><p>Thank you for reading this far 😊. Next we will talk about the components of a VPC and how to well architect them.</p><p>#AWS #VPC #networking #cloud #infrastructure #solutionsarchitect<br>Thanks to <a href="https://medium.com/u/25941aa5cbfe">Wilklins Nyatteng</a> for being resourceful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f4afbf5a9db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing Path Parameters in Express.js: Avoiding Route Conflicts]]></title>
            <link>https://medium.com/@gilbertandanje/managing-path-parameters-in-express-js-avoiding-route-conflicts-d9f5eefe8e68?source=rss-6723e7ee109a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9f5eefe8e68</guid>
            <dc:creator><![CDATA[gilbert andanje]]></dc:creator>
            <pubDate>Sat, 29 Jun 2024 04:36:43 GMT</pubDate>
            <atom:updated>2024-06-29T05:31:19.663Z</atom:updated>
            <content:encoded><![CDATA[<p>When developing a web application using Express.js, it’s common to use <strong>path parameters </strong>to create dynamic and flexible routes. However, conflicts can arise when <strong>static routes </strong>and <strong>parameterized routes </strong>overlap. This can lead to unexpected behaviour, where certain routes become inaccessible. In this article, we will explore strategies to effectively manage path parameters and avoid these conflicts in your Express.js applications.</p><p><strong>Understanding Route Conflicts</strong></p><p>In Express.js, routes are matched in the order they are defined. Consider the following example:</p><pre>const express = require(&#39;express&#39;);<br>const app = express();<br>app.get(&#39;/users/:id&#39;, (req, res) =&gt; {<br> res.send(`User ID: ${req.params.id}`);<br>});<br>app.get(&#39;/users/profile&#39;, (req, res) =&gt; {<br> res.send(&#39;User Profile&#39;);<br>});<br>app.listen(3000, () =&gt; {<br> console.log(&#39;Server is running on port 3000&#39;);<br>});</pre><p>In this scenario, the route /users/profile might not be reachable because the parameterized route /users/:id can catch it. When a request is made to /users/profile, Express matches it to the first route (/users/:id) and treats “profile” as an ID.</p><p><strong>Strategies to Avoid Route Conflicts</strong></p><p><strong>1. Order Routes Carefully</strong></p><p>One of the simplest ways to avoid conflicts is by defining static routes before parameterized routes. This ensures that Express will match the static route first, preventing the parameterized route from catching unintended paths.</p><pre>app.get(&#39;/users/profile&#39;, (req, res) =&gt; {<br> res.send(&#39;User Profile&#39;);<br>});<br>app.get(&#39;/users/:id&#39;, (req, res) =&gt; {<br> res.send(`User ID: ${req.params.id}`);<br>});</pre><p>By placing /users/profile before /users/:id, the static route will be matched correctly.</p><p><strong>2. Use Regular Expressions</strong></p><p>You can make your parameterized routes more specific by using regular expressions. This helps to clearly differentiate between static and dynamic routes.</p><pre>app.get(&#39;/users/:id(\\d+)&#39;, (req, res) =&gt; {<br> res.send(`User ID: ${req.params.id}`);<br>});<br>app.get(&#39;/users/profile&#39;, (req, res) =&gt; {<br> res.send(&#39;User Profile&#39;);<br>});</pre><p>In this example, the route /users/:id(\\d+) will only match numeric IDs, allowing /users/profile to be matched correctly.</p><p><strong>3. Namespace Your Routes</strong></p><p>Another effective strategy is to namespace your routes, making them more specific and avoiding overlaps.</p><pre>app.get(&#39;/users/profile&#39;, (req, res) =&gt; {<br> res.send(&#39;User Profile&#39;);<br>});<br>app.get(&#39;/user/:id&#39;, (req, res) =&gt; {<br> res.send(`User ID: ${req.params.id}`);<br>});</pre><p>By using different namespaces, such as /users for static routes and /user for parameterized routes, you can avoid conflicts.</p><p><strong>Conclusion</strong></p><p>Managing path parameters in Express.js requires careful consideration to prevent route conflicts. By ordering routes thoughtfully, using regular expressions, and employing namespaces, you can ensure that your application routes work as intended. These strategies will help you create a more robust and maintainable Express.js application, avoiding the pitfalls of route conflicts and ensuring a smoother user experience.</p><p>By implementing these practices, you can avoid common pitfalls and create a more reliable and user-friendly application. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9f5eefe8e68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Update Release]]></title>
            <link>https://medium.com/@gilbertandanje/update-release-379cb9d9518b?source=rss-6723e7ee109a------2</link>
            <guid isPermaLink="false">https://medium.com/p/379cb9d9518b</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[gilbert andanje]]></dc:creator>
            <pubDate>Wed, 13 Mar 2024 04:49:16 GMT</pubDate>
            <atom:updated>2024-03-13T04:49:16.248Z</atom:updated>
            <content:encoded><![CDATA[<p>🤔How do you update a service in <a href="https://www.linkedin.com/feed/hashtag/?keywords=production&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#production</a>?🚀 Major applications like <a href="https://www.linkedin.com/feed/hashtag/?keywords=whatsapp&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#whatsapp</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=google&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#google</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=facebook&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#facebook</a> use <a href="https://www.linkedin.com/feed/hashtag/?keywords=canarydeployment&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#canarydeployment</a> to release feature updates on their applications globally.</p><p>Hold up! 🤚What is <a href="https://www.linkedin.com/feed/hashtag/?keywords=canarydeployment&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#canarydeployment</a>? This is a <a href="https://www.linkedin.com/feed/hashtag/?keywords=releasestrategy&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#releasestrategy</a> where a feature is rolled out to a subset of users eg in a certain geographic location and observed as it is gradually released to the rest of the users. It&#39;s a similar concept to the <a href="https://www.linkedin.com/feed/hashtag/?keywords=circuitbreaker&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#circuitbreaker</a> pattern that I explained in my <a href="https://www.linkedin.com/feed/hashtag/?keywords=kubernetes&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#kubernetes</a> post <a href="https://lnkd.in/dexkPUx9">https://lnkd.in/dexkPUx9</a> where the <a href="https://www.linkedin.com/feed/hashtag/?keywords=halfopen&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#halfopen</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=halfclosed&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#halfclosed</a> states are used by <a href="https://www.linkedin.com/feed/hashtag/?keywords=ingresscontroller&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#ingresscontroller</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=failsafe&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#failsafe</a> design to restore a service recovering from #failure gradually.</p><p>Besides this strategy, there is also the <a href="https://www.linkedin.com/feed/hashtag/?keywords=bluegreen&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#bluegreen</a> release strategy where the new version of a service is deployed alongside the old version and after validation, all the traffic is routed to the new version and the old version is aggressively switched off.</p><p>Lastly, there is a <a href="https://www.linkedin.com/feed/hashtag/?keywords=rollingrelease&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#rollingrelease</a> strategy where as new instances of a service are released they start receiving traffic right away. While these new instances are released the old ones start being removed. This is the default behaviour of how <a href="https://www.linkedin.com/feed/hashtag/?keywords=k8s&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#k8s</a> or <a href="https://www.linkedin.com/feed/hashtag/?keywords=minikube&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#minikube</a> updates <a href="https://www.linkedin.com/feed/hashtag/?keywords=pods&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#pods</a> using the <a href="https://www.linkedin.com/feed/hashtag/?keywords=declarative&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#declarative</a> approach until all the old versions are phased out. During this shift, there is a small window where you’ll be having 2 versions of your application in production.</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=releasestrategy&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#Releasestrategy</a> is a whole topic. I will stop here for now but there is another special strategy called the <a href="https://www.linkedin.com/feed/hashtag/?keywords=ringbased&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7173419792773627906">#ringbased</a> deployment strategy. Research on what it does and how different it is from the 3 strategies discussed here.<br>You can also get more insight from this blog post:<br><a href="https://lnkd.in/dxdMsj8R">https://lnkd.in/dxdMsj8R</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=379cb9d9518b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>