<?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 Samudra Kanankearachchi on Medium]]></title>
        <description><![CDATA[Stories by Samudra Kanankearachchi on Medium]]></description>
        <link>https://medium.com/@samudrakanankearachchi?source=rss-fb59bf7e7052------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wwnFiBVUPLs03EHk.</url>
            <title>Stories by Samudra Kanankearachchi on Medium</title>
            <link>https://medium.com/@samudrakanankearachchi?source=rss-fb59bf7e7052------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:25:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samudrakanankearachchi/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[Understand gaps in your Cloud Architecture .]]></title>
            <link>https://medium.com/@samudrakanankearachchi/understand-gaps-in-your-cloud-architecture-917ea6917dac?source=rss-fb59bf7e7052------2</link>
            <guid isPermaLink="false">https://medium.com/p/917ea6917dac</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[maturity-model]]></category>
            <dc:creator><![CDATA[Samudra Kanankearachchi]]></dc:creator>
            <pubDate>Thu, 29 Mar 2018 08:47:41 GMT</pubDate>
            <atom:updated>2018-03-29T13:17:58.313Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s context where every other business is on the verge of digital disruption and “Digitization” has become “go to strategy” and for every business, firms need to respond to market needs by rapidly composing minimum viable product through available services, while still maintaining the QoS of application.</p><p>Organizations with matured Enterprise Products are facing unprecedented challenge today when it comes to getting the right Cloud Native Enterprise Architecture in place when Re-Platforming their existing services to build new products with modern day cloud experiences, so that they can keep up the pace with competitors, who are on the verge of disrupting some or the other business models. As a result, more and more organizations are adopting or rather migrating to a Cloud Native microservices based architecture fronted by an API management solution.</p><p>It is important understand the dynamics of a modern day cloud architecture which helps to compete in fast changing business competition. And also it is vital to understand the current maturity level of your architecture to in order to develop incremental business and technology milestone plan to fix major gaps in your software echo system.</p><p>In any software product once the Architecture is established it is difficult to change to its next evolutionary architecture unless your do it well planed incremental strategy . Usually a architectural change costs a lot compared to adding new features into product . As a result software products getting bigger and bigger without investing much investment on Architectural changes. As a result product architectures are mainly evolve closer to its original architecture (Base Architecture) . Because of the massive features product terns into a heavy bulky product which is difficult to change. As a result products get saturated , business get saturated and new entrance to the same market gets a better advantage over long standing counter part.</p><p>As shown in below diagram long standing Software Products are keep accumulating architectural Debts in the system over longer period of time. These Debts can cause chronic sicknesses which makes can your system slower and slower over the period of time . Not taking adequate changes in the architecture in incremental manner can cause fatal errors which cause collapses , hiccups in your business continuity in long run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*8eCyJu4pGSpVDT_AIio7-g.png" /><figcaption>Gaps in Architecture Maturity</figcaption></figure><p>Soon or later you may need to start decompose your monolithic products into multiple less heavy products so that these smaller products can change fast to deal with new competitors.</p><p><strong>How much i have to pay as Debt ?</strong></p><p>There is no easy way to understand the maturity gaps with modern day software architectural needs. These gaps are the key reasons to architectural debts. <strong>Cloud Native Product Maturity Model i</strong>s a systematic approach to understand gaps in your software product echo system to in par with modern day architectural needs.</p><p>Elaboration of Maturity model is done based on following sequence so that you will get very through understanding about the maturity model and how it can be useful to identify gaps trough a systematic study.</p><p>To explain the model in detail i have organised content in the document in following order which will will hive your better contextual understanding about the Maturity Model Context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*E8guFjUfl8hY_FDipxMVZw.png" /><figcaption>Maturity Model and Its background context</figcaption></figure><h3><strong>Legacy vs Startups Competition</strong></h3><p><strong><em>State of modern day Startup</em></strong></p><p>If you look at modern day startup companies they have strong architecture building blocks to to build state of the art application platforms with following key architectural advantages to stay ahead among the business competition.</p><ul><li>Rapid automatic feature delivery to market (Fast delivery) .</li><li>Automated testing at different level (Unit testing / Service Testing / User Interface Testing)</li><li>Scale-in / Scale-out based on demand (Elasticity).</li><li>Rapid Prototyping Capabilities/Prototyping Verification (AB Testing , Feature testing)</li><li>Usage base pricing (per-minute ,per-second price models) .</li><li>Infrastructure Independent (Can select cloud provider based on cost of operation factor ).</li><li>Resilient (Fail Safe , Disaster Recovery is part of the product)</li><li>Highly secured</li><li>Analytics base decision making (Machine Learning , BI ,Predictive Analytics)</li><li>Support different form factors ( Mobile , Web ,Desktop)</li></ul><p><strong><em>State of Legacy ISV Products</em></strong></p><p>Because of the constant business pressure majority of long standing software products had became very bulky and monolithic in nature because of adding constant new features with out following good engineering disciplines. Some of those products has staid too long with any engineering revamp so products has become difficult to mange and deal with competition with their modern day counterparts.</p><p>When your monolithic systems start getting bigger and less and less manageable, common sense leads a development team to modernize the system in order to keep it live and competitive. In those systems following common signs that indicate a need for change.</p><ul><li>Long deployment cycles.</li><li>No separation of modules (small change in code involves other modules to build, test and deploy)h</li><li>Legacy technology stack</li><li>Scalability issues (inability to scale portion of application)</li><li>It is hard to start on the project for new developers The old system can be modernized in several ways.</li><li>Hard to isolate new feature from legacy parts of the system.</li><li>Lack of fail safety and disaster recovery which can collapse the business from web attacks and disaster situations.</li></ul><p><strong>Quick Maturity Assessment on Your Software Product</strong></p><p>When your organization is not sure about where you stand today the following Cloud Native Product Maturity model will help your to understand your software product architecture reediness to the modern day fast changing market dynamics.</p><h3><strong>Cloud Native Product Maturity Model</strong></h3><p>The cloud native product maturity model has 5 Different levels of maturity as described below. These maturity levels reflect how the <strong>base architecture (Original Architecture at the Inception of the product)</strong> software systems are evolved in different period time.</p><ol><li>Level 0 — Monolithic <strong>(Cloud Unfriendly)</strong></li><li>Level 1 — Virtualized <strong>(Cloud Ready)</strong></li><li>Level 2 — Loosely Coupled PaaS <strong>(Cloud Friendly)</strong></li><li>Level 3 — Abstracted <strong>(Cloud Resilient)</strong></li><li>Level 4 — Adaptive <strong>(Cloud Native /Optimized)</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*mPj4cn6KEqQQi5zshfYE2g.png" /><figcaption>Evolution of Cloud Architectures</figcaption></figure><p><strong>Level 0 — Monolithic (Cloud Unfriendly)</strong></p><ul><li>Applications are monolithic</li><li>Runs on physical hardware</li><li>Manually tested</li><li>Manually deployed using</li></ul><p><strong>Level 1 — Virtualized (Cloud Ready)</strong></p><ul><li>Applications are runs on virtual infrastructure</li><li>Applications are initiated from image or scripts</li></ul><p><strong>Level 2 — Loosely Coupled PaaS (Cloud Friendly)</strong></p><ul><li>Applications are composed of loosely coupled services</li><li>Application services are discoverable by name</li><li>Application compute and storage are separated</li><li>Applications consumer one or more cloud services: Compute, Storage, Network</li><li>Integration testing is done at service levels in addition unit testing.</li><li>Automated continuous integration.</li></ul><p><strong>Level 3 — Abstracted (Cloud Resilient)</strong></p><ul><li>Applications are composed using services that are stateless (micro service oriented)</li><li>Application is unaware and unaffected by failures of dependent services</li><li>Application is infrastructure agonistic and can run anywhere (Containerized)</li><li>Production / Testing and Developer testing staging environments are separated.</li><li>Automated continuous deployment and Continuous delivery</li></ul><p><strong>Level 4 — Adaptive (Cloud Native /Optimized)</strong></p><ul><li>Applications run on infrastructure independent containers.</li><li>Applications can dynamically migrate across infrastructure providers without interruption of services</li><li>Applications can elastically scale in/ scale out appropriately based on demand.</li><li>DevOps base continuous deployment.</li></ul><h3><strong>Performing a Quick Maturity Assessment of your product Architecture Maturity?</strong></h3><p>Following questions are used design to perform a quick assessment.</p><ol><li><strong>Delivery Pipeline velocity</strong></li></ol><ul><li>Does it take longer time to deploy ?</li><li>includes many manual aspects during deployment?</li></ul><p><strong>2. Continuous Deployment Strength</strong></p><p>Is it possible to redeploy your entire application in minutes?</p><p>Can you revert it in minutes if things go wrong ?</p><p><strong>3. Separation of Configuration from Code</strong></p><p>Application depend on specific IP addresses, ports, file systems, that are not part of the automated installation?</p><p><strong>4. Fail Safe /Auto recovery infrastucture</strong></p><p>Is it possible to your application survive, and auto-recover from, infrastructure (compute, network, storage) failures?</p><p><strong>5. Seamless Automatic Updates</strong></p><p>Can you application upgrade and downgrade, your application (or parts of the application) without any impact to users?</p><p><strong>6. Side by Side Execution of Multiple version</strong></p><p>Can you run multiple versions of your application services, in the same environment at the same time?</p><p><strong>7. Isolation of Developer ,Tester and Production stages</strong></p><p>Can you safely test in production? (Developer , Testing , production Stage isolation)</p><p><strong>8. Failure Isolation of different parts of the system</strong></p><p>If a part of an application fails, will other parts continue to operate?</p><p><strong>9. Ability to Detect errors fast</strong></p><ul><li>Can your automated test system detect errors fast ?</li><li>Automated unit test to detect developer errors?</li><li>Scenario Test / Service Test as integration and regression test ?</li><li>Automated UI test for Scenario testing ?</li><li>Performance test to identify performance issues ?</li><li>Automated Security Tests for identify vulnerabilities</li></ul><p><strong>10. Elasticity</strong></p><p>Can parts of your application scale-up and scale-down automatically, based on user load or other factors? (Elasticity)</p><p><strong>11. Cloud provider Infrastructure / Platform Independent</strong></p><p>Can you deploy application components across cloud providers? Can you deploy an application component on a different cloud provider?</p><p><strong><em>Maturity level mapping criteria</em></strong></p><p>following criteria can be used to calculate the maturity level of your software product.</p><ol><li>“Yes” to question <strong>0</strong> <strong>Level 0.</strong></li><li>“Yes” to question <strong>1 Level 1.</strong></li><li>“Yes” to all questions <strong>from 1 through 3 Level 2</strong>.</li><li>“Yes” to all questions from <strong>1 through 7 Level 3</strong>.</li><li>“Yes” to all questions from <strong>1 through 11 Level 4</strong>.</li></ol><p>Once your maturity gaps are identified your can develop a incremental migration strategy . In next article i will will talk about a reference architecture and a migration strategies .</p><p><strong>References</strong></p><ul><li>AWS / Azure Cloud native architecture references.</li><li>Varies Cloud Native best practices documents.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=917ea6917dac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time series Forecasting in Machine Learning]]></title>
            <link>https://engineering.99x.io/time-series-forecasting-in-machine-learning-3972f7a7a467?source=rss-fb59bf7e7052------2</link>
            <guid isPermaLink="false">https://medium.com/p/3972f7a7a467</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[timeseries]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Samudra Kanankearachchi]]></dc:creator>
            <pubDate>Wed, 01 Feb 2017 10:19:18 GMT</pubDate>
            <atom:updated>2017-02-02T00:29:27.565Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>“Detecting Timely Patterns in Data”</strong></blockquote><p>Understanding timely patterns/characteristics in data are becoming very critical aspect in analyzing and describing trends in business data .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TLntcCZE8KBKE4QACbRoaw.png" /></figure><p><strong>Example Use case 1 :</strong> Fitness device market is built around buy people to help track fitness related data to monitor effectiveness of their fitness exercises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*FaRIF4vpEbU1xGmz3HsrJQ.jpeg" /><figcaption><strong>Activity performance monitoring</strong></figcaption></figure><p><strong>Example Use Case 2 :</strong> Sales growth of a product over period of time is a good indicator of sales performance of a product manufacturing company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*80GInK0TdrYTl7XZPwNJOA.jpeg" /><figcaption><strong>Product Sales Growth</strong></figcaption></figure><h3>Common Time Series Patterns</h3><p>A typical time series model can exhibits different patterns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_RKPeIxCB9CS_2SsLyKXw.jpeg" /></figure><p>in most of the situation it can be a graph of a combination of all of above patterns . Therefor it is important to understand components of a time series in detail . Next section will describe the detail component of a time series .</p><h3>Components of a time series</h3><p>A time series can be analyze in detail by breaking down it into its primary components . We call this process as time series decomposition . If you closely look at a time series it is composed of <strong><em>Trend </em></strong>, <strong><em>Seasonality</em></strong>, <strong><em>Cyclic </em></strong>and <strong><em>Residual </em></strong>components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*tZ7PzDjqfWHlID3mxW-OVQ.jpeg" /><figcaption>Decomposition of a Time Series</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*Cc_sTgSbJzU871sMeaj0QA.jpeg" /><figcaption>A Decomposed Time series</figcaption></figure><ol><li><strong>Trend Component</strong></li></ol><p>The long-term tendency of a series to increase or fall (upward trend or downward trend).</p><p><strong>2. Seasonality Component</strong></p><p>The periodic fluctuation in the time series within a certain period. These fluctuations form a pattern that tends to repeat from one seasonal period to the next one.</p><p><strong>3. Cycles Component</strong></p><p>Long departures from the trend due to factors others than seasonality. Cycles usually occur along a large time interval, and the lengths of time between successive peaks or troughs of a cycle are not necessarily the same.</p><p><strong>4. Irregular movement Component</strong></p><p>The movement left after explaining the trend, seasonal and cyclical movements; random noise or error in a time series.</p><h3>Modeling a time series using R</h3><p>For the demonstration purpose i have used a time series use case from banking industry as explained below.</p><p><strong>Business Case :</strong> How do you predict the remaining balance of bank account for remaining two years.</p><ul><li>Financial expenditures of a bank users are highly unpredictable over the period of time.</li><li>Expenditure patterns of the user is random in nature.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5GyYLGTwBCLjkdkk0_9Ng.png" /></figure><p>When the behavioral pattern of a user unknown and random in nature there is no easy way that you can write a business logic to automatically predict the future balances in the user account .</p><p><strong>Solution :</strong> Use a machine learning approach to create a prediction model predict future account balances of the user .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LuCzvUm3p45pkK6T6TtSYg.png" /></figure><p>Lets use step by step approach go trough a practical time series use case .</p><p><strong>Step 0</strong></p><p>In this case i am using a CSV file which has monthly balance of the users bank account starting from 1973–01 to 2013–06 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*Npq767rG0j9KBP_TDy1PJw.png" /></figure><p><strong>Step 1: install forcast and fpp packages in R Studio</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*oixhsMv8QmKX7q4HepTkdQ.png" /></figure><p><strong>Step 2: Load data from CSV file into R data frame .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*V5vb9A0nvHP7zGWgdgMT6Q.png" /></figure><p><strong>Step 3: create time series Object using “AccountBal” data frame.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*0na0T3WK2jrtDNdSY0RleA.png" /></figure><p><strong>Step 4: plot time series Object .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*8EBXnIYAbX6vhCLDzcJvCA.png" /></figure><p><strong>step 5 : Decomposing time series into its components</strong></p><p>you can use decompose command to split the time series into its trend , seasonal and irregular components</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*8boudgAKHJTpAioTWdyflg.png" /></figure><p><strong>step 6 : Predicting remaining balances of account for next 10 years using holtWinter Prediction Model.</strong></p><p>Prediction is done in two steps . In first step you create the holtWinters model by using past time series data . Then in the second step we use that model to make predictions for next 10 years .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*KycHKiOFuTCVfTqYa628TQ.png" /></figure><p>Then you can pot the predicted values in a new time series graph from 2014–2022</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*wyyIMtxFs7LKbD-7Me5NhQ.png" /></figure><p>As the final step you can decompose the predicted time series to identify future trends and future seasonal effects reaming account balance of the user .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*IJtepwpSSfLgo49qHxQRyA.png" /></figure><p>As a summery in this article i have tried to give you a basic understanding about the time series modeling . In future articles i may discuss some advance concepts around time series modeling subject area.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3972f7a7a467" width="1" height="1" alt=""><hr><p><a href="https://engineering.99x.io/time-series-forecasting-in-machine-learning-3972f7a7a467">Time series Forecasting in Machine Learning</a> was originally published in <a href="https://engineering.99x.io/">Engineering at 99x</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>