Resources:
6 Things You Need to Know About Cloud Native Applications
CONTENTS
Are you just starting on your digital transformation journey and still wondering what cloud native is, and why you need it? This article discusses the key takeaways to know about the term cloud native. It also describes how you can take advantage of cloud native capabilities to speed up your development team’s productivity and increase your company’s innovation output.
#1. What is Cloud Native?
Depending on who you ask, cloud native can mean a lot of different things. Ten years ago the term cloud native was coined by companies like Netflix who leveraged cloud technologies, going from a mail order company to one of the world’s largest consumer on-demand content delivery networks. Netflix pioneered what we’ve come to call cloud native, reinventing, transforming and scaling how we all want to be doing software development.
With the phenomenal success of Netflix and its ability to deliver more features faster to their customers, companies want to know how cloud native technology helped Netflix to gain such a huge competitive advantage.
So, why is cloud native so important?
At its core, the term cloud native is a way to increase the velocity of your business and a method to structure your teams to take advantage of the automation and scalability that cloud native technologies like Kubernetes offer.
#2. Cloud Native Development and Architecture: What Does it Look Like?
Monolith vs. microservices architectures
After a disastrous release with a misplaced semicolon, Adrian Cockcroft, former Netflix Cloud Architect shifted their entire architecture from a monolith to microservices.
The problem with a monolithic architecture is that when new features are developed and tested, it took a lot of effort to deploy those changes to production:
- Multiple teams have to coordinate their code changes.
- Deploying several features all at once required a lot of upfront integration and functional testing.
- Development teams were restricted to using one or two languages.
The shift to microservices empowered Netflix developers to deliver new features much faster to their customers.
Microservices result in a loosely coupled service-oriented architecture with bounded contexts. This means that if every service has to be updated simultaneously, it’s not ‘loosely coupled’. Along the same lines, if you have to know too much about the surrounding services then you don’t have ‘bounded contexts’. See also Martin Fowler and James Lewis's original blog that discusses the definition: “Microservices: a definition of this new architectural term”.
Microservices, Docker & Kubernetes
Docker containers lend themselves very well to microservices. By running your microservices in separate containers, they can all be deployed independently and even in different languages. Containerization removes the risk of any friction or conflict between languages, libraries or frameworks. Because containers are portable and can operate in isolation from one another, it is very simple to create a microservices architecture with containers and move them to another environment if you need to.
Container Orchestration
Once you have a large number of microservices all running in Docker containers, you need a way to manage or orchestrate those containers so that they make sense as an application. This is where you need an orchestrator (cluster manager) like Kubernetes, Docker Swarm, or others.
In the past, you had to make an informed choice on which orchestrator to use, but now the orchestration wars are won and Google’s Kubernetes came out on top. All of the major cloud providers support Kubernetes with easy-to-install solutions.
The gist of this discussion is that for most companies to be competitive, they have to architect their applications around microservices and run them in a Kubernetes cluster – although some companies do run Docker containers on other orchestrators as well.
Automate Deployments
With applications running in containers and orchestrated in Kubernetes, the next step is to automate deployments. A continuously automated flow of features is what distinguishes DevOps from other software development philosophies and practices like the waterfall model where development follows an orderly sequence of stages.
Continuous doesn’t mean that engineers are working 24/7 updating code, or that they are deploying updates every time a line of code is changed. Continuous in this sense, refers to software changes and new features rolling out on a regular basis through an automated continuous integration and continuous deployment pipeline (CICD). Find more DevOps strategies for building CICD pipelines in the eBook: The Practical Guide to GitOps.
Monitoring
With containers and microservices, monitoring solutions have to manage more services and servers than ever before. Not only are there more objects to manage, but cloud native applications also generate a lot of extra data that needs to be kept track of.
Collecting data from an environment composed of so many moving parts is complex. Prometheus is the best modern solution for these dynamic cloud environments. It was built specifically to monitor applications and microservices running in containers at scale and is native to containerized environments.
Read more about Kubernetes monitoring with Prometheus.
Cultural Changes
The success of implementing cloud native technologies and DevOps best practices into your organization depends a lot on your existing company culture. Internal teams must not only learn to adopt cross-functional methods that ensure the software is iterated on with a continuous cadence and complements the business goals of the company. Making the actual switch to cloud native may be the simplest part of your journey. Getting those changes to stick and propagating them throughout your organization could well be the most difficult part of the process.
Discover the five steps to production readiness in our whitepaper, Production Ready Kubernetes Cluster Guide, including the cultural changes you need to make on your team, and the most important requirements to consider when using Kubernetes in production.
#3. What are the Benefits of a Cloud Native Approach?
The top benefits for enterprises adopting cloud native can be summarized as follows:
Increased Agility and Productivity
With GitOps and DevOps best practices, developers use fully automated continuous integration continuous delivery pipelines (CICD) to rapidly test and push new code to production. Enterprises can bring new ideas to production within minutes or hours instead of weeks and months, resulting in a greater rate of innovation and competitiveness.
Improved Scalability and Reliability
On-demand elastic scaling or cloud bursting offers near limitless scaling of computing, storage and other resources. Enterprises can take advantage of built-in scalability to match any demand profile without the need for extra infrastructure planning or provisioning.
GitOps and DevOps best practices provide developers with a low-risk method of reverting changes, clearing the way for innovation. With the ability to cleanly roll back, recover from disaster in the case of a cluster meltdown is also faster. Higher uptime guarantees businesses are more competitive and can offer more stringent service level agreements and a better quality of service.
Lower Costs
Because cloud native technology enables pay-per-use models, the economies of scale is passed through and shifts spending from CAPEX to OPEX. This lower barrier to entry for upfront CAPEX spending allows for more IT resources on development rather than on infrastructure. In addition, overall TCO/hosting costs will also be lower.
Attract and retain top talent
Working with cloud native and other cutting-edge open source technology that lets you move faster and spend less time on infrastructure is appealing to developers. Hiring higher quality developers results in better products, and therefore more innovation for your business. An added bonus is that open source contributions can help establish your reputation as a technology leader.
Reduced vendor lock-in
Cloud native gives you a choice of tools without being stuck with legacy offerings. By taking advantage of multi-cloud compatible tooling wherever possible, cloud native applications are more portable and beyond the reach of vendor predatory pricing. You can easily migrate to alternate public clouds with better product offerings or where compliance requires multi-cloud infrastructure.
#4. Cloud Native Technologies in Practice
Invisible Infrastructure Means Portability and Speed
Most companies want to migrate applications to the cloud, but they may also want to keep some of their applications or their data behind a firewall and on-premise. Some may want the ability to change cloud providers to take advantage of better pricing models or they may need to observe compliance regulations and span multiple cloud providers. For applications to be this easily portable, enterprises demand that their systems just work, so they can get back to building business value by releasing new applications and features instead of investing in infrastructure.
“We need to stop writing infrastructure… One day there will be cohorts of developers coming through that don’t write infrastructure code anymore. Just like probably not many of you build computers.” - Alexis Richardson, CEO, Weaveworks
Enterprises making the digital transformation and who need to move their business forward to be competitive are interested in creating what we call, an invisible infrastructure. To move faster, you need a way to simplify infrastructure changes so that developers can focus on innovation and on building new features without the overhead. The ultimate goal is for developers to never write infrastructure code and instead focus on features. When infrastructure friction is reduced, businesses are more agile and competitive.
So, when we talk about applications being cloud native, what we’re fundamentally talking about is scalability, portability, and development speed.
Increased Velocity Means More Agile Businesses
From a business point of view, the cloud native payoff is apps that are always on, highly available that can be updated by your development team with zero downtime. Cloud native applications allow your development teams to address customer requests more or less as they come in, instead of waiting weeks. Increased velocity and agility are the main characteristics and benefits of this new breed of modern applications, architectures and practices.
Cloud native Development Teams Can Practice Continuous Delivery
Companies that adopt cloud native have increased their mean time to deployment from 1 or 2 deployments a week to more than 150 deployments a day. If your site goes down, you can fix it in five minutes with cloud native rather than keep your customers offline.
The ability to move fast is one of the main differences between those who change and update their applications continuously versus those who struggle to make small changes to their website. You can quantify continuous delivery, and that’s one reason people get so excited about unicorn companies such as Airbnb and Netflix, who have already figured this out.
Cloud Native is something that most companies are aware of and recognize as important. Of course, the tricky part is democratizing and distributing that knowledge. How do we make this technology available to everybody, and not just to the elite technology companies in Silicon Valley?
#5. CNCF’s Role
The Cloud Native Computing Foundation (CNCF) was created in 2015 and is the vendor-neutral home of Kubernetes -- an open source system for automating deployments as well as scaling and managing applications. Kubernetes was originally created by Google to run their search engine, but today it has contributions from Amazon, Microsoft and Cisco, as well as more than 300 other companies.
With Kubernetes, containers that make up an application are grouped into logical units for easy management and discovery. It scales with your app without you needing to add more resources to your Ops team.
In addition to this, automatic deployments, as well as multiple simultaneous deployments, can also be safely carried out. This new way of doing releases and product updates is for most people a very new concept. And all of these ideas are part of what’s been referred to as the cloud native revolution.
The main mission of the CNCF is to build sustainable ecosystems and a community around a constellation of high-quality projects that support and manage containers for cloud native applications built on Kubernetes.
In addition to hosting and supporting new cloud native projects, the CNCF provides training, a Technical Oversight Board, a Governing Board, a community infrastructure lab, and several certification programs.
A Common Cloud Platform
In order to introduce digital solutions into different business environments, developers will need to stop worrying about the underlying infrastructure and focus instead on the applications and other features that add direct value to the bottom line. This leads us to an important goal of the CNCF which is building a common open cloud native platform and toolkit that enterprises can easily take and adapt within their organization.
For this common platform to take shape we need the following:
- Physical infrastructure that provides scalability and that also allows your app to run anywhere, either in a public cloud or on-premise or both.
- A common cloud technology platform with a pluggable set of tools for this next generation of applications. A platform with pluggable tools that make it easy to run cloud native applications in the cloud.
- The adoption and development of many modern cloud native architectures for new opportunities in data analysis, machine learning, finance, drones, cars, internet of things, medicine, communications and other business verticals.
Off-The-Shelf Cloud Native Components
By taking advantage of the many incubating projects available in the CNCF, you can easily set up the infrastructure and lay the groundwork for your teams to innovate. Before cloud native technology, adding a new business component to your monolithic platform meant hiring an army of consultants, and even then, it took nine months to implement.
But now a lot of time is saved by using the CNCF’s landscape of community-supported components. This allows you to focus on the task at hand which could be introducing machine learning or other data science methods into your business to drive innovation.
#6. How Does Cloud Native Relate to DevOps
DevOps and Continuous Delivery
Cloud native has led us to a whole new set of methods and philosophies on how to do software development, otherwise known as the cultural shift that is DevOps. With a new set of tools, teams will naturally figure out new ways of using them. This often occurs with new generations of developers who are coming with a fresh set of eyes and an untainted spin on an old set of problems. In particular, cloud native technologies have led to the implementation of new continuous delivery tools and methods that help you speed up development.
Velocity is the Key to Continuous Delivery
Kubernetes platforms that provide continuous delivery components (among others) enable speed, and they also lower the barriers to entry. With continuous delivery in place, your team can deploy changes throughout the day, instead of quarterly or monthly. Continuous delivery also provides a mechanism to roll back changes whenever they need to. With a continuous delivery pipeline in place, development can make changes right from source code to production, but even more importantly, they also have the ability to revert and back out of the change just as easily.
The ability to continuously deploy changes means your team can deploy tests to subsets of customers or roll out specific customer requests more easily. And because a rollback is only a click away, developers can recover from failure much more quickly.
This is very different from software development 15 years ago when it took a monumental coordination effort to deploy a single change. With cloud native technology like Kubernetes, and other supporting projects, deploying changes on a continuous basis is trivial because this technology makes it possible.
“Container-based infrastructures and microservices offer a frontier for software deployment, creating significant potential for enterprises looking to deliver massively scalable, flexible, and distributed applications. Recently they have started to standardize around Kubernetes as a single target architecture, creating opportunities to align DevOps practices around a specific deployment target.” John, Collins, GigaOm
Read the full report " DevOps Orchestration in a cloud-native world".
A Cloud Native Approach Pushes Code, Not Containers With GitOps
Cloud native lends itself well to GitOps-style deployments. As an operating model for building Cloud Native applications, GitOps unifies Deployment, Monitoring and Management.
The goal of GitOps is to speed up development so that your team can make changes and updates safely and securely to complex applications running in Kubernetes. It does this using the tools and workflows that developers are familiar with. For more on GitOps, including how it relates to cloud native applications, see GitOps - What you need to know.
Weave GitOps
Get up to speed quickly with the Weave GitOps.
Weave GitOps is a continuous delivery product to run applications in any Kubernetes. It enables simple, declarative workflows to take complete control of Kubernetes a Pull Request at a time. Cloud native teams are lightning fast by pushing everything to their environment . Environment immutability, application deployment, progressive delivery and cluster health lifecycle, all from within Git. Take control of the cloud, the edge and your machines to deliver incremental value continuously.
Interested in learning more about Weave GitOps? Contact us for more details.