<?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 Tarlan Amrahli on Medium]]></title>
        <description><![CDATA[Stories by Tarlan Amrahli on Medium]]></description>
        <link>https://medium.com/@emrahli.terlan88?source=rss-17cd8c9390b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Tarlan Amrahli on Medium</title>
            <link>https://medium.com/@emrahli.terlan88?source=rss-17cd8c9390b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:45:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emrahli.terlan88/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[ Revolutionizing Freeze Time Management with Kamaji Bot ]]></title>
            <link>https://medium.com/@emrahli.terlan88/revolutionizing-freeze-time-management-with-kamaji-bot-3ffaf2e259dd?source=rss-17cd8c9390b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ffaf2e259dd</guid>
            <dc:creator><![CDATA[Tarlan Amrahli]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 21:17:38 GMT</pubDate>
            <atom:updated>2024-12-05T21:17:38.770Z</atom:updated>
            <content:encoded><![CDATA[<p>🚀 Revolutionizing Freeze Time Management with Kamaji Bot 🚀</p><p>For almost a year now, I’ve been part of the DevOps team at KapitalBank, and we are constantly striving to automate manual tasks to streamline our operations. Today, I’m excited to share one of our most innovative projects — <strong>Kamaji Bot</strong>, which has revolutionized how we manage Freeze Time deployments and corporate messaging. In fact, our team is also the owner of the <strong>Kamaji Shared Pipeline</strong> product. The name might sound intriguing, doesn’t it?</p><p>💡 <strong>Why Kamaji?</strong><br>Inspired by Kamaji, the multi-armed character from <em>Spirited Away</em>, our bot mirrors his multitasking capabilities by orchestrating deployments, managing approvals, and ensuring stability during critical periods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*Xv6awjFuVNfIWMab.jpg" /></figure><p>As many large companies know, Freeze Time is a critical period designed to maintain product stability and prevent downtime. Among the hundreds of microservices deployed daily, there are moments when urgent production releases become necessary. Handling these manually often leads to time loss and operational challenges. That’s where Kamaji Botsteps in. Kamaji Bot automates processes during Freeze Time and enables critical production releases to be carried out more quickly and reliably. Now, Freeze Time is no longer just a period to maintain stability but also a phase where automation and innovation come together!”</p><p>🔧 <strong>The Solution</strong>:<br>We developed a dedicated app in Microsoft Entra and Azure, underpinned by the Microsoft Bot Framework, to create <strong>KamajiBot</strong>. It not only automates processes during Freeze Time but also integrates seamlessly with Microsoft Teams to streamline critical workflows.</p><p>🛠️ <strong>Tech Stack Highlights</strong>:<br><em>Three Python Flask Microservices</em>: Facilitating modular communication via APIs.<br><em>SQLite Database</em>: Efficiently managing data.<br><em>Microsoft Teams Integration</em>: Enabling real-time interactions for deployment approvals, declines and updates.</p><p>✨ <strong>Key Features of Kamaji Bot</strong>:<br>1️⃣ Freeze Period Deployment Management:<br>Critical releases during Freeze Time are handled through a Teams chat where stakeholders can accept or decline deployment requests.<br>Upon approval, Kamaji triggers a Pipeline Job, allowing production deployments for an hour to address urgent issues without manual intervention.<br>2️⃣ <strong>Strict Governance Controls</strong>:<br>If a request is declined, Kamaji enforces a suspension period, ensuring no unauthorized changes during Freeze Time.</p><p>🔄 <strong>How It Works</strong>:<br>When developers attempt to run a Deploy to Production job during the Freeze Time period:<br>The Deploy to Production job initially fails and sends a notification to the appropriate Teams channel.<br>Stakeholders in the Teams channel can review and accept or decline the request directly.<br>If accepted, Kamaji automatically restarts the Deploy to Production job, ensuring that critical updates can proceed without additional manual intervention.</p><p>If declined, Kamaji halts the process and enforces Freeze Time restrictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*N0yMgpOq3hPLEaLAUnXXsA.png" /></figure><p><strong>Visualizing the Workflow:</strong><br>Here’s a high-level representation of how Kamaji Bot orchestrates Freeze Time deployments:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O8S8qmMdXccGS4NgvP2dlw.png" /><figcaption>Diagram of Scenario of Bot</figcaption></figure><p><strong>Deploy to Production Job</strong>:</p><ul><li>Represents the <strong>GitLab CI/CD pipeline</strong> responsible for deploying updates to the production environment.</li><li>This job is triggered by the <strong>Kamaji Bot</strong> upon approval during a freeze period.</li></ul><p><strong>Freeze ChatOps</strong>:</p><ul><li>A <strong>Python microservice</strong> that handles communication with the <strong>Microsoft Teams App</strong>.</li><li>Sends deployment requests and receives approval/decline responses via <strong>Teams chats</strong>.</li><li>Acts as the primary interface for stakeholders to interact with the system.</li></ul><p><strong>Freeze Teams Notifier</strong>:</p><ul><li>A microservice that generates <strong>interactive notifications</strong> for Teams, such as approval/decline cards.</li><li>Sends critical deployment information (e.g., project name, pipeline link, date) to Teams.</li></ul><p><strong>Teams App</strong>:</p><ul><li>The <strong>Microsoft Teams integration</strong> where stakeholders interact with deployment requests.</li><li>Displays interactive cards for stakeholders to <strong>Approve</strong> or <strong>Decline</strong> deployment actions.</li></ul><p><strong>Bot Handler</strong>:</p><ul><li>The central <strong>backend service</strong> that coordinates all actions, including:</li><li>Checking freeze periods.</li><li>Logging actions into the <strong>SQL database</strong>.</li><li>Orchestrating communication between Teams, GitLab, and the database.</li><li>Triggers the <strong>Deploy to Production Job</strong> in GitLab upon approval.</li></ul><p><strong>SQLLite Database</strong>:</p><ul><li>Stores:</li><li>Freeze period actions.</li><li>Deployment requests.</li><li>Audit logs for compliance and tracking.</li><li>Ensures data integrity for all interactions within the system.</li></ul><p>🎯 <strong>Outcome:</strong><br>This initiative has enhanced communication during Freeze Time, streamlined critical updates, and empowered our teams to act swiftly without compromising compliance or stability.</p><p>🙌 <strong>Acknowledgments:</strong><br>I want to emphasize that as a <strong>Team</strong>, we are continuously working hard to improve <strong>Kamaji</strong>, and there’s still much ahead of us. I would like to express my gratitude to every team member who contributed to this project. A special thanks goes to <a href="https://medium.com/u/f1a64a809da3">Habib Guliyev</a>, whose efforts were instrumental in bringing KamajiBot to life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ffaf2e259dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>