<?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 Vamsee Lakkaraju on Medium]]></title>
        <description><![CDATA[Stories by Vamsee Lakkaraju on Medium]]></description>
        <link>https://medium.com/@vamsee.l.krishna?source=rss-b60432c18263------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*elWV56vKeMvDHvVTv9kAKQ@2x.jpeg</url>
            <title>Stories by Vamsee Lakkaraju on Medium</title>
            <link>https://medium.com/@vamsee.l.krishna?source=rss-b60432c18263------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:27:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vamsee.l.krishna/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[Server Side Rendering vs Client Side Rendering. How, why and when ?]]></title>
            <link>https://medium.com/@vamsee.l.krishna/server-side-rendering-vs-client-side-rendering-how-why-and-when-c8838bf87537?source=rss-b60432c18263------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8838bf87537</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[client-side-rendering]]></category>
            <category><![CDATA[rendering]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[server-side-rendering]]></category>
            <dc:creator><![CDATA[Vamsee Lakkaraju]]></dc:creator>
            <pubDate>Sat, 10 Jun 2023 18:24:51 GMT</pubDate>
            <atom:updated>2023-06-10T18:33:33.665Z</atom:updated>
            <content:encoded><![CDATA[<h3>Server Side Rendering vs Client Side Rendering. How, why and when ?</h3><p>Hey you !</p><p>Trust me, this was not written by ChatGPT or any other LLM model :). You can figure it out by trying to find some english grammar mistakes. Yes I am not great with English but I am great with tech :P</p><p>Websites today are much more dynamic than ever before. JavaScript frameworks made it possible to display <strong>dynamic content</strong> directly from the browser. As a result, we have faster loading web pages, providing a smooth user experience.</p><p><strong>Dynamic pages</strong> have different content for each user. Such pages are not placed on the server in the finished form but are collected anew for each new request. The server first finds the document and sends it to the interpreter, who executes the code from the HTML document and checks the files and database. The document is then returned to the server and displayed in the browser. Downloading pages like that takes more time than just static pages.</p><p>What’s more, when choosing the approach to rendering, you need to understand the difference between the possible options, so as not to lose performance. Let’s compare and figure out what is the difference between the Client Side and the Server-Side Rendering.</p><h3>Server-Side Rendering Definition</h3><p>Server-side rendering (SSR) is an application’s ability to convert HTML files on the server into a fully rendered HTML page for the client. The web browser submits a request for information from the server, which instantly responds by sending a fully rendered page to the client. Whenever the client navigates to a different page on the website, the server will do the work once more.</p><h3>How does SSR work?</h3><p>Server rendering takes place in four stages. Let’s say you entered the URL and went to the site:</p><ol><li>The server gives the client a ready-to-render HTML response</li><li>The browser renders the received HTML and downloads the JS code. At this stage, the page is available for viewing</li><li>The browser executes JS code, and with it, code Vue/React</li><li>The page becomes interactive</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*Krgex2wwA_c_Lo2Nw923Zg.png" /></figure><h3>SSR Advantages</h3><ul><li><strong>Better SEO </strong>and page positioning — since the HTML is completely created on the server-side and web crawlers can more readily index the HTML pages</li><li>Fast initial loading</li><li>Faster Largest Contentful Paint (LCP)</li></ul><h3>SSR Disadvantages</h3><ul><li>Frequent server requests</li><li>Slower time-to-interactive</li><li>Slow time to first byte (the time between clicking on the link and receiving the first fragment of content)</li></ul><h3>What is SEO?</h3><p><strong>SEO (Search Engine Optimisation)</strong> is a process used to optimise the technical structure of your website, content relevance, and link popularity. This makes it easier to find pages, makes them more relevant and popular with your search, and raises your rank by search engines.</p><p>Developers consider the impact of SEO when choosing a strategy for rendering. SSR is often chosen to form a page with a «finished view», which search robots can easily interpret. Search robots can perform Javascript, but generally, their rendering mechanisms have limitations that are worth remembering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_gKFTZehz6eDOtkgAbs6A.png" /><figcaption>Search Engine Optimisation</figcaption></figure><h3>Client-Side Rendering Definition</h3><p>Client-side rendering(CSR) involves rendering pages directly in the browser using JavaScript. All logic, data retrieval, templating, and routing are handled on the client, not on the server.</p><h3>How does CSR work?</h3><p>With client rendering, the page is available after the code is executed. That’s why the user does not see the naked, not animated JS-page skeleton:</p><ol><li>The Server sends a response to the client</li><li>Browser loads JS</li><li>The browser executes JS</li><li>The page is available and interactive</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*uCyJd-h1In7BDOhIQIwtNA.png" /><figcaption>Client Side Rendering</figcaption></figure><h3>CSR Advantages</h3><ul><li>Less load on the server</li><li>Better UI</li><li>Reduced server-side resource</li></ul><h3>CSR Disadvantages</h3><ul><li>Slower initial load time</li><li>Low SEO score (if not implemented correctly)</li><li>Caching is not possible until the page is fully loaded</li></ul><h3>When to Use SSR &amp; CSR</h3><p>The main difference between CSR and SSR is where the page is rendered. SSR renders the page on the server-side and CSR renders the page on the client-side. The client-side dynamically manages the routing without refreshing the page each time the client requests another route.</p><h3>Use SSR</h3><ul><li>If you want to prioritise SEO, you’re usually building a blog site, and if you want everyone searching on Google to find your site</li><li>When your website needs a faster initial load</li><li>If the content on your website does not require a lot of user interaction</li></ul><h3>Use CSR</h3><ul><li>The application has a very complex user interface with many pages/features</li><li>If your website has a lot of interactions</li><li>If SEO is not that important for you</li></ul><p>We can use and take advantage of both. Example : You can Server Side Render the landing, home pages which you think are more static and also has an impact on SEO and render rest of the pages using Client Side Rendering.</p><p>Go check, Micro <a href="https://www.xenonstack.com/insights/micro-frontend-architecture">FrontEnd architecture</a> to understand how to break your front end into pieces to have more control on rendering.</p><p>Let’s look at some Client Side Rendered code</p><p>A simple react component that renders stock name and stock price</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*VKser0eAzrbOImArOLq5zA.png" /></figure><p>The above code when run in React Client, The browser first renders the DOM with h1,h2 tags and in the next step when it downloads the javascript code in the<strong> &lt;script type=”text/javascript” src=”/path/to/minified.js&quot;/&gt;</strong> inside the index.html and executes it,stock price is fetched.</p><p>Now let’s look at the same functionality when rendered server side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*RoM_JXn2yGvMJrlwZ_bFkA.png" /></figure><p>Here the server is returning pre rendered HTML with the stock name and stock price values. This way the browser need not download the javascript in the <strong>&lt;script type=”text/javascript” src=”/path/to/minified.js”/&gt;</strong> tag and execute it. The entire DOM with the content is loaded on the initial render only. Now, you can think of how SSR has an advantage of SEO ranking because it is fast to render the content because it has all the content ready before it renders for the first time.</p><p>The above example is very vague and also something like fetching a stock price is a dynamic functionality, which is not suitable for SSR. I picked it to show the difference in rendering.</p><p>Just think of some less dynamic example yourself.</p><p>You can look at Next.js SSR based library documentation or ask ChatGpt an advanced version of SSR example.</p><p>If you happen to take away something from this blog, like and clap.</p><p>Also take a look at my old blogs which you might appreciate.</p><p>Don’t follow me, I am not consistent.</p><ul><li><a href="https://medium.com/@vamsee.l.krishna/load-balancers-101-e652057f81b">Load Balancers — 101</a></li><li><a href="https://medium.com/@vamsee.l.krishna/system-design-proxy-servers-for-the-dummies-eab95a6cab82">System Design : Proxy servers for the Dummies</a></li><li><a href="https://medium.com/@vamsee.l.krishna/when-to-say-yes-to-nosql-c53276c3744e">When to say ‘yes’ to NoSQL?</a></li><li><a href="https://medium.com/@vamsee.l.krishna/what-are-cloud-native-applications-5f58516c9098">What are cloud native applications ?</a></li><li><a href="https://medium.com/@vamsee.l.krishna/circuit-breaker-pattern-in-microservices-vs-corona-lockdown-47cf56682597">Circuit breaker pattern in microservices vs Corona Lockdown.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8838bf87537" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Circuit breaker pattern in microservices vs Corona Lockdown.]]></title>
            <link>https://medium.com/@vamsee.l.krishna/circuit-breaker-pattern-in-microservices-vs-corona-lockdown-47cf56682597?source=rss-b60432c18263------2</link>
            <guid isPermaLink="false">https://medium.com/p/47cf56682597</guid>
            <category><![CDATA[fault-tolerance]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[system]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Vamsee Lakkaraju]]></dc:creator>
            <pubDate>Fri, 15 May 2020 15:37:42 GMT</pubDate>
            <atom:updated>2020-05-16T02:49:07.657Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey,</p><p>I am back with another interesting topic which I wanted to explain about since the Corona lockdown.</p><p>Ok, before you judge my article based on the title. I will explain why I am comparing a strategy to stop the coronavirus spread to an architectural design pattern for microservices.</p><p>Let us first understand, what is a microservice?</p><p>In short, a microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimum of centralized management of these services, which may be written in different programming languages and use different data storage technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*MJWgwAba2cyrKyWY.png" /></figure><p>That’s all about the microservice architectural style.</p><p>Now, Why I took the term lockdown here is to explain the term called ‘Fault Tolerant’.</p><p><strong>Fault tolerance</strong> is the property that enables a system to continue operating properly in the event of the failure of (or one or more <strong>faults</strong> within) some of its components.</p><p>Currently, in our lives, the fault is ‘coronavirus’.</p><p>How did we try to become fault-tolerant and continued to function by being safe?</p><p>Answer: Lockdown. ( By not going outside and reducing the possibility of getting exposed to the <strong>fault </strong>which is coronavirus)</p><p>By not going outside, we are less prone to get infected and infect others, which is nothing but breaking the chain.</p><p>The chain here is creating a series of faults. Which is stopped by breaking the circuit/chain.</p><p>So the strategy here is to stop the exposure to the failure when you know there is a failure out there.</p><p>Let’s jump to the actual point of microservices design pattern which makes the microservice fault-tolerant and handle faults in a safe way.</p><p><strong>Scenario</strong>: Services sometimes collaborate when handling requests. When one service synchronously invokes another there is always the possibility that the other service is unavailable or is exhibiting such high latency it is essentially unusable. Precious resources such as threads might be consumed in the caller while waiting for the other service to respond. This might lead to resource exhaustion, which would make the calling service unable to handle other requests. The failure of one service can potentially cascade to other services throughout the application.</p><h3>Problem</h3><p>How to prevent a network or service failure from cascading to other services?</p><h3>Solution</h3><p>A service client should invoke a remote service via a proxy that functions in a similar fashion to an electrical circuit breaker. When the number of consecutive failures crosses a threshold, the circuit breaker trips, and for the duration of a timeout period all attempts to invoke the remote service will fail immediately. After the timeout expires the circuit breaker allows a limited number of test requests to pass through. If those requests succeed the circuit breaker resumes normal operation. Otherwise, if there is a failure the timeout period begins again.</p><p>Does this remind you of something?</p><p>Yes, Exactly.</p><p>Tadaaaaa !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/191/1*hsAEP1ZS69px-4GbgXPm-A.png" /><figcaption>I am the real circuit breaker.</figcaption></figure><p>A <strong>circuit breaker</strong> is an automatically operated electrical switch designed to protect an electrical <strong>circuit</strong> from damage caused by excess current, typically resulting from an overload or short <strong>circuit</strong>. Its basic function is to interrupt current flow after a fault is detected.</p><p>Yes, when it trips. Your appliances at home that are actually saved from a fault in the current.</p><p>In the same way, the circuit breaker design pattern in the microservices will make your microservice handle faults from other microservice calls and stop the cascading of failure to other components of the application.</p><p>Enabling circuit breaker and implementing such design is very very straightforward with all the opensource libraries we have.</p><p><strong>Hystrix</strong> by Netflix ( Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services, and 3rd party libraries, stop cascading failure, and enable resilience in complex distributed systems where failure is inevitable.)</p><p><a href="https://spring.io/guides/gs/circuit-breaker/">https://spring.io/guides/gs/circuit-breaker/</a></p><p><a href="https://dzone.com/articles/gentle-introduction-to-hystrix-hello-world">https://dzone.com/articles/gentle-introduction-to-hystrix-hello-world</a></p><p>The above articles will help you with how to use Hystrix in Spring Boot microservices.</p><p>If your microservices are containerized and orchestrated by Kubernetes. It’s even straight forward to make all the microservices fault tolerant by using Istio as part of your architecture.</p><p>Short Introduction to Istio.</p><h3>What is Istio? (<a href="https://istio.io/">https://istio.io/</a>)</h3><p>Cloud platforms provide a wealth of benefits for the organizations that use them. However, there’s no denying that adopting the cloud can put strains on DevOps teams. Developers must use microservices to architect for portability, meanwhile, operators are managing extremely large hybrid and multi-cloud deployments. Istio lets you connect, secure, control, and observe services.</p><p>At a high level, Istio helps reduce the complexity of these deployments and eases the strain on your development teams. It is a completely open-source service mesh that layers transparently onto existing distributed applications. It is also a platform, including APIs that let it integrate into any logging platform, or telemetry or policy system. Istio’s diverse feature set lets you successfully, and efficiently, run a distributed microservice architecture, and provides a uniform way to secure, connect, and monitor microservices.</p><p>This article explains in detail on how to configure Istio to handle faults and make the pods resilient in Kubernetes deployments.</p><p><a href="https://dzone.com/articles/resilient-microservices-with-istio-circuit-breaker">https://dzone.com/articles/resilient-microservices-with-istio-circuit-breaker</a></p><p>Okay !!! That all.</p><p>I hope you have understood, how the circuit breaker pattern plays a key role in handling faults and keeping us safe.</p><p>Lockdown is nothing but a circuit breaker which makes our society resilient from the dangerous fault ‘The coronavirus’.</p><p>Please break the chain by not going out when there is a fault outside. Be the circuit breaker.</p><p>Stay Home, Stay Safe.</p><p>Here are my other articles, which you might be interested in.</p><p><a href="https://medium.com/me/stories/public">https://medium.com/me/stories/public</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*bWTeh1GTXOPn43jdsQBRHg.png" /></figure><p>Please clap, if you have learned something new.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47cf56682597" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When to say ‘yes’ to NoSQL?]]></title>
            <link>https://medium.com/@vamsee.l.krishna/when-to-say-yes-to-nosql-c53276c3744e?source=rss-b60432c18263------2</link>
            <guid isPermaLink="false">https://medium.com/p/c53276c3744e</guid>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[availability]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[scaling]]></category>
            <dc:creator><![CDATA[Vamsee Lakkaraju]]></dc:creator>
            <pubDate>Sun, 15 Mar 2020 14:37:29 GMT</pubDate>
            <atom:updated>2020-03-15T14:37:29.077Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, I am back with another system design topic.</p><p>This time I will be explaining the most puzzling term ‘NoSQL’. At least for me, it was a confusing term after working for several years with the traditional SQL based relational databases like MySql, Oracle, and DB2.</p><p>Of course, After working with NoSQL databases in the past few years I have learned the importance of storing unstructured data and the advantages behind the design of NoSQL databases.</p><p>Let’s try to demystify NoSQL ( <strong>non-relational databases</strong> ).</p><p><strong>What is NoSQL?</strong></p><p><strong>NoSQL</strong>, which stands for “<strong>not only SQL</strong>,” is an alternative to traditional relational databases in which data is placed in tables and data schema is carefully designed before the database is built.</p><p>Now let’s look at the basics of relational databases first so that we clearly understand how the data is stored differently in non-relational databases.</p><p><strong>Relational Databases :</strong></p><ol><li><strong>What is the storage format in R-DBMS?</strong></li></ol><p>It’s all tabular format in relational databases. For every entity, you create a separate table and maintain the relationship between those tables using the concept of <strong>Key </strong>in <strong>R-DMBS </strong>( Example: Primary Key, Foreign Key …etc).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*jvu6toZeCzos2EMzC-1P-w.png" /><figcaption>Table in RDBMS</figcaption></figure><p>2. <strong>How do you operate on data in relational databases?</strong></p><p>To summarize we you use a language called SQL (<strong>Structural Query Language</strong>).</p><p>Example: <strong>SELECT * FROM STUDENT WHERE StuId = ‘1004’;</strong></p><p>Seeing from a side this language is extremely powerful. SQL is one of the most versatile and widely-used options available which makes it a safe choice, especially for great complex queries.</p><p>But from the other side SQL can be restrictive. SQL requires you to use predefined schemas to determine the structure of your data before you work with it. Also, all of your data must follow the same structure. This can require significant up-front preparation which means that a change in the structure would be both difficult and disruptive to your whole system.</p><p>3. <strong>How many servers make up a relational database?</strong></p><p>There are very high chances and mostly it is a single server that runs a relational database. When I say a single server I am not talking about the number of machines. What I meant is that the data is stored in a single place.</p><p><strong>Non-relational databases</strong>:</p><p>Now, Let’s try to find the answers to the same questions in the case of NoSQL or non-relational databases.</p><ol><li><strong>What is the storage format in NoSQL?</strong></li></ol><p>A NoSQL database has a dynamic schema for unstructured data. Data is stored in many ways which means it can be document-oriented, column-oriented, graph-based or organized as a KeyValue store. This flexibility means that documents can be created without having a defined structure first. Also, each document can have its own unique structure. The syntax varies from database to database, and you can add fields as you go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E6aCc0L7Ev3lXZNz.png" /></figure><p>Example: {</p><p>stuName: “John”,</p><p>stuId: 10001,</p><p>stuAge: 23,</p><p>stuSection: “C”</p><p>};</p><p>The above JSON can be stored as a document.</p><p>2. <strong>How do you operate on data in NoSQL?</strong></p><p>It is based on the type of NoSQL databases. For MongoDB, you need to select a collection from which you want to operate. Collections are nothing but similar to tables in relational databases.</p><p>For example :</p><pre>db.studentData.find( {} )</pre><pre>{ &quot;_id&quot; : ObjectId(&quot;5a9854915c8eb0d368732649&quot;),</pre><pre>stuName: “John”,</pre><pre>stuId: 10001,</pre><pre>stuAge: 23,</pre><pre>stuSection: “C”</pre><pre>};</pre><p>The above returns all the documents in the collection named ‘studentData’</p><p>In the case of Elastic Search, it is called an index. An <strong>index</strong> consists of one or more Documents, and a Document consists of one or more Fields. In database terminology, a Document corresponds to a table row, and a Field corresponds to a table column.</p><p>3<strong>. How many servers make up a NoSQL?</strong></p><p><strong>Multiple Servers</strong>: The database can run over multiple servers. Data is duplicated to foolproof the system in the case of hardware failure.</p><p><strong>Auto-sharding</strong>: This process distributes data across multiple physical partitions called shards. Due to sharding, NoSQL databases have an automatic load balancing feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/0*BBERtYW_5kPXIH9P.jpg" /></figure><p>Ok, till now we have learned the key differences. Now let’s try to understand when to say ‘<strong>yes’ </strong>NoSQL databases.</p><p>Ask yourself the following questions and if your answer is <strong>yes </strong>for all of them, you can consider the NoSQL database to be the best fit for your use case.</p><ol><li><strong>Is your schema dynamic?</strong></li></ol><p>A schema refers to the blueprint of a database i.e how the data is organized. The schema of an SQL database and a NoSQL database is markedly different.</p><p>If you want to add a new field to Employee data. In relational databases, you need to put an extra effort to modify the structure of the table add a new column and define the type of data that it holds.</p><p>Also, manage all the dependencies which are accessing the table, which might break on a new change.</p><p>In the case of NoSQL, All you do is add a new key and value into the document and upload it back.</p><p>This flexibility means that documents can be created without having a defined structure and so each document can have its own unique structure.</p><p>Thus, NoSQL can ultimately become larger and more powerful, making NoSQL databases the preferred choice for large or ever-changing data sets.</p><p>2.<strong> Is your data going to grow exponentially or quadratically?</strong></p><p>They say “<em>Necessity is the Mother of Invention!</em>” and that certainly turned out to be true in the case of NoSQL. The NoSQL databases for big data were specifically developed by the top internet companies such as Google, Yahoo, Amazon, etc. as the existing relational databases were not able to cope with the increasing data processing requirements.</p><p>NoSQL databases have a dynamic schema that is much better suited for big data as flexibility is an important requirement. Also, large amounts of analytical data can be stored in NoSQL databases for predictive analysis. An example of this is data from various social media sites such as Instagram, Twitter, Facebook, etc. NoSQL databases are<strong> horizontally scalable </strong>and can ultimately become larger and more powerful if required. All of this makes NoSQL databases the preferred choice for big data applications.</p><p>I uttered a statement ‘<strong>NoSQL databases are horizontally scalable</strong>’.</p><p><strong>Horizontal Scaling </strong>vs<strong> Vertical Scaling</strong>.</p><p><strong>What does scaling something mean?</strong></p><p><strong>‘Scale</strong>’ is increasingly being used as shorthand for ‘<strong>scale-up</strong>’ (“to grow or expand in a proportional and usually profitable way”) and as a noun that <strong>means</strong> “proportional growth.</p><p>A simple analogy to understand the difference.</p><p>Increasing more number of floors in a building is <strong>Vertical Scaling</strong> (<strong>scaling-up</strong>).</p><p>Increasing more number of buildings is <strong>Horizontal Scaling</strong> ( <strong>scaling-out </strong>).</p><p>Do you see the limitations in Vertical Scaling?</p><p>You’ll end up with a leaning tower of Pisa.</p><p>Basically increasing the capacity of a single server is Vertical Scaling. Adding more servers is Horizontal Scaling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/0*IQrQIt9i3ldRBg6X" /></figure><p>3.<strong> Does your use case demands</strong> <strong>ACID properties (Atomicity, Consistency, Isolation, and Durability)</strong></p><p>or</p><p><strong>Consistency, Availability and Partition tolerance)?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/0*kXQPfk_p8lEbqUCk.png" /></figure><p>SQL databases follow ACID properties whereas the NoSQL database follows the Brewers CAP theorem.</p><p>Both SQL Databases and NoSQL have their own powerful advantages and running the world very efficiently.</p><p>Some of the SQL and NoSQL databases in use around are.</p><p><strong>Relational Databases</strong></p><ol><li>Oracle</li><li>MySQL</li><li>Microsoft SQL Server</li><li>IBM DB2</li><li>Amazon Aurora</li><li>PostgreSQL</li><li>MariaDB</li></ol><p><strong>Non-Relational Databases</strong></p><ol><li>MongoDB</li><li>REDIS</li><li>Amazon DynamoDB</li><li>Hbase</li><li>Cassandra</li><li>CouchDB</li><li>Oracle NoSQL DB</li></ol><p>I hope this article helped you in understanding the basics of NoSQL databases and provided more clarity about when to go for NoSQL.</p><p>If you liked this article please give a clap and share.</p><p>Also, look at my other articles on <a href="https://medium.com/@vamsee.l.krishna/system-design-proxy-servers-for-the-dummies-eab95a6cab82"><strong>Proxy Servers</strong></a>, <a href="https://medium.com/@vamsee.l.krishna/load-balancers-101-e652057f81b"><strong>Load Balancers</strong></a>, and <a href="https://medium.com/@vamsee.l.krishna/what-are-cloud-native-applications-5f58516c9098"><strong>Cloud-native applications</strong></a>.</p><p>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c53276c3744e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Load Balancers — 101]]></title>
            <link>https://medium.com/@vamsee.l.krishna/load-balancers-101-e652057f81b?source=rss-b60432c18263------2</link>
            <guid isPermaLink="false">https://medium.com/p/e652057f81b</guid>
            <category><![CDATA[load-balancing]]></category>
            <category><![CDATA[availability]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[load-balancer]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <dc:creator><![CDATA[Vamsee Lakkaraju]]></dc:creator>
            <pubDate>Sat, 07 Mar 2020 05:09:51 GMT</pubDate>
            <atom:updated>2020-03-07T05:30:58.261Z</atom:updated>
            <content:encoded><![CDATA[<h3>Load Balancers — 101</h3><p>Hello, I am back with another topic in the context of System Design.</p><p>Don’t think too much about why there is 101 in the name of this blog. <strong>101</strong> means an introductory lesson.</p><p>In the previous blog, we have discussed <a href="https://medium.com/@vamsee.l.krishna/system-design-proxy-servers-for-the-dummies-eab95a6cab82"><strong>Proxy Servers</strong></a> and their Use cases. If you understand Proxy Servers you can co-relate with load balancers because load balancers are nothing but reverse proxies at the base.</p><p>In this blog, we will discuss Load Balancers and their importance while designing a system.</p><p>Load Balancers are life saviors when it comes to complex architectures of web applications or web services.</p><p><strong>What is a load balancer?</strong></p><p>A load balancer is a device that acts as a reverse proxy and distributes network or application traffic across several servers. Load balancers are used to increase capacity (concurrent users) and reliability of applications. They improve the overall performance of applications by decreasing the burden on servers associated with managing and maintaining application and network sessions, as well as by performing application-specific tasks.</p><p><strong>What’s a load here?</strong></p><p>Modern high‑traffic websites must serve hundreds of thousands, if not millions, of concurrent requests from users or clients and return the correct text, images, video, or application data, all in a fast and reliable manner.</p><p><strong>So this is a load on the server. Do you think a single server can handle this load?</strong></p><p>NO, To cost‑effectively scale to meet these high volumes, modern computing best practice generally requires adding more servers.</p><p>A <strong>load balancer</strong> acts as the “traffic cop” sitting in front of your servers and routing client requests across all servers capable of fulfilling those requests in a manner that maximizes speed and capacity utilization and ensures that no one server is overworked, which could degrade performance.</p><p>If a single server goes down, the load balancer redirects traffic to the remaining online servers. When a new server is added to the server group, the load balancer automatically starts to send requests to it.</p><p>Imagine the number of requests coming into amazon servers on a Black Friday sale or Christmas sale.</p><p><strong>How many times have you seen amazon or Facebook failing to load?</strong></p><p><strong>How many times have you seen Google Search not responding?</strong></p><p>Load balancing plays a crucial role in achieving high availability and resilience for your applications.</p><p><strong>What are the functions that a load balancer performs?</strong></p><p>In this manner, a load balancer performs the following functions:</p><ul><li>Distributes client requests or network load efficiently across multiple servers</li><li>Ensures high availability and reliability by sending requests only to online servers</li><li>Provides the flexibility to add or subtract servers as demand dictates</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/0*8bVocpjKTuB6p0dL.png" /></figure><p><strong>Load balancers are generally grouped into two categories:</strong></p><p><strong>Layer 4</strong> and <strong>Layer 7</strong></p><ol><li>Layer 4 load balancers act upon data found in network and transport layer protocols (IP, TCP, FTP, UDP).</li><li>Layer 7 load balancers distribute requests based upon data found in application layer protocols such as HTTP.</li></ol><p>The layers we are talking about here are from the OSI model.</p><p><strong>What’s OSI?</strong></p><p><strong>OSI</strong>: The Open Systems Interconnection <strong>model</strong> (<strong>OSI model</strong>) is a conceptual <strong>model</strong> that characterizes and standardizes the communication functions of a telecommunication or computing system without regard to its underlying internal structure and technology.</p><p><strong>Have you ever wondered how your PC is talking to a server that is deployed in another continent and getting the data for you?</strong></p><p>Open Systems Interconnection model is the core concept behind the communication between the two computers</p><p>Let’s look at it at a high level.</p><p><strong>It consists of 7 layers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/0*aHZcSV9OvdbPMeER.jpg" /><figcaption>The 7 layers of OSI</figcaption></figure><p>Let us not worry about how these layers work internally. To understand how all 7 layers come into the picture. Let’s assume we want to access youtube.com</p><p>When you enter https://<a href="http://www.youtube.com/">www.youtube.com</a> in the address bar of your browser. The request is processed by layer 7 ( <strong>Application Layer</strong> ) which works on HTTP protocol then your request is transformed and passed to Layer 6 (<strong> Presentation Layer</strong> ) and so on.</p><p>Every Layer processes the request and passes it to the below layer. Each layer has it’s own functionality.</p><p>For example, Layer 1 ( Physical Layer ). It is responsible for sending bits from one computer to another.</p><p>My favorite video which explains OSI in detail.</p><p><a href="https://www.youtube.com/watch?v=vv4y_uOneC0"><strong>https://www.youtube.com/watch?v=vv4y_uOneC0</strong></a></p><p>Now, let us go back to the types of Load Balancers.</p><ol><li><strong>Network Load balancers</strong>: load balancers act upon data found in network and transport layer protocols (IP, TCP, FTP, UDP). They perform at <strong>Layer 4</strong> ( <strong>Transport Layer</strong> ).</li><li><strong>Application Load Balancers</strong>: load balancers distribute requests based upon data found in application layer protocols such as HTTP. They perform at <strong>Layer 7</strong> ( <strong>Application Layer</strong> ).</li></ol><p>Layer 7 load balancing is more CPU‑intensive than packet‑based Layer 4 load balancing, but rarely causes degraded performance on a modern server. Layer 7 load balancing enables the load balancer to make smarter load‑balancing decisions and to apply optimizations and changes to the content.</p><h3>Hardware vs. Software Load Balancing</h3><p>Load balancers typically come in two flavors: hardware‑based and software‑based. Vendors of hardware‑based solutions load proprietary software onto the machine they provide, which often uses specialized processors. To cope with increasing traffic on your website, you have to buy more or bigger machines from the vendor. Software solutions generally run on commodity hardware, making them less expensive and more flexible. You can install the software on the hardware of your choice or in cloud environments like AWS EC2.</p><p>Many fast‑changing applications require new servers to be added or taken down constantly. This is common in environments such as the <a href="https://www.nginx.com/partners/amazon-web-services/">Amazon Web Services</a> (AWS) Elastic Compute Cloud (EC2), which enables users to pay only for the computing capacity they use, while at the same time ensuring that capacity scales up in response traffic spikes. In such environments, it greatly helps if the load balancer can dynamically add or remove servers from the group without interrupting existing connections.</p><h3>Load Balancing Algorithms</h3><p>Different load balancing algorithms provide different benefits; the choice of load balancing method depends on your needs:</p><ul><li><strong>Round Robin</strong> — Requests are distributed across the group of servers sequentially.</li><li><strong>Least Connections</strong> — A new request is sent to the server with the fewest current connections to clients. The relative computing capacity of each server is factored into determining which one has the least connections.</li><li><strong>Least Time</strong> — Sends requests to the server selected by a formula that combines the<br>fastest response time and fewest active connections.</li><li><strong>Hash</strong> — Distributes requests based on a key you define, such as the client IP address or the request URL.</li><li><strong>IP Hash</strong> — The IP address of the client is used to determine which server receives the request.</li><li><strong>Random with Two Choices</strong> — Picks two servers at random and sends the request to the one that is selected by then applying the Least Connections algorithm.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/0*xXmuXyO1DzK-ttRn.png" /></figure><h3>Benefits of Load Balancing</h3><ul><li>Reduced Downtime</li><li>Scalable</li><li>Redundancy</li><li>Flexibility</li><li>Efficiency</li><li>Global Server Load Balancing</li></ul><p>Load balancers ensure reliability and availability by monitoring the “health” of applications and only sending requests to servers and applications that can respond promptly.</p><p>All the major cloud providers.</p><p>AWS, Azure, IBM Cloud, Ali Baba Cloud provide Load Balancing as a service to configure and customize settings to handle requests to the servers running on the cloud.</p><p>Other major companies that offer Load Balancing services are NGINX, F5 networks.</p><p>In this world of cloud computing, microservices, and containers. Load balancing techniques are key to achieve availability and resilience.</p><p>I hope this blog helped you in understanding the basics of load balancing, which will help you when you are designing your next system.</p><p>Thank you,</p><p>-Vamsee</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e652057f81b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design : Proxy servers for the Dummies]]></title>
            <link>https://medium.com/@vamsee.l.krishna/system-design-proxy-servers-for-the-dummies-eab95a6cab82?source=rss-b60432c18263------2</link>
            <guid isPermaLink="false">https://medium.com/p/eab95a6cab82</guid>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[proxy-server]]></category>
            <dc:creator><![CDATA[Vamsee Lakkaraju]]></dc:creator>
            <pubDate>Wed, 26 Feb 2020 17:48:21 GMT</pubDate>
            <atom:updated>2020-03-02T14:17:59.567Z</atom:updated>
            <content:encoded><![CDATA[<h3>Proxy servers for <strong><em>Dummies</em></strong></h3><p>Book definition: A <strong>proxy server</strong>, also known as a “<strong>proxy</strong>” or “application-level gateway”, is a computer that acts as a gateway between a local network (for example, all the computers at one company or in one building) and a larger-scale network such as the internet. <strong>Proxy servers</strong> provide increased performance and security.</p><p>To understand why this technique or solution is called a ‘Proxy’. We need to understand the meaning of the word ‘Proxy’ from the dictionary.</p><p>Now pick up your phone and yell at it ‘Hey Siri/Google !! What’s the meaning of a Proxy ?’ (Free tip: Yes, you need to use the voice assistants to be more productive).</p><p><strong>proxy</strong></p><p>/ˈprɒksi/</p><p><em>noun</em></p><ol><li><strong>the authority to represent someone else.</strong></li></ol><p>In the context of System Design, this means a server named ‘proxy server’ which represents the actual server.</p><p>There are two types of proxies as you might have heard.</p><ol><li>Forward Proxy (Note when someone says the only <strong>proxy </strong>that means they are talking about Forward Proxy).</li><li>Reverse Proxy</li></ol><p>Let’s try to understand them in detail</p><p><strong>Forward Proxy</strong>: Just to put things in the simplest form. A forward proxy is just another server which acts as a broker between Client A and Server B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*hdIcLTn_yoyYUBQbkUy1pA.png" /><figcaption>I know the diagram is not so appealing but conveys the message.</figcaption></figure><p>I know the diagram is not so appealing but conveys the message.</p><p>Here in the above picture we only have one client (A). It can be multiple clients too, who wants to talk to the Server B. So, multiple clients who want to make an interaction with Server B can pass through the proxy and proxy server forwards the requests to Server B then returns the response from Server B to the requested client ( A or B or C … ).</p><p>In practice, you can think that the proxy server here is blinding the vision of <strong>Server B</strong>. The Server B is only seeing the proxy server it doesn’t know anything else. Because it is receiving any request from the proxy server.</p><p>So you can consider a forward proxy as a more of the client-side beneficiary technique.</p><p>What do we achieve by being a broker between the clients and a server?</p><p>You can mask who the client is and tell the server that all requests are your requests from the proxy server.</p><p>Why do you want to do that?</p><p>A very familiar example of a forward proxy in our daily life is a VPN server. I hope you know what is a VPN(Virtual Private Network).</p><p>Why do you connect to a VPN?</p><p>That’s because you are not allowed to connect to the servers directly from an unsecured/public network.</p><p>Now, All of a sudden how does your request become secure if you connect to a VPN?</p><p>Yes, your guess is right. Here the VPN server is acting as a Forward proxy which is masking your identity and forwarding the requests to the actual server as its own and that’s why the actual server is responding to your requests.</p><p>Here Client can access restricted servers otherwise not supposed to access because the forward proxy( VPN ) might hide who the actual client is.</p><p>So this is how you can access websites unavailable in your country or restricted by your organization using a forward proxy.</p><p>That’s Forward Proxies ( You can find multiple use cases on the internet).</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Let’s look at <strong>Reverse Proxies</strong></p><p>Reverse proxies are a little bit trickier.</p><p>Forward proxies act on behalf of clients in an interaction between the client and a server.</p><p>Reverse proxies act on behalf of a server, in an interaction between the client and a server.</p><p>If a client wants to send a request to the server and if there is a reverse proxy configured correctly then the request goes to the reverse proxy and it forwards the requests to the actual server.</p><p>I know it sounds similar to a forward proxy but here in the case of reverse proxy, the client doesn’t know that there is a reverse proxy.</p><p>The client knows that there is only one entity on the other side. But it is not aware that there is a reverse proxy that is forwarding the requests to the servers.</p><p>When you enter an address in your browser(client) the request goes to the DNS server to resolve the address you have entered and that resolved address is going to be a reverse proxy address that forwards the requests to the actual server.</p><p>So this is exactly the opposite of forwarding proxy</p><ol><li>In reverse proxy, the client is not aware of the actual server.</li><li>In forward proxy, the server is not aware of who the clients are.</li></ol><p>Reverse proxies are a lot useful and they do a lot. When you are designing a System especially complex systems, reverse proxies are a tool that fits in.</p><p>For example, you want to filter out all the requests that you want to ignore or your system doesn’t want to deal with such requests. You can filter out all these requests using reverse proxy configuration.</p><p>The famous use case is handle load on servers where you want to distribute requests to multiple servers. You can use reverse proxy configuration to do that.</p><p>There are more industry use cases for reverse proxies you can search in the internet.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Now, Let’s look at a few of the servers which provide proxy setup.</p><ol><li>Apache HTTP server</li><li>NGINX</li></ol><p>and more …</p><p>Let’s do some hands-on</p><p>how to set up a proxy with a simple NodeJs server in your PC?</p><p>Prerequisites</p><ol><li>NGINX server ( Download link for windows <a href="http://nginx.org/en/download.html">http://nginx.org/en/download.html</a> and please extract the downloaded zip).</li><li>Expecting NodeJs is already installed.</li></ol><p>Let’s create a sample NodeJs application using ExpressJs which acts a server for us now, using the following steps:</p><ol><li>Create a new folder for the new project.</li><li>execute the npm init command</li><li>now install expressjs dependency using the command ‘npm install express’</li><li>create an index.js file</li></ol><p>Copy the below content into the index.js file</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>const express = require(“express”);</p><p>const app = express();</p><p>app.get(‘/hello’, (req,res) =&gt; {</p><p>console.log(“headers ::: “, req.headers);</p><p>res.send(“Hello. \n”);</p><p>})</p><p>app.listen(3000, () =&gt; {console.log(“Listening on port 3000.”)})</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>From the above code, we created an expressJs server listening on port 3000 and prints the headers of the request.</p><p>If you hit the URL localhost:3000/hello you must see a response ‘Hello’ in your browser.</p><p>Now let’s configure the proxy</p><p>Open the file ‘nginx.conf’ file under the extracted nginx/conf/ folder</p><p>Add the below content in the file</p><p>server {</p><p>listen 8081;</p><p>server_name localhost;</p><p>location / {</p><p>proxy_set_header from-nginx-as-reverseproxy true;</p><p>proxy_pass <a href="http://localhost:3000/">http://localhost:3000</a>;</p><p>}</p><p>Here we are telling nginx to listen on 8081 and act as a proxy server to interrupt the requests and forward all of them to the nodejs server running on localhost:3000.</p><p>Let’s start testing</p><p>First a direct hit to NodeJs server using the curl command to check the origin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*PWyyYrNKu3bqtUP2xEipIQ.png" /><figcaption>Curl command to make a GET request directly on 3000 port</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*y98Omf9mzY_7bMLon_Gpew.png" /><figcaption>Headers for the above executed curl command.</figcaption></figure><p>Now let us try the same curl command with port 8081 ( 8081 is the NGINX port which is acting as a proxy for us now )<br>Note: Please make sure you start the NGINX server using the command ‘start nginx’ from the extracted nginx/ folder.<br>After nginx is started, lets hit it using the curl command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*ZABwUZluKIaBSXGVg8pwmQ.png" /><figcaption>Curl command hitting Nginx port 8081</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*knUI2sUZk97HY1HpcQfuig.png" /><figcaption>Headers printed for the above curl command</figcaption></figure><p>Curl command hitting Nginx port 8081.</p><p>Headers printed for the above curl command in the above screenshot.</p><p>Here we are exposing the Nginx server as the actual server.</p><p>As you can see the request to localhost:8081/hello received by NGINX server is forwarded to the actual express server.</p><p>Also, you can see the headers displaying the origin of the request as NGINX proxy server.<br> — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>Thank you very much for your attempt of reading through this small attempt of mine to share the knowledge.</p><p>Disclaimer: I am trying to improve my writing skills and English.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eab95a6cab82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are cloud native applications ?]]></title>
            <link>https://medium.com/@vamsee.l.krishna/what-are-cloud-native-applications-5f58516c9098?source=rss-b60432c18263------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f58516c9098</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-native]]></category>
            <dc:creator><![CDATA[Vamsee Lakkaraju]]></dc:creator>
            <pubDate>Sun, 20 Oct 2019 07:55:20 GMT</pubDate>
            <atom:updated>2019-10-20T07:55:20.500Z</atom:updated>
            <content:encoded><![CDATA[<h3>What are cloud native applications ?</h3><p>Cloud-native is an approach to building and running applications that exploits the advantages of the cloud computing delivery model. Cloud-native is about how applications are created and deployed, not where. While today public cloud impacts the thinking about infrastructure investment for virtually every industry, a cloud-like delivery model isn’t exclusive to public environments. It’s appropriate for both public and private clouds. Most important is the ability to offer nearly limitless computing power, on-demand, along with modern data and application services for developers. When companies build and operate applications in a cloud-native fashion, they bring new ideas to market faster and respond sooner to customer demands.</p><p>Organizations require a platform for building and operating cloud-native applications and services that automates and integrates the concepts of DevOps, continuous delivery, microservices, and containers.</p><p>Let us see the major differences between a Cloud Native Application vs Traditional Enterprise Application.</p><p><strong>Predictability</strong></p><p><strong>Cloud Native</strong> : Cloud-native applications conform to a framework or “contract” designed to maximize resilience through predictable behaviors. The highly automated, container-driven infrastructure used in cloud platforms drives the way software is written. A good example of such a “contract” is illustrated by the 12 principles first documented as the 12-factor app.</p><p><strong>Traditional </strong>: Traditional applications can’t realize all of the benefits of running on a cloud-native platform due to the unique way each one is architected or developed. This type of application often takes longer to build, is released in big batches, can only scale gradually, and assumes high availability of dependent services.</p><p><strong>Operating System </strong>:</p><p><strong>Cloud Native: </strong>A cloud-native application architecture lets developers use a platform as a means for abstracting away from underlying infrastructure dependencies. Instead of configuring, patching, and maintaining operating systems, teams focus on their software. The most efficient means of abstraction is a formalized platform, for example, Pivotal Platform which is ideal for operating on cloud-based infrastructure such as Google Cloud Platform (GCP), Microsoft Azure, or Amazon Web Services (AWS).</p><p><strong>Traditional</strong>: Traditional application architecture allows developers to build close dependencies between the application and underlying OS, hardware, storage, and backing services. These dependencies make migrating and scaling the application across new infrastructure complex and risky, working against the cloud model.</p><p><strong>Delivery / Development </strong>:</p><p><strong>Cloud Native</strong>:</p><p>IT teams make individual software updates available for release as soon as they are ready. Organizations that release software rapidly get a tighter feedback loop and can respond more effectively to customer needs. Continuous delivery works best with other related approaches including test-driven development and continuous integration.</p><p><strong>Traditional</strong> : IT teams release software periodically, typically weeks or months apart, when code has been built into a release despite the fact that many of the components of the release are ready earlier and have no dependency other than the artificial release vehicle. Features that customers want or need are delayed and the business misses opportunities to compete, win customers, and grow revenue.</p><p><strong>Dependency / Coupling </strong>:</p><p><strong>Cloud Native :</strong></p><p>IT teams make individual software updates available for release as soon as they are ready. Organizations that release software rapidly get a tighter feedback loop and can respond more effectively to customer needs. Continuous delivery works best with other related approaches including test-driven development and continuous integration.</p><p><strong>Traditional:</strong></p><p>IT teams release software periodically, typically weeks or months apart, when code has been built into a release despite the fact that many of the components of the release are ready earlier and have no dependency other than the artificial release vehicle. Features that customers want or need are delayed and the business misses opportunities to compete, win customers, and grow revenue.</p><p><strong>Scalability :</strong></p><p><strong>Cloud Native:</strong></p><p>Infrastructure automation at scale eliminates downtime due to human error. Computer automation faces no such challenge, consistently applying the same set of rules across any size of deployment. Cloud-native also goes beyond the ad-hoc automation built on top of traditional virtualization-oriented orchestration. A fully cloud-native architecture is about automating systems, not servers.</p><p><strong>Traditional</strong>:</p><p>Manual infrastructure includes human operators that manually craft and manage server, network, and storage configurations. At scale, operators are slow to correctly diagnose issues and easily fail to correctly implement at scale due to the level of complexity. Hand-crafted automation recipes have the potential to hard-code human errors into the infrastructure.</p><p><strong>Recovery:</strong></p><p><strong>Cloud Native:</strong> The container runtime and orchestrator provides a dynamic, high-density virtualization overlay on top of a VM, ideally matched to hosting microservices. Orchestration dynamically manages placement of containers across a cluster of VMs to provide elastic scaling and recovery/restart in the event of app or infrastructure failure.</p><p><strong>Traditional:</strong></p><p>VM-based infrastructure is a slow and inefficient foundation for microservice-based applications because individual VMs are slow to startup/shutdown and come with large overhead even before deploying application code to them.</p><p>In the next article. Let’s talk on each of the 12 Factors contract which ensures the applications are Cloud Native when followed.</p><p>Byee !!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f58516c9098" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>