<?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 Jim K on Medium]]></title>
        <description><![CDATA[Stories by Jim K on Medium]]></description>
        <link>https://medium.com/@jimk?source=rss-565222d7161d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lApjphc1B3cXlbK9JVDRYA.jpeg</url>
            <title>Stories by Jim K on Medium</title>
            <link>https://medium.com/@jimk?source=rss-565222d7161d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 21:51:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jimk/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[Contagious Dancing (CD) with Ballerina]]></title>
            <link>https://jimk.medium.com/contagious-dancing-cd-with-ballerina-751dba37a81b?source=rss-565222d7161d------2</link>
            <guid isPermaLink="false">https://medium.com/p/751dba37a81b</guid>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[ballerina]]></category>
            <dc:creator><![CDATA[Jim K]]></dc:creator>
            <pubDate>Tue, 03 Sep 2019 16:59:30 GMT</pubDate>
            <atom:updated>2021-03-31T20:09:16.141Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*XcjAYZ39HvmWHE1A.jpg" /><figcaption><a href="https://www.behance.net/gallery/29029597/BAHA-BALLERINA">“BAHA BALLERINA”</a> by <a href="https://www.behance.net/AllanJones">Allan Jones</a> is licensed under <a href="https://creativecommons.org/licenses/by-nc/4.0/?ref=ccsearch&amp;atype=rich">CC BY-NC 4.0</a></figcaption></figure><p><strong>Backstory</strong></p><p>We have gone from configuration to code driven development flow. Developers have rejoiced at the chance to use code to create their services over XML.</p><p>Our original flow:</p><figure><img alt="Graphical Overview of development and deployment" src="https://cdn-images-1.medium.com/max/1024/1*JIGZn_ZM9t-VWjjgu3TV-A.png" /><figcaption>Overview: 1. Push XML Config to source control, 2. Webhook Initiates Build Process, 3. Build and Deploy to NFS</figcaption></figure><p><strong>Overview of components:</strong><br>- WSO2 EI, API, and IS (<a href="https://wso2.com/library/conference/2017/2/wso2con-usa-2017-introducing-ballerina/">8</a>)<br>- Docker (<a href="https://www.docker.com/resources/what-container">4</a>)<br>- Kubernetes (<a href="https://kubernetes.io/">5</a>)<br>- Gitlab (<a href="https://about.gitlab.com/">3</a>)<br>- Jenkins (<a href="https://jenkins.io/">2</a>)</p><p>While we are also in progress on creating a Continuous Integration (CI) flow to reduce delivery time, there are still some minor hurdles in terms of deployment and testing and keeping everything “like prod”.</p><p><strong>A New Dance</strong></p><p>Our team was at the inaugural release of Ballerina (<a href="https://ballerina.io/">1</a>) at WSO2Con USA 2017 (<a href="https://wso2.com/library/conference/2017/2/wso2con-usa-2017-introducing-ballerina/">8</a>) and immediately saw its potential. Instead of having various tooling and configuration solutions, we could now have all aspects of the deployment lifecycle in the very code that is being maintained and deployed.</p><p>The initial deployment of our first production ballerina backed service was for a single resource of a top-5 used services. A good blend for a widely used services and segmenting potential failures to a single resource. We have had this in production with zero downtime, data loss, or issues for over a year.</p><p>As this was the initial deploy, it was built and deployed manually to our Kubernetes (<a href="https://kubernetes.io/">5</a>) cluster.</p><p>Since the initial deploy of this service we have on-boarded several development teams ranging from Mobile/Web-App, Security, SaaS, and Infrastructure. To prepare ourselves for a rush of incoming Ballerina deployments we created a scaffolding CLI and deployment pipeline.</p><p>Current Deployment Overview:</p><figure><img alt="Graphical overview of ballerina development and deployment flow" src="https://cdn-images-1.medium.com/max/1024/1*sZK-t7FQ1W42OrQCxj_06Q.png" /><figcaption>Overview: 1. Locally develop Ballerina and push to source control, 2. Merge request webhook triggers test,build, and deploy, 3. Update existing WSO2 API Store with new Swagger/OpenAPI, 4. Developers subscribe to API</figcaption></figure><p>I’ll go into more detail of current deployment pattern in a future post.</p><p>One of the largest components of our environment that I did not go into great detail about is our culture of collaboration. For every technical decision that is made there is a non-technical impact. Our team has been termed the “Rogue in Context” team for good reason. Using the inter-team relationships that we have had for years, we were able to go from build, deploy, run model to a true DevOps approach. Instead of having to send an email for an environment rebuild we can now configure some upstream items and kick off a pipeline build to build and deploy entire environments. This wasn’t well received initially, but the organization is coming to realized the speed of adaptation and quality that we have created. You will want to have this type of culture to some degree for Ballerina to be well integrated into work flows. If your organization still thinks the Earth is flat, aka throw the pig over the wall operations, then this language will make you your org’s Giordano Bruno (<a href="https://en.wikipedia.org/wiki/Giordano_Bruno#A_martyr_of_science">9</a>).</p><figure><img alt="Sculpture of Giordano Bruno" src="https://cdn-images-1.medium.com/max/1000/0*lwjLylVVTk-84Z1D.jpg" /><figcaption>Ettore Ferrari, <em>Giordano Bruno</em> (1889). Source: <a href="http://www.northernrenaissance.org/wordpress/wp-content/uploads/2015/11/FerrariBrunoTesta.jpg">http://www.northernrenaissance.org/wordpress/wp-content/uploads/2015/11/FerrariBrunoTesta.jpg</a></figcaption></figure><p><strong>TL;DR;</strong></p><p>Ballerina (<a href="https://ballerina.io/">1</a>) will enable fast, quality, 12-Factor (<a href="https://12factor.net/">7</a>) ready deployments out of the box. The strong annotation set is great “batteries included” approach that will have Devs and Ops collaborating from the start of development.</p><p>If you don’t have a DevOps culture or want to build one, this is a great catalyst point for starting that conversation.</p><p><strong>References:</strong></p><ul><li><a href="https://ballerina.io/">https://ballerina.io</a> (1)</li><li><a href="https://wso2.com/library/conference/2017/2/wso2con-usa-2017-introducing-ballerina/">https://jenkins.io/</a> (2)</li><li><a href="https://about.gitlab.com/">https://about.gitlab.com/</a> (3)</li><li><a href="https://www.docker.com/resources/what-container">https://www.docker.com/resources/what-container</a> (4)</li><li><a href="https://kubernetes.io/">https://kubernetes.io/</a> (5)</li><li><a href="https://wso2.com/platform">https://wso2.com/platform</a> (6)</li><li><a href="https://12factor.net/">https://12factor.net/</a> (7)</li><li><a href="https://wso2.com/library/conference/2017/2/wso2con-usa-2017-introducing-ballerina/">https://wso2.com/library/conference/2017/2/wso2con-usa-2017-introducing-ballerina/</a> (8)</li><li><a href="https://en.wikipedia.org/wiki/Giordano_Bruno#A_martyr_of_science">https://en.wikipedia.org/wiki/Giordano_Bruno#A_martyr_of_science</a> (9)</li><li><a href="http://www.northernrenaissance.org/wordpress/wp-content/uploads/2015/11/FerrariBrunoTesta.jpg">http://www.northernrenaissance.org/wordpress/wp-content/uploads/2015/11/FerrariBrunoTesta.jpg</a> (10)</li><li><a href="https://search.creativecommons.org/photos/e80a987b-b83f-44c4-b273-f0a7d079ab32">https://search.creativecommons.org/photos/e80a987b-b83f-44c4-b273-f0a7d079ab32</a> (11)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=751dba37a81b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>