<?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 Shabarish PILKUN RAVI on Medium]]></title>
        <description><![CDATA[Stories by Shabarish PILKUN RAVI on Medium]]></description>
        <link>https://medium.com/@shabarish033?source=rss-849f841285c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*C4PlQrqU242k23SJR_cjnA.png</url>
            <title>Stories by Shabarish PILKUN RAVI on Medium</title>
            <link>https://medium.com/@shabarish033?source=rss-849f841285c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:31:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shabarish033/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[Retrieval Augmented Generation (RAG) Architecture based on AWS]]></title>
            <link>https://shabarish033.medium.com/retrieval-augmented-generation-rag-architecture-based-on-aws-fc449b708b04?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc449b708b04</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[rag-architecture]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Thu, 30 Nov 2023 17:05:14 GMT</pubDate>
            <atom:updated>2023-11-30T17:05:14.977Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced world, the evolution of GenAI is taking place at an unprecedented rate. We are witnessing a continuous influx of novel GenAI applications, with virtually every industry wholeheartedly embracing this transformative technology. In light of this dynamic landscape, let’s understand one important type of architectural design for GenAI applications: the RAG architecture.</p><p>What is RAG architecture ?</p><p>RAG, an acronym for <strong>Retrieval Augmented Generation</strong>, it represents a neural network architecture employed in <strong>natural language processing</strong> (NLP) and information retrieval tasks. This innovative model comprises two integral components: the Retrieval Part and the Generation Part. The synergy between these elements is central to its functionality. The Retrieval Part excels in extracting relevant information from extensive data repositories, while the Generation Part leverages this retrieved knowledge to generate responses tailored to user inputs</p><p>Having this above understanding let us build the architecture with the approach below:</p><p>1 — We will first understand the basic building blocks of the RAG architecture.</p><p>2 — We will then translate the architecture with AWS services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*MiGdtAdq0DHozJzot8494Q.png" /><figcaption>Basic RAG architecture and its components</figcaption></figure><p>The different components of the architecture are numbered and is as explained below:</p><p>1 — Users login to the application.</p><p>2 —The application code resides on a web server and features a chat interface. A user initiates a request often in the form of a prompt, this request is transformed into a vector representation through an embedding model.</p><p>3 — This represents the data storage layer, it contains various forms of unstructured data including files, images, videos, documents, tables, CSV files, and more. These diverse files undergo indexing and are then transformed into vectors using an embedding model.</p><p>4 — This represents the retrieval model, it uses the user prompt to search for the most relevant files/data based on the user prompt and returns this information.</p><p>5 — This represents the Generation Model which uses this relevant files/data from the retrieval model along with the user prompt and then generates the response, this response is then sent back to the Chat Interface.</p><p>What are the advantages of a RAG architecture ?</p><p>1 — <strong>Reduces hallucination / misinformation</strong> by combining the power of retrieval and generation. RAG with its ability to cite the resources used for generating the response further improves the trust on the response generated.</p><p>2 —<strong> Cost effective alternative</strong> to fine tuning a model as RAG can leverage an existing model and augment it with retrieval mechanism saving company both time and resources.</p><p>3 — Ability to <strong>generate domain specific responses</strong>, since RAG gives users ability to tap into domain specific knowledge bases, one can extract domain specific responses.</p><p>4 — Building a RAG architecture <strong>on the cloud</strong> makes sure that the information used stays within your account and the responses generated are specific to the information thus provided.</p><p>Because of these above advantages one can observe that RAG architecture applications are quite common in the intelligent search engines/chatbots within a company to virtual assistants in an automobile.</p><p>Having understood the different components, advantages &amp; applications of the RAG architecture, if one wishes to translate them to AWS then below is an approach to build this architecture.</p><p>Let us understand the different services one can use in order to build a RAG architecture with AWS.</p><p><a href="https://aws.amazon.com/kendra/">AWS Kendra</a>: This is an accurate, easy-to-use enterprise search service that is powered by machine learning. It allows developers to add search capabilities to their applications so the users can discover information stored in the vast amount of data spread across the company. One can use this service for the retrieval model.</p><p><a href="https://aws.amazon.com/bedrock/">AWS Bedrock</a>, <a href="https://aws.amazon.com/bedrock/claude/">Antropic Claude</a>: <br>Bedrock is a serverless service that offers a choice of high-performing foundation models(FMs) with a single API to build gen AI applications, simplifying development while maintaining privacy &amp; security.</p><p>Antropic Claude is a state-of-the-art foundation model provided by the company <a href="https://www.anthropic.com/amazon-bedrock">Antropic</a>. With antropic claude one can securely process extensive amounts of information that is as long as 100,000 tokens or approximately 75000 words. Claude can be used across a wide range of tasks such as text summarization, question-answering, creative content generation, coding and instruction writing. One can use this service for the generation model.</p><p><a href="https://aws.amazon.com/s3/">AWS S3</a>: It is a cloud storage (Object storage) service provided by AWS. One can use this service as the storage layer.</p><p><a href="https://aws.amazon.com/amplify/">AWS Amplify</a>: It is a serverless service that lets users quickly deploy the frontend of the web-applications. One can use this service to host the web-app frontend.</p><p><a href="https://www.langchain.com/">Langchain</a>: It is a framework for building applications powered by large language models. One can use this service to connect to the LLM.</p><p><a href="https://aws.amazon.com/dynamodb/">DynamoDB</a>: It is a fully managed serverless NoSQL database offered by AWS. One can use this service to store the conversation history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Abnezh_Y6grvlEHHBfOyuQ.png" /><figcaption>RAG architecture in AWS</figcaption></figure><p>The different steps in the architecture are numbered and are as explained below:</p><p>1 — Users send a prompt to a web-application that is deployed using Amplify, the source code of the application is located in a repository like github. The web-application has a chat interface allowing user to send a prompt/user request.</p><p>2 — The user prompt is sent to AWS kendra, which converts this prompt into an embedded vector using an embedding model.</p><p>3 — This represents the storage layer, it contains the different unstructured data such as files, images, videos, documents, tables, csv files, etc.</p><p>4 — The files stored on S3 are indexed and represented as a vector using an embedding model from the AWS Kendra service every time the user runs a sync job. <br>Kendra performs a semantic search with the user prompt on the storage layer, and returns the knowledge (Relevant Context). Knowledge here refers to the most relevant data/document.</p><p>5 — Lambda function acts as a langchain orchestrator, it uses the knowledge (Relevant Context) from kendra to connect to the LLM model (Eg. Antropic Claude). The LLM uses the relevant context along with the user prompt to generate a response. This response is sent back to the chat user interface hosted with AWS amplify.</p><p>6 — A copy of the response is also sent to the DynamoDB database in order to store the conversation history, this helps the LLM build the context for generating a responses to the followed up prompts.</p><p><strong>Conclusion:</strong></p><p>This article serves as a guide to understanding the RAG architecture, exploring its applications, benefits, and providing insights into its implementation on AWS. It’s worth noting that AWS continually evolves, introducing new services that can further enrich your generative AI experience. Consequently, the architecture might vary based on specific use cases.</p><p>References used to build the architecture:</p><p>1 — Kendra to S3: <br><a href="https://docs.aws.amazon.com/kendra/latest/dg/data-source-s3.html">https://docs.aws.amazon.com/kendra/latest/dg/data-source-s3.html</a></p><p>2 — lambda to bedrock:<br><a href="https://repost.aws/articles/ARixmsXALpSWuxI02zHgv1YA/bedrock-unveiled-a-quick-lambda-example">https://repost.aws/articles/ARixmsXALpSWuxI02zHgv1YA/bedrock-unveiled-a-quick-lambda-example</a></p><p>3 — Deploying webapps using amplify: <br><a href="https://aws.amazon.com/getting-started/guides/deploy-webapp-amplify/#:~:text=Amplify%20is%20a%20framework%20with,stack%20applications%2C%20powered%20by%20AWS">https://aws.amazon.com/getting-started/guides/deploy-webapp-amplify/#:~:text=Amplify%20is%20a%20framework%20with,stack%20applications%2C%20powered%20by%20AWS</a></p><h3>Other Articles:</h3><p>If you are interested to learn about aws services please look at my other articles:<br>AWS</p><p>1 — <a href="https://medium.com/@shabarish033/web-application-architecture-from-basics-to-creating-an-aws-based-architecture-a72ffb5aaf2f">Web Application Architecture</a></p><p>2 — <a href="https://shabarish033.medium.com/aws-architecture-for-processing-real-time-and-batch-processing-data-and-dashboards-dfa9b51d4731">AWS architecture for processing real-time and batch processing data and dashboards</a></p><p>3 — <a href="https://towardsaws.com/cloud-computing-an-overview-d4c028c7ab10">Cloud Computing: An Overview</a></p><p>4 — <a href="https://towardsaws.com/amazon-web-services-aws-an-overview-9cc2c07bfe63">Amazon Web Services [AWS]: An Overview</a></p><p>5 — <a href="https://towardsaws.com/amazon-simple-storage-service-s3-an-introduction-c27d344355bf">Amazon Simple Storage Service S3</a></p><p>6 — <a href="https://towardsaws.com/route-53-the-highly-available-and-scalable-cloud-domain-name-system-dns-web-service-ce1293deba51">Route 53 — The highly available and scalable cloud Domain Name System (DNS) web service.</a></p><p>DevOps and MlOps:</p><p>1 — <a href="https://shabarish033.medium.com/understanding-devops-and-devops-pipeline-b10f3e9de297">Understanding DevOps and DevOps pipeline | by Shabarish PILKUN RAVI | Jul, 2022 | Medium</a></p><p>2 — <a href="https://shabarish033.medium.com/understanding-mlops-and-mlops-pipeline-b3d52d3482e4">Understanding MlOps and MlOps Pipeline | by Shabarish PILKUN RAVI | Aug, 2022 | Medium</a></p><p>If you are interested in deep learning and computer vision, refer below articles:</p><p>1 — <a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">OpenCV Background Subtraction and Music in Background of Video | by Shabarish PILKUN RAVI | Medium</a></p><p>2 — <a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">Artificial Neural Networks Simplified: From Perceptrons to BackPropagation | by Shabarish PILKUN RAVI | The Startup | Medium</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc449b708b04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web-Application Architecture: From basics to creating an AWS based architecture]]></title>
            <link>https://shabarish033.medium.com/web-application-architecture-from-basics-to-creating-an-aws-based-architecture-a72ffb5aaf2f?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a72ffb5aaf2f</guid>
            <category><![CDATA[application]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Sat, 21 Oct 2023 21:22:31 GMT</pubDate>
            <atom:updated>2023-10-21T21:22:31.227Z</atom:updated>
            <content:encoded><![CDATA[<p>My approach to explain the web-application architecture:<br>1 — We will understand the basic building blocks of a web-application.<br>2 — We will translate the basic building blocks of the web-application using AWS services.<br>3 — We will define a robust AWS based web-application architecture.</p><p>Let us start by understanding what is a web-application, the simple explanation is that it is <strong><em>an application program that is stored in a remote server and is delivered over the internet through the browser</em></strong>. Today we use different web-applications in our everyday life, some examples are Linkedin, Netflix, Gmail, Amazon Prime Video, etc..</p><p>When we break the above definition into different components and assuming that we are creating a prototype that is not deployed on the internet. We come up with the following basic architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*UjQxaNpHqS4Az6jMVRy7lQ.png" /><figcaption>Basic web-application and its components</figcaption></figure><p>The explanation for the each component in the architecture is as follows:</p><p>1 — The application is <strong>hosted</strong> on the web-server.<br>2 — The application <strong>queries</strong> a database, the database contains data supporting the application.<br>3 — In order to communicate with the application the users need a <strong>public IP address</strong> which is applied on the browser [4].</p><p>The different components and the flow is described in the above diagram, if one translates the exact architecture using AWS services, one would end up with the below architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*nhColuTnR1TBd5I_jquwEQ.png" /><figcaption>Basic AWS web-application and its components</figcaption></figure><p>The explanation for the each component in the architecture is as follows:</p><p>1 — The application is hosted on the web-server, here this is <a href="https://aws.amazon.com/ec2/"><strong>AWS EC2 service</strong></a>, it is a <strong>resizable compute service </strong>offered by AWS.<br>2 — The application <strong>queries a database</strong>, the database contains the data supporting the application, here this is <a href="https://aws.amazon.com/rds/"><strong>AWS RDS</strong></a>, a fully manageable Relational Database service offered by AWS.<br>3 — In order to communicate with the application the users need a public IP address which is applied on the browser [4].</p><p>The above architectures can be used to build a <strong>Proof of Concept</strong>, however this is not ready to be productionized because it<strong> lacks security, scalability, high availability, resilience</strong> and it does not have a domain name or use the internet. The only objective the above architecture satisfies is to be able to understand the components of a application that communicates using a public IP address.</p><p>In the next section we will define some <strong>basic requirements</strong> which every web-application must satisfy.</p><ul><li>The application <em>must be highly scalable, must be highly available, must be able to recover in case of failure</em>.</li><li>The application must <em>have a domain name</em>.</li><li>The application must provide <em>different content based on geographic location</em>.</li><li>The application must ensure protection in case of <em>DDOS attacks</em> and other cyber attacks in case of<em> web exploits, sql injection, cross site scripting attacks</em>.</li><li>The application must be <em>continuously monitored</em> for performance and developers must be notified in case of changes to the performance of the application.</li><li>The application must <em>allow users to access the application using mobile devices</em>.</li></ul><p>The architecture to satisfy the above requirements is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6cWetRuJQ-Pr26u1HjHbgw.png" /><figcaption>AWS Based Architecture for the Web-Application</figcaption></figure><p>The explanation for the each component in the architecture is as follows:</p><p>1 — The application is hosted on <a href="https://aws.amazon.com/ec2/">EC2</a> instances, in order to <strong>resolve for scalability</strong>, the application is hosted in an <a href="https://aws.amazon.com/de/ec2/autoscaling/">Autoscaling Group</a>. One can control the traffic to allow/deny in the EC2 instances using <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html">Security Groups</a>.</p><p>2 — In order to have <strong>high availability</strong> the application is hosted in multiple <a href="https://aws.amazon.com/about-aws/global-infrastructure/regions_az/">availability zones</a>.</p><p>3 — Traffic is distributed across availability zones using an <a href="https://aws.amazon.com/elasticloadbalancing/">Elastic Load Balancer</a>.</p><p>4 — In order to <strong>recover</strong> the application during any unfortunate events, one can store the EC2 and database images using <a href="https://aws.amazon.com/s3/">AWS S3</a>.</p><p>5 — In order to<strong> store the application based data</strong>, one can use a fully managed relational database like <a href="https://aws.amazon.com/rds/">Amazon RDS</a>.</p><p>6 — In order to expose the application with a domain name (application URL) and convert the domain name to a public IP one must use a <strong>domain name service.</strong> In our case this is <a href="https://aws.amazon.com/route53/">AWS Route53</a>. One must also protect the application from <strong>Distributed Denial of Service (DDOS) attacks</strong>, to satisfy this requirement one can use <a href="https://aws.amazon.com/shield/">AWS Shield</a>.</p><p>7 — Using <a href="https://aws.amazon.com/waf/">AWS Web Access Firewall</a> one can define managed rules in order to protect the application from <strong>common web exploits, bots that can affect availability, compromise security, sql injection, cross site scripting and consume excessive resources</strong>. The managed rules for waf are defined to control the attacks based on http headers, geo-location and frequency of requests.</p><p>8 — <a href="https://aws.amazon.com/cloudfront/">Cloudfront</a> is the <strong>content delivery network service</strong> from AWS, one can use this to deliver content based on region, or one can use it to cache the frequent requests</p><p>9 — The <strong>mobile users </strong>can access the application using <a href="https://aws.amazon.com/api-gateway/">API gateway</a>, it is a fully managed service to create, publish and secure APIs at any scale.</p><p>10 — AWS <a href="https://aws.amazon.com/lambda/">Lambda</a> is a serverless compute service from AWS that can be used to <strong>apply business logic</strong> to the applications data.</p><p>11 — AWS <a href="https://aws.amazon.com/cloudwatch/">Cloudwatch</a> is used for <strong>continuously monitoring </strong>the application’s webservers if they are down, or if they are restarting. Cloudwatch is used to continuously monitor the performance of the application.</p><p>12 — AWS <a href="https://aws.amazon.com/guardduty/">GuardDuty</a> is an <strong>intelligent threat detection service</strong>, it continuously monitors the servers and notifies if a server, database, s3 is compromised, malware, anomalous behavior.</p><p>13 — AWS <a href="https://aws.amazon.com/sns/">Simple Notification Service</a> is a fully <strong>managed messaging service</strong> for communication, allowing messaging between decoupled microservices applications or directly to<strong> users with SMS</strong>. This can notify users for any performance changes in the application.</p><p><strong>Conclusion:</strong></p><p>The architecture explained is a basic aws based architecture for web-application, depending on the usecase and user requirements one can add/remove services from the architecture.</p><p>The architecture shown above is a fully managed architecture, however one can also deploy serverless architecture for web-application using <a href="https://aws.amazon.com/elasticbeanstalk/">AWS Elastic Beanstalk</a>.</p><h3>Other Articles:</h3><p>If you are interested to learn about aws services please look at my other articles:</p><p>1 — <a href="https://towardsaws.com/cloud-computing-an-overview-d4c028c7ab10">Cloud Computing: An Overview. In this section, I will try to explain… | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>2 — <a href="https://towardsaws.com/amazon-web-services-aws-an-overview-9cc2c07bfe63">Amazon Web Services [AWS]: An Overview | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>3 — <a href="https://towardsaws.com/amazon-simple-storage-service-s3-an-introduction-c27d344355bf">Amazon Simple Storage Service S3, an Introduction | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>4 — <a href="https://towardsaws.com/route-53-the-highly-available-and-scalable-cloud-domain-name-system-dns-web-service-ce1293deba51">Route 53 — The highly available and scalable cloud Domain Name System (DNS) web service. | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>5 — <a href="https://shabarish033.medium.com/aws-architecture-for-processing-real-time-and-batch-processing-data-and-dashboards-dfa9b51d4731">AWS architecture for processing real-time and batch processing data and dashboards | by Shabarish PILKUN RAVI | Jul, 2022 | Medium</a></p><p>DevOps and MlOps:</p><p>1 — <a href="https://shabarish033.medium.com/understanding-devops-and-devops-pipeline-b10f3e9de297">Understanding DevOps and DevOps pipeline | by Shabarish PILKUN RAVI | Jul, 2022 | Medium</a></p><p>2 — <a href="https://shabarish033.medium.com/understanding-mlops-and-mlops-pipeline-b3d52d3482e4">Understanding MlOps and MlOps Pipeline | by Shabarish PILKUN RAVI | Aug, 2022 | Medium</a></p><p>If you are interested in deep learning and computer vision, refer below articles:</p><p>1 — <a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">OpenCV Background Subtraction and Music in Background of Video | by Shabarish PILKUN RAVI | Medium</a></p><p>2 — <a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">Artificial Neural Networks Simplified: From Perceptrons to BackPropagation | by Shabarish PILKUN RAVI | The Startup | Medium</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a72ffb5aaf2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Deployment Strategies: How Companies deploy their applications ?]]></title>
            <link>https://shabarish033.medium.com/software-deployment-strategies-how-companies-deploy-their-applications-d1fb14cb6ab9?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1fb14cb6ab9</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[software-deployment]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Sun, 04 Sep 2022 08:57:53 GMT</pubDate>
            <atom:updated>2022-09-04T09:20:02.074Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Software Deployment Strategies: </em>How Companies deploy their applications ?</h3><p>Have you ever wondered how our phones get software updates, one day you are scrolling through facebook and the next day you see some new features in the website, and the buttons look different. Well, below I have explained the different strategies which companies use to deploy their applications and release new upgrades.</p><p>What is a Software Release ?<br>Software release is the process of “shipping” a set of new features, bugfixes or software performance improvement strategies to the users. A software release can be a major version, hotfix version or a patch fix. When a software is released, it goes through several environments like :<br>Development →Test → Staging →Pre-Production →Production environments.</p><p>What is a Deployment Strategy ?<br>Deployment strategy is a method used by the DevOps teams to release a new version of their software, there are several methods available, one must take into consideration the downtime, traffic flows, and operational cost for each method chosen. Depending on the companies priorities and requirements one of the methods listed below can be chosen.</p><p>List of Deployment Strategies:<br>1 — Recreate Deployment<br>2 — Blue/Green Deployment<br>3 — Canary Release<br>4 — A/B Testing<br>5 — Ramped Deployment<br>6 — Rolling Deployment<br>7 — Shadow Deployment</p><p>Below lets look at each of these deployments in more detail:</p><p><strong>Recreate Deployment</strong>:</p><p>In this method the developers completely shut down the Prod environment containing the old version of the software. The developers then deploy the new version of the software and reboot the environment. The users loose complete access to the application when the environment is shut down.<br><em>Advantage</em>:<br>1 — This method is less expensive as there is no need of a load balancer to direct/manage traffic.<br><em>Disadvantages</em>:<br>1 — This method is generally used when you would like to write the complete application ground up, and when the developers have no other choice.<br>2 — The users loose complete access when the production environment is shut down. The users must be kept aware of the new software deployment activity in advance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ya3gcFer5TxXW16JF6ukQ.png" /><figcaption>Deployment Strategy: Recreate Deployment</figcaption></figure><p><strong>Blue/Green Deployment:</strong></p><p>In this method we have 2 Environments, a live Prod environment and a staging Prod Environment. We also have a load balancer that can direct traffic. When the new software is deployed the traffic is switched from the live to staging environment.<br><em>Advantages:<br>1</em> — Reduction in downtime because the Prod environment is always available.<br>2 — Ability to roll back to the older software version incase of problems in the new software version.<br><em>Disadvantage:<br></em>1 — It is costlier to maintain 2 environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjzqBILKiaVghSzjWwukwQ.png" /><figcaption>Deployment Strategy: Blue/Green Deployment</figcaption></figure><p><strong>Canary Release:</strong></p><p>In this method the new version of the software is tested on a small set of users and then the number of users is slowly increased until all the users receive the new version of the software.<br><em>Advantages</em>:<br>1 — There is continous software performance monitoring on the new software release stability. <br>2 — The devops engineers get a chance to roll back a release if the performance of the new software version does not meet its standards.<br><em>Disadvantage</em>:<br>1 — It requires more effort and the software deployment cycle is longer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YNeEGB4pubAAwhxKMQLphA.png" /><figcaption>Deployment Strategy: Canary Deployment</figcaption></figure><p><strong>A/B Testing:</strong></p><p>In this method, the new version of the software is release along with the older version because it helps the developers compare the performance of the newer version over the older version, this type of deployment also helps the developers to test the user behavior on the newer features. The newer version is released to a small subset of users. <br>If the newer version of the software meets the acceptable standards then it is released to the entire user base.<em><br>Advantages:<br></em>1 — It is easier and less risky to test the newer version of the software on a small subset of users and then make the newer version to the entire user base.<br>2 — One can roll back the newer version if it does not meet the performance standards.<br><em>Disadvantage</em>:<br>1 — This method of release requires a higher user/developer coordination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*yvIOsvXY6Rc8aN8YvK6-Pw.png" /><figcaption>Deployment Strategy: A/B Testing</figcaption></figure><p><strong>Ramped Deployment</strong></p><p>In this method, the instances containing the older version of the software is slowly and gradually replaced with the new software until all the instances have the newer software version.<br><em>Advantages</em>:<br>1 — The process is gradual, thus it is less risky.<br>2 — No need to take the entire application down, so the application availability is higher.<br>Disadvantages:<br>1 — Rollback can be complicated.<br>2 — It requires more effort and the deployment cycle is longer.<br>3 — One need a high number of instances with the software at a given time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FyxDbooN1JvOdi3c5bLONA.png" /><figcaption>Deployment Method: Ramped Deployment</figcaption></figure><p><strong>Rolling Deployment</strong>:</p><p>This method is applicable for those applications deployed on containers. It is similar to the Ramped Deployment, however one replaces the Pods containing the older application version with the Pods containing the new application version.</p><p><strong>Shadow Deployment:</strong></p><p>In this method the newer version of the software is deployed along with the older version of the software, a copy of the user requests is then forked/copied and sent to the newer version of the software. Once the developers are confident on the performance of the newer software version with the user traffic it receives, then the traffic is completely switched to the newer version of the software.<br><em>Advantages</em>:<br>1 — Developers can get a good feedback of the application of how the newer software version works in production.<br>2 — Higher application availability, because the entire application does not need to go down.<br><em>Disadvantage:</em><br>1 — It is complicated to set up and maintain this deployment strategy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WlKzYv1s6EhdQD9jDcP4rA.png" /><figcaption>Deployment Strategy: Shadow Deployment</figcaption></figure><p><strong>Conclusion</strong>:</p><p>We have thus learnt about the different deployment strategies, every strategy has its advantages and disadvantages, depending on the usecase the best strategy may vary. Having the knowledge about the different software deployment strategies can help the readers in choosing the appropriate strategy for your own usecase.</p><p><strong>Reference:</strong></p><p>1 — <a href="https://www.testenvironmentmanagement.com/the-top-deployment-strategies-explained/#:~:text=In%20software%20development%2C%20a%20deployment%20strategy%20is%20a,software%20development%20life%20cycle.%20What%20is%20a%20Release">The Top Deployment Strategies Explained (testenvironmentmanagement.com)</a></p><h3>Other Articles:</h3><p>If you are interested to learn about aws services please look at my other articles:</p><p>1 — <a href="https://towardsaws.com/cloud-computing-an-overview-d4c028c7ab10">Cloud Computing: An Overview. In this section, I will try to explain… | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>2 — <a href="https://towardsaws.com/amazon-web-services-aws-an-overview-9cc2c07bfe63">Amazon Web Services [AWS]: An Overview | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>3 — <a href="https://towardsaws.com/amazon-simple-storage-service-s3-an-introduction-c27d344355bf">Amazon Simple Storage Service S3, an Introduction | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>4 — <a href="https://towardsaws.com/route-53-the-highly-available-and-scalable-cloud-domain-name-system-dns-web-service-ce1293deba51">Route 53 — The highly available and scalable cloud Domain Name System (DNS) web service. | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>5 — <a href="https://shabarish033.medium.com/aws-architecture-for-processing-real-time-and-batch-processing-data-and-dashboards-dfa9b51d4731">AWS architecture for processing real-time and batch processing data and dashboards | by Shabarish PILKUN RAVI | Jul, 2022 | Medium</a></p><p>DevOps and MlOps:</p><p>1 — <a href="https://shabarish033.medium.com/understanding-devops-and-devops-pipeline-b10f3e9de297">Understanding DevOps and DevOps pipeline | by Shabarish PILKUN RAVI | Jul, 2022 | Medium</a></p><p>2 — <a href="https://shabarish033.medium.com/understanding-mlops-and-mlops-pipeline-b3d52d3482e4">Understanding MlOps and MlOps Pipeline | by Shabarish PILKUN RAVI | Aug, 2022 | Medium</a></p><p>If you are interested in deep learning and computer vision, refer below articles:</p><p>1 — <a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">OpenCV Background Subtraction and Music in Background of Video | by Shabarish PILKUN RAVI | Medium</a></p><p>2 — <a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">Artificial Neural Networks Simplified: From Perceptrons to BackPropagation | by Shabarish PILKUN RAVI | The Startup | Medium</a></p><p>3 — <a href="https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd">Traditional Recurrent Neural Networks — Reinforcement Learning Part 1/3 | by Shabarish PILKUN RAVI | Towards AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1fb14cb6ab9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding MlOps and MlOps Pipeline]]></title>
            <link>https://shabarish033.medium.com/understanding-mlops-and-mlops-pipeline-b3d52d3482e4?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3d52d3482e4</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[mlops-platform]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Sat, 20 Aug 2022 14:57:19 GMT</pubDate>
            <atom:updated>2022-08-21T08:30:35.886Z</atom:updated>
            <content:encoded><![CDATA[<p>In todays world, we have all the essential ingredients to build an efficient ML model, these are:</p><ul><li>Large datasets.</li><li>Inexpensive on-demand compute resources.</li><li>New research papers published for Machine Learning (Computer Vision, Natural Language Processing, time-series prediction, etc).</li><li>Ability to accelerate Ml models by deploying it in various cloud platforms.</li></ul><p>With these ingredients available, companies are heavily investing on ML and datascience teams to productionize their ML applications to add value to their businesses.</p><p><strong>What is MlOps ?</strong></p><p>MlOps is a compound term consisting of Machine learning (Ml) and Operations (Ops), the main objective of MlOps is to give the data-scientists and Operations team a way to productionize their ML application. Following the MlOps practices can help the users to continously build, train, test, deploy and monitor their ML applications.</p><p><strong>DevOps VS MlOps</strong></p><p>DevOps is a practice of developing and operating large-scale software systems. Following DevOps practice helps users develop high quality tested code, it helps in shortening development cycles, avoids software integration errors and helps in deploying dependable releases. To achieve these benefits one must introduce two concepts:</p><ul><li>Continous Integration (CI)</li><li>Continous Delivery (CD)</li></ul><p>To learn more about DevOps please refer to my article below.</p><p><a href="https://shabarish033.medium.com/understanding-devops-and-devops-pipeline-b10f3e9de297">Understanding DevOps and DevOps pipeline | by Shabarish PILKUN RAVI | Jul, 2022 | Medium</a></p><p>One of the major difference between a general software system and a ML system is that a ML system is data dependent, the quality of results produced depend on the quality of input data, and this good quality data must be continously fed to the ML system to continously train, evaluate and validate the ML models. <br>When it comes to <strong>Continous Integration</strong>, it is not just about building, testing and validating the code, but also testing and validating the data, data schemas and models.<br>When it comes to <strong>Continous Delivery</strong>, one does not just release, deploy and monitor a single software application, but one deploys an ML training pipeline that should automatically choose the best performing ML model and deploy it.<br>A property that is unique to ML systems is the <strong>Continous Training (CT)</strong>, this consists of automatically retraining, evaluating and serving the ML models to be deployed.<br>Having understood MlOps, and its difference compared to DevOps, now let us delve into MlOps Pipeline.</p><p><strong>MlOps Pipeline:</strong></p><p>MlOps pipeline can be defined at 3 levels:<br>1 — Level 0: Manual Process<br>2 — Level 1: Machine Learning Pipeline automation<br>3 — Level 2: CI/CD pipeline automation</p><p><strong>Level 0: Manual Process</strong></p><p><strong>The level 0, MlOps pipeline answers the following question</strong>: <br><em>How do I be able to productionize my ML application ?, I do not care about automation, I just need to deploy my ML model for a prediction service</em>. <strong><br></strong>Let us understand the workflow while developing a machine learning application. <br>The team consists of data engineers, data scientists and operations engineers. <br>The first step in this manual process is the data extraction step, after which we clean the data, perform exploratory data analysis, build, train and eveluate the models. <br>Once the suitable model is selected this is handed over to the operations team by storing it in a particular folder/registry, this model is used to perform the predictions operations, with new incoming data the whole process is repeated again. The whole description above can be represented by the flow chart below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hFp3a5ivN6EWao7g0v82Q.png" /><figcaption>MlOps: Level 0</figcaption></figure><p><strong>Characteristics of the Level 0, MlOps pipeline.</strong></p><ul><li>Manual, interactive and a script-driven process: Every step right from Data preparation to prediction service is a manual step.</li><li>Disconnection between the data scientists and Operations Engineers: The trained model is uploaded in a model registry which is used by the operations engineers to deploy them into the API’s.</li><li>No CI/CD: Since the steps are manual, the testing is part of the notebooks that are used for model development, thus a version controlled notebook is present, thus there is no automations to achieve CI/CD.</li><li>No process monitoring: The process does not have a continous monitoring system to store feedback and further improve the model.</li></ul><p>The MlOps Pipeline: Level 0, is good when you start experimenting or build a POC of your machine learning application, however there is a risk of the model to break when dealing with real world data that continously change with changing environments.</p><p>With Level 0, MlOps pipeline it is a challenge to continously retrain the model with new data, or even try out new models with more research papers being released. Having understood the level 0 MlOps pipeline, let us understand the MlOps Level 1 pipeline.</p><p><strong>Level 1: Machine Learning Pipeline automation</strong></p><p><strong>The Level1 MlOps pipeline answers the following question:</strong></p><p><em>I now have a ML model in production, but I want to be able to continously retrain it and make it adaptable to changes in business environment or data. So what tools are needed and how do I be able to continously train my ML model ?</em></p><p>The main objective of this pipeline is to achieve continous training of the ML model. When it comes to continous training one must be able to continously retrain the models using new data. This type of pipeline overcomes the disadvantage of the model failing in production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZT4Y4ZY1o39EC9R5QT_ppw.png" /><figcaption>MlOps Pipeline: Level 1</figcaption></figure><p>The different stages in the pipeline are numbered and explained below:</p><p>1 — [Orchestrated Experiment] The steps from data validation to model validation is orchestrated in an ML pipeline, thus one can perform rapid iterations of experiments, this also ensures better readiness to move to production.</p><p>2 — [Source Code] At the end of the orchestrated experiment, we have the source code for the pipeline, this source code is versioned and stored in a repository. This allows us to roll back to a previous version of the application in case something unexpected happens.</p><p>3 — [Pipeline Deployment] While exploratory data analysis is performed on notebooks, the source codes are modularized/containerized and stored in a version control repository. These modules are reproducable and is served in production.</p><p>4 — [Dev/Prod Environment Parity] One of the characteristics of this pipeline is that the dev and production environments are kept as identical, so the model will not fail in production.</p><p>5 — [Automated Pipeline] In level 0, a trained model is deployed as a prediction service to production. For level 1, you deploy the whole training pipeline, which automatically and recurrently runs to serve the trained model as the prediction service.</p><p>6 — [Model Serving] At the end of the automated pipeline step we have the machine learning model that is stored in a model registry, this trained model is used for the prediction service.</p><p>7 —[Performance Monitoring] Another important characteristic of this MlOps pipeline is the ability to continously monitor the performance of the model, any unexpected behavior/changes in the performance of the model activates the trigger, this trigger activates both the orchestrated experiment and the automated pipelines, thus there is a continous monitoring and correction of the ML model.</p><p>In addition to the above stages, this MlOps pipeline also contains the following:</p><p><strong>Feature Store — </strong>This is an optional additional entity of the MlOPs pipeline. It is a centralized repository containing the feature sets of the ML models.</p><p>The feature stores has the characteristics as noted below:</p><ul><li>It helps the data scientists discover and reuse the feature sets instead of re-creating them.</li><li>It avoids having similar feature sets with different definitions so as to not overfit the models.</li><li>Serve the latest features for a given prediction service.</li></ul><p><strong>ML Metadata Store — </strong>Metadata is the information about the data, in our case this relates to the pipelines, datasets and the models.</p><ul><li>In this metadata store we have information about when a given pipeline was executed, parameters used, what model was selected.</li><li>Having a metadata store greatly helps in the debugging process if a pipeline is behaving unexpectedly.</li><li>It also helps in rolling back to a pipeline execution where the behavior was acceptable.</li></ul><p>Having the different tools such as feature store, ML metadata store, triggers and performance monitoring helps us to efficiently retrain the models. This continous retraining helps in making the models adaptable to changes in data and business envoronments.</p><p>Having understood the MlOps Level 1 pipeline, now let us understand MlOps Level 2 pipeline for CI/CD automation.</p><p><strong>Level 2: CI/CD automation</strong></p><p><strong>The Level2 MlOps pipeline answers the following question:</strong></p><p><em>I now have a ML model in production, and I am able to continously retrain it and make it adaptable to changes in business environment, however now I want to be able to try out new ML models and be able to continously deploy it in production, how do I achieve this ?</em></p><p>The main objective of this type of pipeline is to bring reliable updates to production as quickly as possible. Thanks to automated code integration and deployment, this pipeline gives the opportunity to the datascientist to focus on newer models, feature engineering and hyper parameters tuning. Given below is a schematic representation of the pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VSAQSjMk8IaydiTJnVxCUA.png" /><figcaption>MlOps Level 2 pipeline</figcaption></figure><p>The different stages of the MlOps level 2 pipeline are numbered and explained below:</p><p>1 — [Orchestrated Experiment] The whole Ml processes are automated and part of the Ml pipeline, this gives the datascientists to try out, test and validate new models.</p><p>2 — [Source code] The output of the orchestrated experiment is the MlOps pipeline code, this code is stored in a version controlled source repository.</p><p>3 — [Continous Integration] The MlOps pipeline from the source respository is then built continously everytime a new code is pushed into the source repository. The datascientists can run unit tests on the MlOps pipeline code. Once these tests are passed, it code is packaged into modules and is made ready for deployment.</p><p>4 —[Continous delivery] The module packages are now continously delivered into the target environment. One must note that similar to MlOps Level 1 pipeline, both the Dev and Staging environments are kept similar.</p><p>5 — [Automated Pipeline] The packages from the CD stage contains the code new model that the datascientist wishes to deploy, this model is again passed into the automated Ml pipeline of the staging/preproduction/prod environments (one can furthere include unit tests in this pipeline to measure the performance of the model), the output of this stage is a trained model which is stored in the model registry.</p><p>6 — [Continous Deployment] The trained model is now used for providing the prediction service.</p><p>7 — [Performance Monitoring] The performance of the new deployed model is continously monitored for its behavior with the new live data in production, any changes are immediately triggered which notifies the ML pipelines to be started for data analysis to indentify the anomalies depending on the rules set.</p><p>Thus in MlOps pipeline level 2, with CI and CD, a new model can be quickly productionized. With continous performance monitoring if a models performance is not satisfactory, it can also be easily rolled back and retrained.</p><p>To summarize productionizing an ML application doesnt mean just to integrate a ML model in an API, rather to be able to deploy complete ML pipelines that have the ability to automate retraining the ML model, or to quickly integrate new models into production. Having an MlOps pipeline helps you to adapt your ML models to changes in data and business environment.</p><p>One cannot easily move the MlOps pipeline from a lower level to a higher level, this happens rather gradually with slowly automating every stage in the pipeline.</p><p><strong>References</strong></p><p>1 — <a href="https://ubuntu.com/blog/mlops-pipeline-with-mlflow-seldon-core-and-kubeflow-pipelines#:~:text=MLOps%20pipelines%20are%20a%20set%20of%20steps%20that,this%20is%20to%20build%20an%20effective%20MLOps%20pipeline.">MLOps Pipeline with MLFlow, Seldon Core and Kubeflow | Ubuntu</a></p><p>2 — <a href="https://www.databricks.com/p/ebook/the-big-book-of-mlops?utm_medium=paid+search&amp;utm_source=bing&amp;utm_campaign=429554909&amp;utm_adgroup=1313917868668913&amp;utm_content=ebook&amp;utm_offer=the-big-book-of-mlops&amp;utm_ad=&amp;utm_term=mlops%20pipeline&amp;msclkid=1201794ef3c71e19b7b21a4e01310b9a">The Big Book of MLOps — Databricks</a></p><p>3 — <a href="https://cloud.google.com/architecture/mlops-continuous-delivery-and-automation-pipelines-in-machine-learning#continuous_delivery">MLOps: Continuous delivery and automation pipelines in machine learning | Cloud Architecture Center | Google Cloud</a></p><h3>Other Articles:</h3><p>If you are interested to learn about aws services please look at my other articles:</p><p>1 — <a href="https://towardsaws.com/cloud-computing-an-overview-d4c028c7ab10">Cloud Computing: An Overview. In this section, I will try to explain… | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>2 — <a href="https://towardsaws.com/amazon-web-services-aws-an-overview-9cc2c07bfe63">Amazon Web Services [AWS]: An Overview | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>3 — <a href="https://towardsaws.com/amazon-simple-storage-service-s3-an-introduction-c27d344355bf">Amazon Simple Storage Service S3, an Introduction | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>4 — <a href="https://towardsaws.com/route-53-the-highly-available-and-scalable-cloud-domain-name-system-dns-web-service-ce1293deba51">Route 53 — The highly available and scalable cloud Domain Name System (DNS) web service. | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>5 — <a href="https://shabarish033.medium.com/aws-architecture-for-processing-real-time-and-batch-processing-data-and-dashboards-dfa9b51d4731">AWS architecture for processing real-time and batch processing data and dashboards | by Shabarish PILKUN RAVI | Jul, 2022 | Medium</a></p><p>Devops:</p><p>1 — <a href="https://shabarish033.medium.com/understanding-devops-and-devops-pipeline-b10f3e9de297">Understanding DevOps and DevOps pipeline | by Shabarish PILKUN RAVI | Jul, 2022 | Medium</a></p><p>If you are interested in deep learning and computer vision, refer below articles:</p><p>1 — <a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">OpenCV Background Subtraction and Music in Background of Video | by Shabarish PILKUN RAVI | Medium</a></p><p>2 — <a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">Artificial Neural Networks Simplified: From Perceptrons to BackPropagation | by Shabarish PILKUN RAVI | The Startup | Medium</a></p><p>3 — <a href="https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd">Traditional Recurrent Neural Networks — Reinforcement Learning Part 1/3 | by Shabarish PILKUN RAVI | Towards AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3d52d3482e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding DevOps and DevOps pipeline]]></title>
            <link>https://shabarish033.medium.com/understanding-devops-and-devops-pipeline-b10f3e9de297?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b10f3e9de297</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Sun, 24 Jul 2022 13:05:34 GMT</pubDate>
            <atom:updated>2022-10-23T18:08:30.908Z</atom:updated>
            <content:encoded><![CDATA[<p>Before understanding the concepts of devops, let us understand the software development practices that was followed before devops.</p><p>Until before 2000, most software was developed using a “<em>waterfall approach</em>”, it is a linear approach where developers would spend months developing and writing large chunks of new code which impacted the whole application. Once developed these would further take time to integrate into the code base. Once the developers complete the job, next the quality assurance, testing, security and operations would further take time in testing the code and get back to the developers for bug fixes and feature implementation. The result of this approach was that it would take months or even years between software releases and to go to production.</p><p>Time to production costs money and thus we need an approach that would release small patches of high quality tested code/bugfixes into production, to achieve this we have the devops practice in software development.</p><h3>DEVOPS — Development and Operations</h3><p>DevOps is a software development practice that speeds up the development of high quality software by automating and integrating the efforts of development and operations thus providing continous delivery of software patches/releases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*L2Vtyu9BhmI45gNKkmsF3A.png" /><figcaption>Devops Pipeline</figcaption></figure><p>Read below to understand the different stages in DEVOPS:</p><p><strong>Plan (Continous Planning)</strong>: <br>Product Managers and Project Managers play a key role in this, they are responsible to plan the complete road map for the project, understand the requirements from the stack holders and break the requirements into workable tasks.</p><p><strong>Code (Continous Coding): <br></strong>Now that the tasks are defined by the project managers/product owners, these tasks are continously developed by the developers usually in sprints (2 week timelines). In most cases, developers have to follow certain coding styles and standards to ensure a uniform coding pattern. This makes it easier for any team member to read and understand the code. When developers are ready to submit their code, they make a pull request to the shared source code repository. Team members can then manually review the newly submitted code and merge it with the master branch</p><p><strong>Build (Continous Building):</strong> <br>In this stage every time a code is merged with the shared repository, a series of automated tests are run. Generally, the pull request initiates an automated process that compiles the code into a deployable package or an executable. If any of these automated tests fail, the initial pull request fails, the developer is notified of the error and the build fails. Thus, this ensures that an error free code moves to the next step in the pipeline.</p><p><strong>Test (Continous Testing):<br></strong>Once the build is completed, the developers run a series of manual and automated tests to have more confidence on the application developed. Generally user acceptance tests are performed here to identify if any further improvements need to be performed before moving to production.</p><p><strong>Deploy (Continous Deployment):<br></strong>Once the application is passed its tests, it can now be deployed to production, generally when theree are minor changes an automated deployment strategy is used. However, when the code has a lot of changes the application is deployed in an environment identical to production to monitor how the application behaves.<br>One can also use the <strong>blue-green</strong> deployment strategy where we use a load balancer to slowly direct more traffic into the green environment, understand the application behavior, slowly direct more traffic to the green environment, until u have no traffic in the blue environment.</p><p><strong>Monitor (Continous Monitoring):</strong><br>In this stage the operations team is continously monitoring the infrastructure, systems and applications to make sure everything runs smooth. They continously collect the data in the form of logs, analytics and feedback from the users. Based on this data the overall DevOps Pipeline and the behavior of the application is continously improved.</p><p>Thus the pipeline is cyclic which results in continous improvement of the application.</p><p>I hope having an understanding of the different steps in the DevOps pipeline gives you an understanding of the DevOps practices.</p><p>A few concepts more from DevOps.</p><p><strong>Continous Integration (CI): <br></strong>It is a method of continously integrating small chunks of code from multiple developers into a shared code repository with version control as often as possible. This helps the developers to automatically test their chunk of code without having to wait for other developers to contribute. It also smoothes the application integration process.</p><p><strong>Continous Delivery (CD):<br></strong>It is an extension of the continous intergration process. It encourages the developers to release their code to production in incremental chunks. In a typical DevOps scenario, developers first push their changes to a production-like environment to analyse the application behavior, once satisfied the developer can deploy the application to production with a push of a button.<br>It is always encouraged to deploy small chunks of codes to production thus making new improvements to the application in the form of updates/patches every month.</p><p><strong>Continous Deployment (CD):</strong><br>This is an extension of the Continous Delivery process, however continous deployment is an automated way of pushing the changes to production, where the user has no control (button to release changes) of releasing a given update to production. It is advisable to follow continous deployment to release minor updates, because in this way the application could be rolled back to its previous version if it malfunctions.</p><h3>Other Articles:</h3><p>A good reference to learn more about devops:<br>1 — <a href="https://spacelift.io/blog/devops-best-practices">https://spacelift.io/blog/devops-best-practices</a></p><p>If you are interested to learn about other aws services please look at my other articles:</p><p>1 — <a href="https://towardsaws.com/cloud-computing-an-overview-d4c028c7ab10">Cloud Computing: An Overview. In this section, I will try to explain… | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>2 — <a href="https://towardsaws.com/amazon-web-services-aws-an-overview-9cc2c07bfe63">Amazon Web Services [AWS]: An Overview | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>3 — <a href="https://towardsaws.com/amazon-simple-storage-service-s3-an-introduction-c27d344355bf">Amazon Simple Storage Service S3, an Introduction | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>4 — <a href="https://towardsaws.com/route-53-the-highly-available-and-scalable-cloud-domain-name-system-dns-web-service-ce1293deba51">Route 53 — The highly available and scalable cloud Domain Name System (DNS) web service. | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>5 — <a href="https://shabarish033.medium.com/aws-architecture-for-processing-real-time-and-batch-processing-data-and-dashboards-dfa9b51d4731">AWS architecture for processing real-time and batch processing data and dashboards | by Shabarish PILKUN RAVI | Jul, 2022 | Medium</a></p><p>If you are interested in deep learning and computer vision, refer below articles:</p><p>1 — <a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">OpenCV Background Subtraction and Music in Background of Video | by Shabarish PILKUN RAVI | Medium</a></p><p>2 — <a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">Artificial Neural Networks Simplified: From Perceptrons to BackPropagation | by Shabarish PILKUN RAVI | The Startup | Medium</a></p><p>3 — <a href="https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd">Traditional Recurrent Neural Networks — Reinforcement Learning Part 1/3 | by Shabarish PILKUN RAVI | Towards AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b10f3e9de297" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS architecture for processing real-time and batch processing data and dashboards]]></title>
            <link>https://shabarish033.medium.com/aws-architecture-for-processing-real-time-and-batch-processing-data-and-dashboards-dfa9b51d4731?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfa9b51d4731</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[batch-processing]]></category>
            <category><![CDATA[realtime]]></category>
            <category><![CDATA[dashboard]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Sat, 16 Jul 2022 11:50:23 GMT</pubDate>
            <atom:updated>2023-03-11T12:41:16.864Z</atom:updated>
            <content:encoded><![CDATA[<h3>Context:</h3><p>Let us assume that you have a website that sells articles, you want to study the customer behavior, analyze click-stream data and present the results on a real time and a batch processing dashboard, in this case the architecture explained can help you.</p><h3><strong>Information about the website:</strong></h3><ul><li>Users access the website via a mobile application or a website (possible input sources to understand customer behavior).</li><li>Different micro-services will connect to the data lake, thus the endpoints must be compatible to the various data services.</li></ul><h3>Datalake Definition:</h3><p>It is a central repository where one can store both structured and unstructured data at any scale, one can use this repository to perform different types of analytics such as creating a dashboard, big data processing, real time analytics and machine learning. <br>[source: <a href="https://aws.amazon.com/de/big-data/datalakes-and-analytics/what-is-a-data-lake/">What is a data lake? (amazon.com)</a>]</p><h3>The System Architecture Diagram:</h3><p>The system architecture diagram is as presented below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdgY1s13-m8VNHEwWcXUTg.png" /><figcaption>System Architecture diagram</figcaption></figure><p>The architecture shown above can be explained in 3 parts:</p><ul><li>Part 1: Ingestion</li><li>Part 2: Transform</li><li>Part 3: Load</li></ul><h3>Part 1: Ingestion</h3><p>The data from the mobile application and website is collected in real-time using Kinesis data firehose, and this raw data is stored in an S3 bucket.</p><p>Reasons to use Kinesis Data Firehose:</p><ul><li>Amazon Kinesis Data Firehose is a fully managed service for delivering real-time streaming data to destinations such as Amazon Simple Storage Service (Amazon S3), Amazon Redshift, Amazon Open Search Service, or any custom HTTP and HTTPS endpoints.</li><li>The data of interest that your data producer sends to a Kinesis Data Firehose delivery stream. A record can be as large as 1,000 KB.</li></ul><p>Reasons to use S3 to store the Raw Data:</p><ul><li>S3 is a object storage service that offers a high scalability, availability, performance and security. One can store huge amounts of data securely on S3. Thus S3 will be our datalake.</li></ul><h3>Part 2: Transform</h3><p>In the transform part we are using Amazon kinesis Data Analytics and Firehose service. The kinesis data analytics service is used to run SQL queries on the stream data from the incoming kinesis firehose service.</p><p>We then activate transforms in the kinesis data firehose to further apply format changes, transformations, dynamic partitioning and compressions on this incoming data from kinesis data analytics. This transformed, compressed, partitioned data is stored in the clean bucket.</p><p>Why choose Amazon Kinesis Data Analytics:</p><ul><li>Kinesis data analytics allows you to process and analyze streaming data using standard SQL.</li><li>The service enables you to quickly author and run powerful SQL code against streaming sources to perform time series analytics, feed real-time dashboards, and create real-time metrics.</li></ul><p>This clean data is stored in an S3 bucket containing clean data.</p><p><strong>Please note: </strong>One could also use AWS glue to perform the transform step if we are not transforming data in real-time.</p><p>Reasons to use AWS glue for transformation:</p><ul><li>AWS Glue is a fully managed ETL (extract, transform, and load) service that makes it simple and cost-effective to categorize your data, clean it, enrich it, and move it reliably between various data stores and data streams.</li><li>AWS Glue is a popular choice for ingesting data as a batch process. The Glue Crawler enables data in many different formats to be processed. Processing power is provided by a spark cluster and Python or Scala give programming flexibility.</li></ul><h3>Part 3: Load</h3><p>The load part of the pipeline can be further split into 2 parts, real-time processing and batch processing.</p><h4>Real-Time Processing</h4><p>Everytime new data is available after transformation in the kinesis datahose section, the lambda function can be triggered to put the new data into the dynamodb database.</p><p>Using dynamodb streams everytime new data is available, we can trigger the streams to reflect this new data on the content delivery network Cloudfront, which will deliver the data to the dashboard built on a framework such as Angular, django, flask, react, etc. One can also use Quicksight as a dashboard service.</p><p>Why choose Dynamodb:</p><ul><li>Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability.</li><li>With DynamoDB, you can create database tables that can store and retrieve any amount of data and serve any level of request traffic. You can scale up or scale down your tables’ throughput capacity without downtime or performance degradation.</li></ul><p>Why choose Lambda:</p><ul><li>Lambda is a serverless compute service that lets you run code without provisioning or managing servers.</li><li>One can build data-processing triggers for AWS services such as Amazon Simple Storage Service (Amazon S3) and Amazon DynamoDB.</li></ul><h4>Batch Processing</h4><p>Once the data is transformed in the Transform step, it is stored in the Clean Bucket as shown in the figure. We will also create a glue crawler on the clean bucket to create data catalogue and tables, these glue catalogue tables can then be loaded onto various endpoints.</p><p>Once the data is transformed, one can load the data to various endpoints, in this architecture I have listed 3 end points to further run OLAP processes, create and deploy machine learning models, or just run some SQL queries on the dataset. One can also visualize the data on AWS Quicksight.</p><p>Amazon Redshift:</p><ul><li>Amazon Redshift is a fully managed, petabyte-scale data warehouse service in the cloud. You can start with just a few hundred gigabytes of data and scale to a petabyte or more. Amazon Redshift offers fast query performance using the same SQL-based tools and business intelligence applications that you use today. This enables you to use your data to acquire new insights for your business and customers.</li></ul><p>Amazon Athena:</p><ul><li>Amazon Athena is an interactive query service that makes it easy to analyze data directly in Amazon Simple Storage Service (Amazon S3) using standard SQL.</li><li>Athena is serverless, so there is no infrastructure to set up or manage, and you pay only for the queries you run.</li></ul><p>Amazon Sagemaker:</p><ul><li>Amazon SageMaker is a fully managed machine learning service.</li><li>Data scientists and developers can quickly and easily build and train machine learning models, and then directly deploy them into a production-ready hosted environment. It also enables users to practice MLOPs practices.</li><li>It provides an integrated Jupyter authoring notebook instance for easy access to your data sources for exploration and analysis, so you don’t have to manage servers.</li></ul><p>Amazon Quicksight:</p><ul><li>It is a serverless AWS data visualization service.</li><li>As a fully managed cloud-based service, Amazon QuickSight provides enterprise-grade security, global availability, and built-in redundancy. It also provides the user-management tools that you need to scale from 10 users to 10,000, all with no infrastructure to deploy or manage.</li></ul><h3>Conclusion:</h3><p>In this article, I have presented an architecture that describes a data lake system that can support different users (Data engineers, product owners, stake holders, data scientists, BI engineers, and executive managers), for different use cases.</p><p>The services used in these architectures are highly scalable, and fully managed, thus we dont need to worry about setting up or managing the infrastructure.</p><p>A single architecture was explained to support a real time use case and a batch processing use case, however one could also seperate this architecture and build a single architecture that can support individual data processing type.</p><h3>Other Articles:</h3><p>If you are interested to learn about other aws services please look at my other articles:</p><p>1 — <a href="https://towardsaws.com/cloud-computing-an-overview-d4c028c7ab10">Cloud Computing: An Overview. In this section, I will try to explain… | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>2 — <a href="https://towardsaws.com/amazon-web-services-aws-an-overview-9cc2c07bfe63">Amazon Web Services [AWS]: An Overview | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>3 — <a href="https://towardsaws.com/amazon-simple-storage-service-s3-an-introduction-c27d344355bf">Amazon Simple Storage Service S3, an Introduction | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>4 — <a href="https://towardsaws.com/route-53-the-highly-available-and-scalable-cloud-domain-name-system-dns-web-service-ce1293deba51">Route 53 — The highly available and scalable cloud Domain Name System (DNS) web service. | by Shabarish PILKUN RAVI | Towards AWS</a></p><p>If you are interested in deep learning and computer vision, refer below articles:</p><p>1 — <a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">OpenCV Background Subtraction and Music in Background of Video | by Shabarish PILKUN RAVI | Medium</a></p><p>2 — <a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">Artificial Neural Networks Simplified: From Perceptrons to BackPropagation | by Shabarish PILKUN RAVI | The Startup | Medium</a></p><p>3 — <a href="https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd">Traditional Recurrent Neural Networks — Reinforcement Learning Part 1/3 | by Shabarish PILKUN RAVI | Towards AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfa9b51d4731" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Route 53 — The highly available and scalable cloud Domain Name System (DNS) web service.]]></title>
            <link>https://towardsaws.com/route-53-the-highly-available-and-scalable-cloud-domain-name-system-dns-web-service-ce1293deba51?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce1293deba51</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[route-53]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Sun, 13 Jun 2021 17:37:06 GMT</pubDate>
            <atom:updated>2021-06-14T13:03:49.781Z</atom:updated>
            <content:encoded><![CDATA[<h3>Route 53 — The highly available and scalable cloud Domain Name System (DNS) web service.</h3><p>In this blog we will learn about Route 53, the amazon web services (AWS) DNS web service. We will also learn the different routing policies available in Route 53.</p><h3>What is Route 53?</h3><p><strong>Context</strong>: Consider a situation when you would like to browse a website for example ‘www.website_i_would_like_to_browse.com’, in this scenario the browser in the backend translates the website to an IP address which is then routed to the respective endpoint. Route 53 is thus responsible to translate the website name to an IP address and route it to the right endpoint.</p><p>Amazon Route 53 is a highly available and scalable cloud domain name web service. It is designed to give developers and businesses an extremely reliable and cost-effective way to route end users to Internet applications by translating names like <a href="http://www.example.com/">www.example.com</a> into the numeric IP addresses like 192.0.2.1 that computers use to connect to each other. Amazon Route 53 is fully compliant with IPv6 as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*WipnGiQkCw4214s5kjhCAw.png" /><figcaption>Logo for Route53</figcaption></figure><h3>Why is it called Route 53?</h3><p>DNS requests are addressed to the TCP/UDP port 53, and the ‘route’ element in the name route 53 is an inspiration from the iconic ‘route 66’ in the USA. You can also think of the ‘route’ part as an indication of the path for routing traffic to Amazon DNS via the TCP/UDP port 53.</p><h3>The Different Routing Policies in Route 53.</h3><p>[source] — <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html">https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html</a></p><p>1 ) <strong>Simple routing policy</strong> : Use for a single resource that performs a given function for your domain, for example, a web server that serves content for the example.com website. <br>If you choose the simple routing policy in the Route 53 console, you cannot create multiple records that have the same name and type, but you can specify multiple values in the same record, such as multiple IP addresses.</p><p>2 ) <strong>Failover routing policy</strong> — Use when you want to configure active-passive failover. <br>This is efficient when for example you have a health check and the health check fails for resources in route A, then we send the traffic to the resource end-points in route B.</p><p>3 ) <strong>Geolocation routing policy</strong> — Use when you want to route traffic based on the location of your users. <br>This is efficient when for example you want the users in France region to view your website in French or to view the price of a commodity in Euros, thus you route a particular version of the website based on the Location of the users.</p><p>4 ) <strong>Geoproximity routing policy</strong> — Use when you want to route traffic based on the location of your resources and, optionally, shift traffic from resources in one location to resources in another.<br>Geoproximity routing lets Amazon Route 53 route traffic to your resources based on the geographic location of your users and your resources. You can also optionally choose to route more traffic or less to a given resource by specifying a value, known as a <strong>bias</strong>. A bias expands or shrinks the size of the geographic region from which traffic is routed to a resource.</p><p>5) <strong>Latency routing policy</strong> — Use when you have resources in multiple AWS Regions and you want to route traffic to the Region that provides the best latency with less round-trip time. <br>This is used for example you have resources in both the Europe and North America region, then if this policy is selected, for the European users the traffic is automatically routed to the resources in the Europe region because this will provide the users with the least latency.</p><p>6) <strong>Multivalue answer routing policy</strong> — Use when you want Route 53 to respond to DNS queries with up to eight healthy records selected at random. Thus at any time the traffic is routed to the healthy resources which improves the availability of your application.</p><p>7) <strong>Weighted routing policy</strong> — Use to route traffic to multiple resources in proportions that you specify. This is useful when you would like to deploy your application using Canary or Blue-Green deployments, in this policy we create multiple resources to route the traffic, however we also create weights based on this value one can define the amount of traffic directed to each resource.</p><p>I hope this blog gives you some basic understanding of Route 53 and its different policies.</p><p>If you would like to have an overview of AWS S3, do check my blog below:</p><p><a href="https://shabarish033.medium.com/amazon-simple-storage-service-s3-an-introduction-c27d344355bf">Amazon Simple Storage Service — S3, an Introduction</a></p><p>If you would like to have an overview of cloud computing, you can read my blog below:</p><p><a href="https://shabarish033.medium.com/cloud-computing-an-overview-d4c028c7ab10">Cloud Computing: An Overview</a></p><p>If you would like to have an overview of AWS and its global infrastructure, you can read my blog below:</p><p><a href="https://shabarish033.medium.com/amazon-web-services-aws-an-overview-9cc2c07bfe63">Amazon Web Services [AWS]: An Overview</a></p><p>If you are interested in Computer vision you can read my blog below:</p><p><a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">OpenCV Background Subtraction and  Music in Background of Video</a></p><p>If you are interested in Deep Learning you can read my blogs below:</p><ul><li><a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">Artificial Neural Networks Simplified: From Perceptrons to BackPropagation</a></li><li><a href="https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd">Traditional Recurrent Neural Networks — Reinforcement Learning Part 1/3</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce1293deba51" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/route-53-the-highly-available-and-scalable-cloud-domain-name-system-dns-web-service-ce1293deba51">Route 53 — The highly available and scalable cloud Domain Name System (DNS) web service.</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Simple Storage Service — S3, an Introduction]]></title>
            <link>https://towardsaws.com/amazon-simple-storage-service-s3-an-introduction-c27d344355bf?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c27d344355bf</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Wed, 02 Jun 2021 21:21:10 GMT</pubDate>
            <atom:updated>2021-06-14T13:02:58.089Z</atom:updated>
            <content:encoded><![CDATA[<h3>Amazon Simple Storage Service S3, an Introduction</h3><p>In this Blog we will be looking at a basic introduction to the Amazon Web Services (AWS) S3 buckets, understand the different storage classes available in S3, we will then compare the features of these different Storage classes, we will also look at how to create an S3 bucket, and finally upload an object in the bucket.</p><h3>What is S3 ??</h3><p>Amazon Simple Storage Service (Amazon S3) is an object storage service in AWS. The storage service has high scalability, data availability, security, and performance. S3 is used in different applications such as data lakes, websites, mobile applications, backup and restore, archive,and big data analytics. Amazon S3 is designed for 99.999999999% (11 9’s) of durability, and stores data for millions of applications for companies all around the world. [source]:<a href="https://aws.amazon.com/s3/?did=ft_card&amp;trk=ft_card">https://aws.amazon.com/s3/?did=ft_card&amp;trk=ft_card</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*lL390IxZemfSdId7fL7bpw.png" /><figcaption>AWS S3 Logo</figcaption></figure><h3>What are the different Storage classes available in S3 ?</h3><p>The different storage classes available in S3 are:<br>a) S3 Standard — For <strong>General Purpose </strong>applications.<br>b) S3 Intelligent-Tiering — For data with <strong>unknown or changing access patterns.<br></strong>c) S3 Standard-Infrequent Access (S3 Standard-IA) — For <strong>long-lived, high availability and less frequently accessed data.</strong> <br>d) S3 One Zone-Infrequent Access (S3 One Zone-IA) — For <strong>long-lived, less availability and less frequently accessed data.<br></strong>e) Amazon S3 Glacier (S3 Glacier) and Amazon S3 Glacier Deep Archive (S3 Glacier Deep Archive) — For <strong>long-term archive and digital preservation</strong>.<br>f) S3 Outposts — To store your S3 data on-premises.</p><h3>Comparison of features between the different storage classes</h3><p>Given below is an image comparing the features of the different storage classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_Zy8cXCTRAlcetwkAd_oQ.png" /><figcaption>[source] — <a href="https://aws.amazon.com/s3/storage-classes/?nc=sn&amp;loc=3">https://aws.amazon.com/s3/storage-classes/?nc=sn&amp;loc=3</a></figcaption></figure><h3>How to create an S3 bucket ?</h3><p>Given below are the instructions on how one can create an S3 bucket in AWS.</p><p><strong>Step1</strong> : Login to your AWS account, go to your AWS console.<br><strong>Step2</strong> : Go to “<em>Services”, </em>under “<em>Storage”</em> go to “<em>S3”.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*arbNYvisVfgJywvfSWvZ1w.png" /><figcaption>Click on <strong>S3</strong> option under <strong>Storage</strong></figcaption></figure><p><strong>Step3</strong> : Once you enter the S3 user-interface, you can now create the S3 bucket by clicking on “<em>Create bucket”, </em>option<em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qlAVhdb7UUlxuFl23SpYoQ.png" /><figcaption>Click on “<strong>Create bucket</strong>” option to create the S3 bucket.</figcaption></figure><p><strong>Step4</strong> : You are now directed to the new UI where you can configure the S3 bucket settings.<br><strong>Points to Remember when naming a S3 bucket:<br></strong>a) The S3 bucket name must be unique, bucket names are globally unique.<br>b) The S3 bucket name must not contain spaces or uppercase letters.</p><p><strong>Step5</strong> : Once you have given a name to your bucket, you can now choose the region in which the bucket must exist. One can also copy the settings from an existing bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7dRJc3Nci1auIAaEZjMEA.png" /><figcaption>Choose the name and region of the S3 bucket.</figcaption></figure><p><strong>Step6</strong> : Granting Access, by default all buckets are denied for public access, ie. whenever you upload an object you are given an URL link to access the object, however when you “<em>Block all public access</em>” only the <strong>users/groups</strong> that have the access permissions can access the object uploaded (Default Option).</p><p>However if you <strong>disable</strong> “<em>Block all public access”, </em>anyone with the URL link to access the object can access the object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n4eFUXc_IYxIlBxgitXaWA.png" /><figcaption>Access and Permissions to objects in bucket</figcaption></figure><p><strong>Step7:</strong> <em>Versioning, Tags and Encryption — </em>By default the <strong>Bucket Versioning</strong> is disabled, however when you need to have different versions of your object uploaded, you can enable versioning.<br>If you want to keep track of the changes in your bucket in terms of the objects stored you can <strong>Tag</strong> them.<br>Encryption is disabled by default, however you can <strong>enable encryption</strong> for the objects uploaded in the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hoI0WnMTYsWiox2Zhtpluw.png" /></figure><p><strong>Step8</strong>: Advanced settings, you can enable object lock, ie. <strong>Write Once Read Many</strong> option for the objects stored in your bucket, it is “<strong>Disabled</strong>” by default, however it can be enabled only when “<strong>Versioning”</strong> is enabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U6c5J27cMxfo-MbZCKoY-g.png" /></figure><p><strong>Step9:</strong> Once the above steps are performed, click on “<em>Create bucket” </em>to create the bucket, this will create the bucket in the region selected, and the user is directed to the S3 bucket main page in the UI.</p><p><strong>Step10: </strong>To upload an object into the bucket, just click on the bucket that was created. A UI as shown below would appear, click on “<em>Upload”</em> option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NiNecWogUtX0N-FlY_FkSw.png" /></figure><p><strong>Step11:</strong> Click on “<em>Add files”</em> option, and choose the files you would like to upload (Here we are uploading from the local computer). <br>Click on “<em>Upload</em>” option,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FmgP3JtFX518-P1ihZHBcQ.png" /></figure><p>The steps above would enable you to create an S3 bucket storage, and upload objects on the S3 bucket created.</p><p><strong>Please Note</strong>: By default all objects uploaded on the S3 bucket are not accessible to public by default, to enable access you need to click on the object uploaded and change its permissions to be publicly accessible.</p><p>I hope this article gives you a basic understanding of S3 buckets and how we can create it and upload objects into it.</p><p>If you would like to have an overview of cloud computing, you can read my blog below:</p><p><a href="https://shabarish033.medium.com/cloud-computing-an-overview-d4c028c7ab10">Cloud Computing: An Overview</a></p><p>If you would like to have an overview of AWS and its global infrastructure, you can read my blog below:</p><p><a href="https://shabarish033.medium.com/amazon-web-services-aws-an-overview-9cc2c07bfe63">Amazon Web Services [AWS]: An Overview</a></p><p>If you are interested in Computer vision you can read my blog below:</p><p><a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">OpenCV Background Subtraction and  Music in Background of Video</a></p><p>If you are interested in Deep Learning you can read my blogs below:</p><ul><li><a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">Artificial Neural Networks Simplified: From Perceptrons to BackPropagation</a></li><li><a href="https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd">Traditional Recurrent Neural Networks — Reinforcement Learning Part 1/3</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c27d344355bf" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/amazon-simple-storage-service-s3-an-introduction-c27d344355bf">Amazon Simple Storage Service — S3, an Introduction</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Web Services [AWS]: An Overview]]></title>
            <link>https://towardsaws.com/amazon-web-services-aws-an-overview-9cc2c07bfe63?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cc2c07bfe63</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Sat, 29 May 2021 21:14:49 GMT</pubDate>
            <atom:updated>2021-06-14T13:02:41.659Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog post, one can have an overview of what AWS is and its Global infrastructure.</p><h3>What is Cloud Computing?</h3><p>Cloud Computing is the on-demand delivery of IT resources via the internet.<br>One can have a basic understanding of cloud computing in the article below:<br><a href="https://shabarish033.medium.com/cloud-computing-an-overview-d4c028c7ab10">https://shabarish033.medium.com/cloud-computing-an-overview-d4c028c7ab10</a></p><h3>What is AWS?</h3><p>AWS is one of the major cloud computing service providers, with a wide spectrum of services that can enable you to build powerful applications on the cloud. It was officially launched in 2006, today they are one of the leaders in the cloud computing services industry.</p><p>As of 2020, they hold 32% of the total share in the market, given below shows an image containing the distribution of shares of the various cloud providers currently in the market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nvJHUCGNPZSAJne5.jpeg" /><figcaption>[source]: <a href="https://www.statista.com/chart/18819/worldwide-market-share-of-leading-cloud-infrastructure-service-providers/">https://www.statista.com/chart/18819/worldwide-market-share-of-leading-cloud-infrastructure-service-providers/</a></figcaption></figure><h3>AWS Global Infrastructure</h3><p>From a birds-eye view the various services in AWS can be grouped into the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wWtmBlJn_GwMHJxdosVifA.png" /><figcaption>birds-eye view of the different groups of AWS services</figcaption></figure><p>An example of the different services in each category can be:<br><strong>Storage: </strong>S3<br><strong>Compute:</strong> EC2, Lambda<br><strong>Databases: </strong>Aurora, DynamoDB<br><strong>Satellite:</strong> Ground Station<br><strong>Migration &amp; Transfer:</strong> Snowball, Snowmobile<br><strong>Network &amp; Content Delivery: </strong>Cloudfront, Route53<br><strong>Machine Learning:</strong> Sagemaker<br><strong>Media Services: </strong>Elastic Transcoder<br><strong>Security, Identity &amp; Compliance: </strong>Identity Access Management</p><p>The global infrastructure consists of a Region, an availability zone and an Edge Location.</p><p>As of today, the AWS Cloud spans 80 Availability Zones within 25 geographic regions around the world, with announced plans for 18 more Availability Zones and 6 more AWS Regions in Australia, India, Indonesia, Spain, Switzerland, and United Arab Emirates (UAE). [source]:<a href="https://aws.amazon.com/about-aws/global-infrastructure/">https://aws.amazon.com/about-aws/global-infrastructure/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*toptLbQPGBE0FlGs8PuHKw.png" /><figcaption>[source]: <a href="https://aws.amazon.com/about-aws/global-infrastructure/">https://aws.amazon.com/about-aws/global-infrastructure/</a></figcaption></figure><p><strong>Availability Zone: </strong>One may consider an availability zone to be a group of data centers. A data center can be considered to be a building filled with servers.</p><p><strong>Region:</strong> A region is a geographical area, it may consist of 2 or more availability zones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BmmLqijQIfk7SOK5SpmCBw.png" /><figcaption>Regions &amp; Availability Zones</figcaption></figure><p><strong>Edge Location:</strong> These are the endpoints for AWS where content/data is cached. This consists of Cloudfront, Amazon’s Content Delivery Network. Currently there are more than 230 edge locations all over the world.</p><p>I hope these definitions gives you a basic understanding of the AWS global Infrastructure.</p><p>If you are interested in Computer vision you can read my blog below:</p><p><a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8</a></p><p>If you are interested in Deep Learning you can read my blogs below:</p><p>1 — <a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6</a></p><p>2 — <a href="https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd">https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd</a></p><p>If you would like to have an overview of cloud computing, you can read my blog below:</p><p><a href="https://shabarish033.medium.com/cloud-computing-an-overview-d4c028c7ab10">https://shabarish033.medium.com/cloud-computing-an-overview-d4c028c7ab10</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cc2c07bfe63" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/amazon-web-services-aws-an-overview-9cc2c07bfe63">Amazon Web Services [AWS]: An Overview</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Computing: An Overview]]></title>
            <link>https://towardsaws.com/cloud-computing-an-overview-d4c028c7ab10?source=rss-849f841285c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4c028c7ab10</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[ibm-cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Shabarish PILKUN RAVI]]></dc:creator>
            <pubDate>Sat, 29 May 2021 18:37:54 GMT</pubDate>
            <atom:updated>2021-06-14T13:02:06.915Z</atom:updated>
            <content:encoded><![CDATA[<p>In this section, I will try to explain what is cloud computing, how it works, the current cloud computing service providers in the market, applications of cloud computing.</p><h3>What is Cloud Computing?</h3><p>In simple words, Cloud Computing is the on-demand delivery of IT resources via the internet. Instead of buying, maintaining, and accessing the on-premises servers and data centers one can access technology services such as computing power, databases, and storage services on an as-required basis from a cloud provider such as AWS, Microsoft Azure, Google Cloud Platform (GCP), IBM Cloud, Alibaba, etc.<br>One of the main advantages of cloud computing is it enables companies to have a global presence, without having a data center in different locations.<br>Apart from this one can easily build the machine learning or artificial intelligence capacities in his application without worrying much about the physical infrastructure to be purchased.</p><h3>How does cloud computing work?</h3><p>The figure below shows a simplified representation of how cloud computing works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f1NzJtywr4EV2xj2hyj5dA.png" /><figcaption>A simplified representation of the working of Cloud computing</figcaption></figure><p>Let us consider an example where you uploaded a document on Google Drive, without knowledge through this action one is using cloud computing. <br>How ?? <br>We know that the document uploaded can be accessed via our account on any device such as a laptop, computer, or mobile phone with the internet. <br>What is happening in the back end is that the document is stored in these data centers and the user is able to access it wirelessly via the internet. <br>Cloud providers can store these files redundantly in different availability zones or regions in the different continents of the world, therefore enabling high availability and disaster recovery of your data.<br>I hope with this example the concept of cloud computing becomes clear.</p><h3>Current cloud computing service providers in the market.</h3><p>The figure below shows the different cloud computing service providers and their shares in the market.</p><p>source: <a href="https://www.statista.com/chart/18819/worldwide-market-share-of-leading-cloud-infrastructure-service-providers/">https://www.statista.com/chart/18819/worldwide-market-share-of-leading-cloud-infrastructure-service-providers/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ImfoiYecs--_H5jY.jpeg" /><figcaption>Cloud Computing Service Providers and their Percentage of Shares in the Market</figcaption></figure><h3>Applications of Cloud Computing</h3><ol><li><strong>Infrastructure as a Service [IaaS]:</strong> Cloud computing provides the needed compute, network, and storage resources to consumers on-demand over the internet, and on a pay-as-you-go basis. The advantage of this is that the consumer enjoys high savings in costs in terms of buying and maintaining physical servers/data centers.</li><li><strong>Platform as a Service [PaaS]: </strong>For a given application the cloud providers can provide the complete platform (compute, database, network and storage) as a service, this enables the clients to only focus on their code/application without worrying about building and maintaining the platform on-premises. This also helps the client in releasing their applications faster into the market as they do not need to think about the infrastructure needed.</li><li><strong>Hybrid Cloud:</strong> It is where the client can connect a company’s on-premises private cloud services and third-party public cloud into a single, flexible infrastructure for running the organization’s applications and workloads.<br>This enables the client to have the flexibility to deploy applications into their own private or public-facing clouds.</li><li><strong>Big-Data Analytics:</strong> One of the major drawbacks of Big-Data analytics is the physical hardware needed to run analytics on huge databases, but with cloud computing where the infrastructure is provided as a service the client need not worry about the physical hardware needed, he can perform big-data analytics for his applications and pay only for the resources used.</li><li><strong>Cloud Storage:</strong> With cloud computing resources one can store vast amounts of data easily without the need to buy physical storage hardware.</li><li><strong>Disaster Recovery:</strong> With data stored redundantly across multiple data centers in multiple regions, data can be recovered even at the loss of a data center.</li><li><strong>Data Backup:</strong> Vast amounts of data can be backed up into multiple data centers thus ensuring a high availability for the information. This is very important for data backup.</li></ol><p>— — — — -***** — Fin — ***** — — — — -</p><p>If you are interested in Computer vision you can read my blog below:</p><p><a href="https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8">https://shabarish033.medium.com/opencv-background-subtraction-and-music-in-background-of-video-c8fe10b66bc8</a></p><p>If you are interested in Deep Learning you can read my blogs below:</p><p>1 — <a href="https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6">https://medium.com/swlh/artificial-neural-networks-simplified-from-perceptrons-to-backpropagation-ab8b5770ded6</a></p><p>2 — <a href="https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd">https://pub.towardsai.net/traditional-recurrent-neural-networks-reinforcement-learning-part-1-3-348aec514bdd</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4c028c7ab10" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/cloud-computing-an-overview-d4c028c7ab10">Cloud Computing: An Overview</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>