<?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 Anil Kumar on Medium]]></title>
        <description><![CDATA[Stories by Anil Kumar on Medium]]></description>
        <link>https://medium.com/@anil.naugain?source=rss-5f3421a3f839------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_j_znYIft1OMXjYdKfvb5Q.jpeg</url>
            <title>Stories by Anil Kumar on Medium</title>
            <link>https://medium.com/@anil.naugain?source=rss-5f3421a3f839------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:38:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anil.naugain/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[System Migration Approach]]></title>
            <link>https://medium.com/@anil.naugain/system-migration-approach-4bebe6dd6722?source=rss-5f3421a3f839------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bebe6dd6722</guid>
            <category><![CDATA[application-migration]]></category>
            <category><![CDATA[assessment-system]]></category>
            <category><![CDATA[system-migration]]></category>
            <category><![CDATA[migration-approach]]></category>
            <category><![CDATA[application-assessment]]></category>
            <dc:creator><![CDATA[Anil Kumar]]></dc:creator>
            <pubDate>Tue, 13 Oct 2020 04:48:04 GMT</pubDate>
            <atom:updated>2020-10-13T04:48:04.742Z</atom:updated>
            <content:encoded><![CDATA[<p>Migration of applications or systems from existing platform to new platform has always been challenging for organizations. When it comes to migration there are several aspects which are required to be considered including but not limited to choice of technology (among available technology stack), underlying platform, migration approach, implementation time, existing investments (on licensing of tools, softwares and platforms), available skillset, time to production and platform switch strategy.</p><p>In this paper we will be focusing on migration approach with the help of a use case. We already understand that every application or system is different and might require a different migration approach, intent here is to address the migration approach in a generic way and present a perspective which I have developed during my time in industry. I hope the approach we will discuss here will fit in most of the cases and trigger the critical thinking process which is required for any defining migration strategy and process. So, with this let’s START.</p><p>To start on the right foot, we need a use case or a customer requirement where migration is needed from one platform to another platform. Let’s define a requirement for this paper.</p><h3>Customer context and requirement</h3><p>A multinational vehicle manufacturing customer having business spread across the globe has an IoT platform for its connected vehicle system (commercial and private vehicle divisions).</p><p><strong>Old Platform</strong> is an inhouse developed system by various internal teams. System has evolved organically over the period of time; development teams has developed whatever functionality they want to build whenever they want to build. While this approach has given them some of the best industry leading features and has helped grow their business exponentially, but along the way this has added more complexities to the systems which are heavily dependent on people having knowledge about the tools and technology choices they made during development. Ambiguity is one of the problems which was introduced because of this approach and various teams are having different solutions to solve similar problems like device connectivity, data processing and communication. Any change in the system requires significant effort in testing and there is always a consistent fear of things falling apart.</p><p>From infrastructure perspective Old System is deployed on on-premise data center and customer is spending a considerable amount of money as licensing fees for various software licenses employed by the development teams and on required infrastructure and management of the infrastructure.</p><p>With evolution of cloud technologies and to overcome current challenges and cost effectiveness in mind customer developed a new Platform leveraging cloud technologies. New Platform is developed leveraging Azure IoT services with PaaS first approach. With development of new platform customer has realized that new system is more cost effective as there is no need to pay any licensing fee upfront, high availability and scalability is available on demand, billing will happen only for the resources consumed which reduced cost on infrastructure and there is no need to baby sit the infrastructure for routine updates like OS and security patches.</p><p>At present these both platforms are up and running, catering two different geographical regions. Old system is deployed and supporting business in US region. Whereas the new system is developed as cloud native solution and catering to Europe region. Customer is looking forward to having a single unified IoT Platform to cater all geographies.</p><h3>Approach</h3><p>With above set context and requirement let’s try to build a platform migration approach. So, first let’s summarize our understanding of the problem. Here it goes.</p><p>As we understand that at present customer has two IoT platforms catering two different regions for two different business units i.e. Commercial Vehicle and Private Vehicle divisions (Europe &amp; US respectively).</p><p>IoT platform for the US region is custom developed leveraging various tools and technologies as foundation component for IoT Platform and for Europe region IoT platform is custom developed leveraging Microsoft Azure IoT hub and related IoT services.</p><p>Customer has taken a strategical decision to standardize IoT platform across business units/verticals by leveraging azure IoT hub and related azure services with PaaS first approach.</p><p>Any system migration is combination of multiple activities divided in multiple phases. Activities for our case will include development of connectivity agent to connect OBD (on board device) to new platform, update firmware (FOTA) to rollout deployment of new firmware to existing OBD, migration of existing OBD connectivity to new platform, data migration and sync between two platform, changes in telemetry data process flow and related business applications and respective 3rd party data eco system integrations.</p><p>Migration solution approach is primarily divided in two phases <strong>assessment phase</strong> and <strong>implementation phase</strong>.</p><h3>Phase-1 — Assessment</h3><p>In this phase various teams do an assessment of existing platform application and technology landscape. This will be a deep dive activity with customer’s platform teams to understand technical details like device and platform connectivity, protocols, APIs, application interfaces and various integration points with other enterprise or 3rd party systems. Assessment teams will capture and address existing platform pain points (if any), areas of improvement and prepare a migration plan covering short term, intermediate and long-term goals and implementation roadmap aligned with customer’s enterprise strategy and future vision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*x9g6S3DCaHHa3n5M" /></figure><p>Assessment report will/should contain details around:</p><ol><li>Current state of Existing Platforms containing details like current system architecture, system flow, dependencies and couplings between various services and components, identification of complexity in migration of components.</li><li>Number of existing defects/issues and any functional enhancements which are in progress within the platforms with severity and impact on both platforms during implementation phase.</li><li>Categorization of identified issues and recommended resolutions i.e. immediate fix before migration or post migration fix.</li><li>Architecture and system flow diagrams depicting transition of platform from current state to target state with detailed out intermediate state.</li><li>Implementation roadmap containing details about code level changes in existing platform, development &amp; deployment of new connectivity agents, processing components, platform switch strategy for new and existing OBD devices, remediation strategy for unforeseen issues during platform switch.</li></ol><h3>Phase-2 — Implementation</h3><p>In this phase development teams will start development and modifications to existing platforms. There are lot of ways to approach implementation as per individual or team experiences; for me I always prefer two phase/plans (short term and long term) approach for implementations activities.</p><p>In short term phase, focus will be on fixing any existing issues or any functional enhancements which are required to be fixed/completed before migration, partial switch, data migration and pilot with new devices and integrations related issues. Primary activities include:</p><ol><li>Changes in connectivity agents for OB devices for platform connectivity (Old &amp; New)</li><li>Device and platform interfaces changes</li><li>Integrations changes to enterprise applications and 3rd party systems</li><li>APIs (device onboarding and service activation)</li><li>Existing identified issues and ongoing functional enhancements which are categorized as critical and require to be fixed/completed before migration.</li><li>Establishing platform level connectivity, development of Azure IoT hub connector/adapter to collect data from old platform rest APIs and push data to new platform.</li><li>Creation of device models using device twins to represent old platform device models and related changes to the old platform back-end system to make it compatible with Azure back-end system.</li><li>Partial switch of the OB devices to new platform and data migration and sync activities.</li><li>Pilot run or parallel execution of both platforms to identify and fix any unforeseen issues. After successful pilot and complete switch activities will start.</li></ol><p>Long term phase includes activities focused on stabilizing the new platform and phased switching of OB devices to new platform. OB devices can be migrated in two ways:</p><p><strong>Remote migration</strong> where a new firmware will be deployed on existing OB devices (FOTA) having a connectivity agent developed based on azure IoT edge SDK.</p><ol><li>New agent will stop the old agent and restrict it to connect to old platform and establish a connection with new platform in azure.</li><li>Once connection is established with new platform and all operations start working fine new firmware will remove old agent and remove all configurations related to connectivity with old platform.</li><li>In case of connectivity failure with new platform or any breaking changes firmware will rollback and connectivity will be re-established with existing platform.</li></ol><p><strong>Physical migration</strong> where existing OB devices will be brought in physically to the nearest facility where new firmware will be deployed on the devices and the firmware will perform all the operations as mentioned above section. Connectivity and smooth operations will be verified after deployment and device will be marked as migrated to new platform.</p><h3>Benefits of Two phased Implementation approach</h3><p>Two phased migration approach will help in moving towards the target state by introducing changes to existing system in a systematic (step by step) way. This approach gives the flexibility to revert to previous working state of the system in case of any issues, hence reducing impact on ongoing business. Below is the pictorial view of the journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HHSetOXWX8IECnC2" /></figure><p><strong>Phase 1</strong> (short term) will ensure the seamless integration between old platform to new platform making appropriate changes at both ends. Once connectivity is established and data integration is done successfully between platforms, then application level changes will be initiated at new platform to accommodate any existing functionality/feature which is not developed or supported by new platform.</p><p>After changes, both systems will run in parallel for some time (ideally 1–3 months) to identify any breaking changes or high priority issues. During this parallel run some operations will be transferred to new system to validate whether new system is ready for complete switch. During this phase activities for next phase (long term) will be identified and foreseen challenges will be resolved before start of the phase 2.</p><p><strong>In Phase 2</strong> (long term) new OB devices will connect to azure IoT Hub based platform and new firmware will be rolled out (FOTA) for existing OB devices to use new platform and send data to respective platform. Old platform will be phased out once all existing OB devices migrated to Azure IoT Hub based platform. Phase 2 is a long-term implementation (usually 1–2 years) depending upon number of on field devices and new features to be incorporated. Both platforms are required to up till the time all existing OB devices are completely switched to new platform to support ongoing business.</p><h3>Conclusion</h3><p>System migrations are always challenging and complex task. It demands experience, comprehensive and cohesive thinking, collaborative approach, open mindset and right skillset. Right approach and strategy help in reducing impact on ongoing business and helps streamlining the migration process by introducing changes to the systems in a systematic way.</p><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/system-migration-approach-anil-kumar/"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bebe6dd6722" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Resource Allocation and Management]]></title>
            <link>https://medium.com/@anil.naugain/cloud-resource-allocation-and-management-b2b461fc61ba?source=rss-5f3421a3f839------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2b461fc61ba</guid>
            <category><![CDATA[subscription-management]]></category>
            <category><![CDATA[cloud-resource]]></category>
            <category><![CDATA[resource-consumption]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Anil Kumar]]></dc:creator>
            <pubDate>Sat, 12 Oct 2019 16:50:54 GMT</pubDate>
            <atom:updated>2019-10-12T16:56:00.375Z</atom:updated>
            <content:encoded><![CDATA[<p>In recent years we have seen a tremendous growth in public cloud services. In initial days cloud was seen or developed as an alternative or extension to existing IT infrastructure with flexibility to provide resources on demand and scalability (vertical and horizontal) without any limitations.</p><p>Every organisation requires disaster recovery sites which keeps their business-critical applications running in of case any planned or unplanned outages, setting up a DR site requires significant effort and cost. Evolution of cloud services has helped organizations in setting up DR sites with very less time and effort. The best part they don’t need to babysit the infrastructure for day to day activities like OS patches, anti-virus or anti-malware software updates, backups and the list goes on.</p><p>With the boom in Internet of Things, AI, Big Data and Data Science space which require significant amount of cloud resources (compute and storage), big cloud service providers like Microsoft, AWS, Google has seen the opportunity to take their public cloud offerings to next level and are trying hard to capture maximum portion of the market.</p><p>Specifically, IoT (Internet of Things) has opened new avenues in terms of solution accelerators focused service offerings for public cloud service providers. These solution accelerators or more specifically PaaS components can provide features which are as simple as collecting data from device and storing it on the cloud platform to full-blown device management service to digital twins implementation to get inside view of a building to track and manage workspace in a better way.</p><p>So, cloud is already cost effective and has PaaS services available as pay-as-you-go, then what are we talking about here?</p><p>Provisioning services (IaaS, PaaS) on cloud can be very tricky, if proper thought is not given to the resources needed for a solution it can burn a big hole in your pocket. In my 10+ years of experience with cloud implementations I have seen that at times the cost of cloud services is more than managing an on-premise infrastructure and managing cloud subscriptions becoming a nightmare for an organization.</p><p>We will discuss couple of topics here where an organization is having an enterprise license of Microsoft Azure cloud and runs various demo, showcase and pilot projects for its existing and potential customers.</p><ol><li>Topic 1 — Cloud Subscription Management</li><li>Topic 2 — Cloud Resource Allocation Guidelines</li></ol><h4><strong>Cloud Subscription Management</strong></h4><p>Every project team requires a dedicated workspace to develop and deploy their respective application components. While the development work can be done on local machines and certain PaaS components do provide simulated environment which can be installed on local system but for deployment, they require a cloud subscription. Cloud service providers like Microsoft Azure works on subscription-based business model hence every project team is required to have one subscription.</p><p>Before, we jump into the subscription management part let’s point out basic requirement of a development project. By tradition or rather by norm every project is expected to have at least three environments development, QA and production (there can be more but let’s keep these three for simplicity) and every environment is maintained with different rule-set/policies as per their intended use.</p><p><strong>For Example:</strong></p><ol><li>Restrictions on developer access to development environment only.</li><li>Development environment deployment can happen from multiple code branches etc.</li><li>Only stable builds will be deployed on QA environment and developers will not have access to it.</li><li>Production deployment will happen from master branch with fully merged and tested code.</li><li>Production environment deployment will always have a manual check in between and cannot be done through automation.</li></ol><p>Now with the above set context let’s proceed to solution. Let’s discuss three potential approaches here:</p><ol><li><strong>Single cloud subscription for all projects</strong> and their respective environments. Here you create multiple environments for multiple projects and do user access management for respective projects and related environments. As it sounds it will be daunting task to manage multiple projects, environments and users access respectively. This approach is more complex and error prone e.g. imagine a malfunctioning script at subscription level can do in this setup, also tracing the issues and fixes in the script and respective component will be very tough if not impossible. Other than technical issues identifying the cost of cloud resources consumed by each project and its environments will be a challenge.</li><li><strong>Single cloud subscription for a project</strong> for all three environments segregated by grouping of resources used for specific environment and user access management on their respective environment. This approach is less complex than first approach but still complex and error prone. Any malfunctioning script will only impact the respective project environments. With this approach traceability and fixes are relatively easy and doable. This approach provides better identification of cost of cloud resources consumption for the projects but need of granular resource grouping and user access management which will increase with time and any subscription level impact will result in bringing down all the environments for the project.</li><li><strong>Different cloud subscription for each environment of a project</strong>. This is the easiest and recommended way to maintain cloud subscriptions. In this approach cloud resource grouping and user access management will be done at subscription level and cost of cloud resource consumption for the project environments will be more precise, all subscription level scripts will run in isolation and any malfunctioning script will impact respective environment. Tracing, identification and fixes for an issue can be done in isolation. The only downside of this approach is the increased number of cloud subscriptions and their management, but that can be handled by the respective environment owners from project teams.</li></ol><p>Above approaches are the most common approaches which I have seen and experienced. There are multiple ways to manage cloud subscriptions depending upon an organization’s management processes, policies and creativity.</p><h4>Cloud Resource Allocation Guidelines</h4><p>What are guidelines? These are set of questions or soft rules which anyone involved in any kind of work should ask or adhere to. I have been involved in assessment of multiple cloud projects for my current and previous organizations where <strong>1.) Deployed applications are not performing as per expectations</strong> and/or <strong>2.) Cost of cloud resources consumption is very high as per the estimated budget</strong>. I have observed that in the most cases there are no guidelines available for cloud resource allocation and project team members are hesitant to take help and provision oversize cloud resources to keep themselves on safer side. Most of the project teams go with their gut feeling which are heavily influenced by their previous project experiences and there is nothing wrong with it, this is how all of us do things unless we have guidelines available for reference. So, let’s try to establish some guidelines for cloud resource allocation, below are some activities which can help to reduce cloud cost:</p><ol><li><strong>Volumetric Calculation</strong>: Volumetric calculation is the first step to identify the cloud platform resource sizing. Volumetric is the information about data which will ingress/egress from an application based on which you will identify things like how much storage and compute power you need in your application. Most of the time volumetric data is missing or not captured accurately.<br> <strong>For Example </strong>for an IoT Platform volumetric data will cover below points<br> i. Number of devices<br> ii. Size of message payload<br> iii. Frequency of message payload upload</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*FKj1gmk3ANACk-fCD8iD2g.jpeg" /><figcaption><strong><em>Figure 1:</em></strong><em> Volumetric data example</em></figcaption></figure><p>2. <strong>Resource Identification</strong>: Identifying the right resources for a solution helps in keeping cloud consumption in check. Few recommendations while identifying cloud resource for the solution:</p><ul><li>Does solution need bi-directional communication.</li><li>Always use standard communication protocols (Http(s), MQTT, AMQP etc.)</li><li>If using custom protocol, always handle protocol conversion at edge.</li><li>What all data you need to store on the platform (raw, aggregated, filtered)</li><li>Only send relevant/changed data to platform from edge.</li><li>Select compute resource judiciously, think through what resource will meet the requirement considering functional needs.</li><li>Does solution need real time data processing? If yes, then define real time processing parameters (consider time lag, accepted latency etc.)</li></ul><p><strong>3. PaaS Component (allocation vs utilization)</strong>: PaaS component allocation vs utilization analysis is an important step and helps in increasing utilization of allocated PaaS component and reducing overall cost of the solution/application. In case of an IoT platform leveraging Microsoft Azure cloud where platform needs to support device management capabilities along with device telemetry data ingestion. Microsoft azure provides a PaaS service IoT hub which supports all the required functionalities out of box. Accurate volumetrics helps in choosing the right size of the IoT hub and respective services which will further consume data at platform level. While considering PaaS services (e.g. IoT Hub) for demo and showcase projects we can take advantage of free tiers of IoT hub.</p><ul><li>Every azure subscription comes with a free tier of IoT hub which is enough for any demo/showcase application.</li><li>If free tier IoT hub doesn’t fulfill the need then choose your IoT hub as per Volumetrics calculations, then see the possibility of clubbing a 2–3 applications to use single IoT hub (use routing).</li></ul><figure><img alt="Azure IoTHub (Paas) service usage example for better utilization." src="https://cdn-images-1.medium.com/max/543/1*P0M6j-UCE79v4i4sbrndaQ.jpeg" /><figcaption><strong><em>Figure 2:</em></strong><em> IoT Hub (PaaS) service usage example</em></figcaption></figure><ul><li>NoSQL DB (PaaS), when opting for a NoSQL DB (PaaS service) for a demo/showcase application, plan usage very carefully (RUs and collections) as per your volumetrics, NoSQL PaaS databases are very expensive (e.g. Azure Cosmos DB). Do consider use of SQL database first and if NoSQL is absolutely must then give a considerable thought of using a MongoDB instance over a VM before opting a NoSQL PaaS service. Consider cost benefits like leveraging same MongoDB for multiple projects.</li><li>SQL (PaaS), use of SQL (PaaS) is good when a single database is the need and data size is small. When you need multiple databases like transactional database, reporting database, analytics database or data is huge consider do consider other PaaS services like data lake store, Data warehouse (e.g. SQLDW). But as always before you opt for PaaS service do consider a database over a VM option as per you needs and again think of cost benefits it brings by leveraging it for multiple projects. Another point to consider while setting up a database over a VM always prefer license free database software (like MySQL) over a Linux (Ubuntu distribution) VM.</li></ul><p><strong>4. Virtual Machines </strong>are the most commonly used cloud service across variety of application development and deployments. Selecting a right size of virtual machine is critical for application performance and cost. It is observed that usually teams provision an oversize virtual machine for no reason. For example, consider a situation where you need to deploy a partner software solution or a 3rd party software with recommended VM size of 2 core, 4GB and 80 GB memory and storage respectively, development team provisions VM with 16 core 32GB and 256GB memory and storage and similar configuration is running in multiple environments (Development and QA). In this case VM cost and utilization is not proportional, provisioned VM is having more than 70% capacity than what is required by the software application. With more and more support for open source technology adoption at cloud service providers like Microsoft, AWS and google there are few points which we can be considered while provisioning virtual machines:</p><ul><li>Always look at the possibility of leveraging Linux (Ubuntu distribution) VMs for applications unless there is specific need of using windows VMs for cost benefits.</li><li>Look for extra disks option where software installation is an issue, instead of provisioning and setting up a new VM.</li><li>Provision VM with recommended size do not provision an over sized VM.</li><li>If choosing a big VM, look for the possibility of containerization of applications (docker containers etc.)</li><li>Always deploy all cloud resources in same region to save cross region/zone inbound outbound data transfer charges.</li><li>Plan up time for the application and deallocate/stop VMs when not in use (Development, QA environments).</li></ul><p><strong>5. Clean Up</strong> is a very important activity to keep environments healthy and cloud subscription cost under control. As an observation project teams take clean up activity very lightly and tend to perform ad-hoc clean up before an audit, which at time do more harm than good. A proper and meaningful clean up activity requires through thinking and planning. Cloud subscriptions used for development and QA requires frequent clean ups to remove resources used for deployment of previous versions of applications. We need to plan that how many versions of application should be live on QA and development environments for testing purpose. Development environments are required to cleaned up even more frequently as developers perform lot of other activities like PoC, and Research and development in this environment. Few points to consider while planning or performing clean up:</p><ul><li>Look out for any orphan resources as orphan resources are biggest contributors for the cloud consumption cost.<br><strong>For Example</strong>: while deleting VM do ensure that other associated resources like OS disk, data disk, VPN, storage account, public IP address and network interfaces are also deleted.</li><li>Any resources used for explorations should be tracked properly and should be removed once exploration activity is done.</li><li>Perform through clean-up of resources, while removing unused cloud resources related resources should also be look upon and removed.</li><li>Use automation for deployment and clean up</li><li>Create resource deployment templates (ARM templates in azure) for the application to bring up in short time whenever required.</li><li>Remove resources once work is done.</li><li>Always keep source in code repository for later use.</li></ul><h4>Conclusion</h4><p>Public clouds can provide extensive resources to any organization in cost effective way, but there are pit falls which can turn a perfect dream into a nightmare. A good cloud subscription management policy and cloud resource allocation guidelines will help in managing cloud resources and keep cost under control.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2b461fc61ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>