The Wayback Machine - https://web.archive.org/web/20240828080604/https://www.geeksforgeeks.org/kubernetes-monolithic-architecture-of-kubernetes/
Open In App

Kubernetes – Monolithic Architecture of Kubernetes

Last Updated : 30 Mar, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

There is a new way of developing software apps using a microservices architecture. That’s when all the buzz around containers and container orchestration has increased but we have been developing and using these large software apps even before most of us were born. So in this article, we will be discussing what is that old software architecture we used even before microservices and what are the disadvantages of it that led to shifting our focus to microservices.

So coming to the primary objectives of this article, there are four major things that we’ll discuss:

  • What is Monolithic?
  • What is monolithic architecture?
  • Advantages and Disadvantages of Monolithic Architecture.
  • Challenges of Monolithic architecture.

What is monolithic?

Monolithic in general is something that is a single large block, indivisible, inflexible, and moveable. So that briefly explains at a high level about monolithic architecture unity and its characteristics as well.

Monolithic application in IT is an application built based on monolithic architecture. It is self-contained which means it contains all parts of applications packaged and deployed together. So to simplify this you can imagine this like a big container where all software components of applications are assembled together and tightly packed and deployed as a single unit. Imagine that you have developed an application on the Java platform, then you can package them using various formats such as .jar accordingly and which is then finally deployed as a single unit onto the application server.

What is monolithic architecture?

So in business terms, you can say that all different business services are packaged together as a single unit which is tightly coupled so typically when you look at the monolithic architecture it primarily consists of three tiers.

High-Level Monolithic Architecture:

  1. Presentation layer: At a high level the presentation tier is the front-end layer of the three-tier architecture. It is primarily a user interface of a web application. This tier is often built with web technologies such as HTML, Javascript, CSS, or through other popular web development frameworks and this tier communicates with the other two tiers at the bottom using API calls.
  2. Application tier: This is where you have all the business logic. It is often written in Java, Dotnet, C, Python, C++, or some more related languages.
  3. Data-tier: This is where all the data is stored and this data is accessed by the application layer when API calls. This tier consists of database technologies such as MySQL, Oracle DB, Microsoft SQL Server, MongoDB

So that’s a high-level overview of the monolithic architecture and its tiers. So all these layers are packaged and deployed together as one single unit and that is one of the main reasons why it is called monolithic architecture.

Now let’s look at an example of a simple monolithic application. When you take a bookstore web app it primarily consists of four components they are:

  • Customer accounts
  • Payments
  • Inventory
  • Shipping

So if the developer develops this application based on a monolithic ID picture then all these four components will be developed together which may be interdependent on each other and deployed onto a web server as one single unit. 

Advantages & Disadvantages of Monolithic Architecture

With this architecture style of developing an application, there are some advantages and there are disadvantages and now it’s time to see some of the advantages and disadvantages of monolithic architecture.

Advantages of Monolithic Architecture:

  • Single unit of deployment: Since it is a single unit of deployment so there is only one application to test and deploy overall. So monolithic applications are simple to develop and deploy.
  • IDE support: We have been developing monolithic applications for almost two to three decades. It is mature and old so IDEs and other development tools are designed in sync with monolithic architecture in mind.

Disadvantages of Monolithic Architecture:

  • Large Applications: Applications built with monolithic design are often very large. If the application is small then there are no problems. Then it will be easy to develop and maintain. In case if the application is large and has multiple components to it, then there will be a situation where the developer might get lost between business requirements, components, and its code. And most likely there is a scope for no single developer or even a group of developers to understand the entirety of the application, especially for those developers who have recently joined the team and it will take a lot of time to understand an application
  • Technology Dependency: These monolithic applications will get locked in with initial decisions around the technologies that they have developed this application in. Even if there are better technologies and languages and tools that rise over a period of time to solve the business problems but unfortunately these monolithic applications will have to stick with their initial technologies and initial decisions that they have taken at the beginning.
  • Single Stack Development: When developing software applications there is no one-size-fits-all principle here, meaning let’s imagine that there are multiple components inside the application and there might be a situation where you feel that one technology is best suited to one component and is not suited to other components. However, this monolithic design will restrict you to use a single development stack across.
  • Impractical Frequent Deployments: Frequent deployments are not practical because there are various application components linked together in a monolithic application as a result it requires coordination of many developers and even departments who are responsible for these components. It may take hours or even days to schedule deployment and test new features and bug fixes.
  • Difficult to Scale: The scaling of monolithic applications can often be very challenging since this is deployed as a single unit of the app, not an individual component so had to scale the entire application.

Challenges of Monolithic Applications

Now there is one big challenge with monolithic architecture even though it has served well for over three decades. Large organizations have used this way of packaging and deploying applications for decades and have developed effective ways of dealing with these shortcomings, but this was before the internet brought new challenges and one of the challenges is the unpredictable nature of user demands on the application.

Imagine that you have an internal web application just inside your company and there are about 10,000 of your company employees using it every day. So you know exactly how many of your company employees you have when they are working and for how long. So based on these criteria you can provide just enough resources for these applications to perform best. So if more employees join the company you know this in advance and can add more resources to the server where this application is running to keep up with the best performance possible.

Now let’s imagine that your company has an external website where they sell products online like amazon.com or walmart.com. In this scenario, you don’t know exactly how many people will be using your website today. All you can make is a good estimation based on some historical data that you have but that cannot be certain.  So if you look at the sales during the holiday season you see a rapid jump in visitors numbers as a result of some marketing campaign or a social media buzz. So as soon as you see that spike in traffic you need to immediately scale the application resources. Unfortunately, you do not have the luxury of a few weeks notice, so if you just fail to provide those resources it obviously reduces the performance of your applications which might even cause them to crash.

This used to happen during the early days of the Internet where web applications who are monolithic and when they were certain visitor numbers it would slow down the applications and possibly stop them altogether. The primary issue here is resources cannot be provided quickly enough to meet the demand. So the main disadvantage of the monolithic architecture pattern is it does not go well with scaling resources dynamically as and when needed.


Previous Article
Next Article

Similar Reads

How To Set Up Master-Slave Architecture Locally in Kubernetes?
Pre-requisite: Kubernetes Kubernetes is an open-source container orchestration system for automating containerized applications' deployment, scaling, and management. It was originally designed by Google and is now maintained by the Cloud Native Computing Foundation (CNCF). Kubernetes helps you deploy and manage containerized applications at scale m
5 min read
Docker - Kubernetes Architecture
Pre-requisite: Docker and Kubernetes Docker and Kubernetes are two of the most popular tools in the field of containerization and cluster management, respectively. In this article, we will understand how Docker and Kubernetes work together to provide a seamless experience for developers and operators. Docker is a tool that allows developers to pack
4 min read
Kubernetes - Architecture
Kubernetes Cluster mainly consists of Worker Machines called Nodes and a Control Plane. In a cluster, there is at least one worker node. The Kubectl CLI communicates with the Control Plane and the Control Plane manages the Worker Nodes. In this article, we are going to discuss in detail the architecture of Kubernetes. Table of Content Kubernetes -
5 min read
Kubernetes - Creating Deployment and Services using Helm in Kubernetes
Prerequisite: Kubernetes Helm is used for managing your Kubernetes Deployment. With helm, we can tear down and create a deployment with a single command. we will be creating deployment and services using Helm in Kubernetes. For simplicity, we will be using the nginx image. Deployment of nginx using HelmStep 1: We need to install the Helm. You can i
4 min read
Why Kubernetes? Benefits of using Kubernetes
The popularity of container orchestration technologies specially Kubernetes comes from its use cases and the problems that it solves. Kubernetes is the most popular container orchestration and is widely used by Cloud Native Computing Foundation (CNCF), the foundation to which Kubernetes as a project was donated by Google, estimates that about 92% b
8 min read
Kubernetes Controller VS Kubernetes Operator
Kubernetes Controllers are ideal for managing stateless apps and maintaining the correct number of copies, but Kubernetes Operators are more appropriate for complicated, stateful applications that require human-like decision-making abilities. Kubernetes ControllerKubernetes Controllers are ideal for managing stateless apps and maintaining the corre
4 min read
Resource Pooling Architecture in Cloud Computing
Pre-requisite: Cloud Computing A resource pool is a group of resources that can be assigned to users. Resources of any kind, including computation, network, and storage, can be pooled. It adds an abstraction layer that enables uniform resource use and presentation. In cloud data centers, a sizable pool of physical resources is maintained and made a
3 min read
Introduction to Ansible and its Architecture components
In this article, we will discuss the overview of ansible and will mainly focus on its architecture part. Let's discuss it one by one. Overview :Ansible is an IT automation engine that can automate various IT needs. And it has features like application deployment that means you can deploy your application easily as per your requirements, cloud provi
3 min read
Architecture of Docker
Pre-requisite: Docker Docker makes use of a client-server architecture. The Docker client talks with the docker daemon which helps in building, running, and distributing the docker containers. The Docker client runs with the daemon on the same system or we can connect the Docker client with the Docker daemon remotely. With the help of REST API over
4 min read
Architecture of Identity Access Management in Cloud Computing
Pre-requisite: IAM Identity Access Management is used by the root user (administrator) of the organization. The users represent one person within the organization, and the users can be grouped in that all the users will have the same privileges to the services. Shared Responsibility Model for Identity Access ManagementCloud Service Provider (CSP)In
3 min read
Layered Architecture of Cloud
Pre-requisite:- Cloud Computing It is possible to organize all the concrete realizations of cloud computing into a layered view covering the entire, from hardware appliances to software systems. All of the physical manifestations of cloud computing can be arranged into a layered picture that encompasses anything from software systems to hardware ap
5 min read
Google Cloud Architecture Framework
Pre-requisite: Google Cloud Google Cloud Architecture Framework is a set of best practices and guidelines provided by Google Cloud Platform (GCP) to help users design, build, and operate scalable, secure, and highly-available applications on GCP. The framework is designed to help users make the best use of GCP services and features and provides a s
8 min read
How to Use Cloud Pub/Sub for Event-driven Architecture on GCP?
Pre-requisites: Google Cloud Services Cloud Pub/Sub is a fully managed, scalable messaging system offered by Google Cloud Platform (GCP) that enables asynchronous communication between applications. It is a simple and reliable way to exchange data between services and applications in real time. With its event-driven architecture, Cloud Pub/Sub prov
3 min read
OpenShift Architecture
OpenShift, created by Red Hat, is a powerful and adaptable platform for managing containers. It is based on Kubernetes and offers a wide range of tools and features for deploying, scaling, and managing containerized applications. The architecture of OpenShift is crucial in ensuring efficient and secure delivery of these capabilities. What Is OpenSh
5 min read
Understanding the Docker Desktop Architecture and Linux Building Block for Containers
In this article we are going to do a technology deep dive and start understanding the foundational Linux kernel features that software like Docker is using to make the containers work and provide those isolated environments that we all use. then towards the end of this section, we'll also take a look at the docker system architecture. The building
9 min read
How To Docker SetUp Three Architecture Setup ?
This article provides an easily understandable explanation on using Docker to build a three-tier architecture. In this 3tier architecture we use WordPress as frontend application and MySQL as backend database and both the application with a customized network in docker. It provides a step-by-step guidelines for seamless integration and configuratio
5 min read
How To Use Azure Functions For Event-Driven Architecture ?
Azure Function is a service provided by Microsoft Azure for running serverless workloads. It provides support for building and developing event-driven applications without explicitly provisioning or managing infrastructure. It also provided for the development of applications based on functions in the cloud. Functions can be triggered using various
4 min read
Building a 3-tier Web Application Architecture with AWS CLI
As we know, a three-tier architecture has three main layers. Presentation layer, application/business layer, and logic layer. The Presentation layer contains the basic user interface, the application/business layer contains business logic, and the logic layer contains data storage or a database. In this article, we are deep diving into how to build
14 min read
What is AWS DevOps? Architecture, Tools, and Best Practices
Getting a job in this most demanding profession is one big step, but you can make it once you get the basics cleared. Considering AWS DevOps as one of the most popular fields if you are a DevOps enthusiast. This articlce will take you through a complete walkthrough of AWS DevOps, its working, its model, and how exactly it works. Also given here are
13 min read
How Raspberry Pi and Kubernetes Work Together?
Pre-requisite: Kubernetes and Raspberry Pi Kubernetes and Raspberry Pi are two popular technologies that can be used together to create powerful and scalable applications. In this article, we will look at what each technology is, how they work together, and the benefits and challenges of using the two technologies together. KubernetesKubernetes is
3 min read
Kubernetes - Kubectl Commands
Pre-requisites: Kubernetes The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs. Some basic Kubectl commands in a Kubernetes cluster are as follows: kubectl Commands The most popular kubectl commands and flag
5 min read
Google Cloud Platform - Using Config Sync for Managing Kubernetes
In this article, we will look into how we can manage Kubernetes using Config Sync. To do so let's create a problem statement and resolve the same. Problem Statement: Ravi has a new role, Platform Administrator, and he is tasked with ensuring all the infrastructure created by all of his company's teams is in compliance with governance requirements.
3 min read
Kubernetes - Introduction to Container Orchestration
In this article, we will look into Container Orchestration in Kubernetes. But first, let's explore the trends that gave rise to containers, the need for container orchestration, and how that it has created the space for Kubernetes to rise to dominance and growth. The growth of technology into every aspect of our lives and days has created immense d
4 min read
Microsoft Azure - Starting & Stopping a Azure Kubernetes Service Cluster
In this article, we will learn how to stop and start Azure Kubernetes Service(AKS) clusters. You can stop your entire Azure Kubernetes Service cluster to save costs. To follow along, you will need an existing Azure Kubernetes service that is running. To use start and stop for AKS, we need the AKS preview extension for the Azure CLI. It can be insta
2 min read
Microsoft Azure - Introduction to Kubernetes Diagnostics
In this article, we will learn how to use Azure Kubernetes Service Diagnostics. A solution that runs inside a Kubernetes cluster can quickly become complex. Azure Kubernetes diagnostics can help you to investigate, diagnose and resolve issues in your cluster quickly. Here we have an AKS cluster running, and it is running a sample application. Let u
2 min read
Microsoft Azure - Availability Zones For Kubernetes Cluster
In this article, we will learn how to create a highly available Kubernetes cluster with availability zones. When you create an Azure Kubernetes service or AKS cluster in Azure, its nodes and storage all reside in the same datacenter. The cluster is protected from hardware failure and maintenance within the data center because the nodes and storage
2 min read
Kubernetes - Autoscaling
Pre-requisite: Kubernetes Life before Kubernetes is like writing our code and pushing the code into physical servers in a data center and managing the resources needed by that server to run our application smoothly and another type is deploying our code in virtual machines(VM). With VMs also have problems with hardware and software components requi
8 min read
Kubernetes - Physical Servers vs Virtual Machines vs Containers
Kubernetes is an open-source framework for managing containerized workloads and services that allows declarative configuration as well as automation. It has a huge and fast-expanding ecosystem. Services, support, and tools for Kubernetes are widely available. Kubernetes is a Greek word that means "helmsman" or "pilot." The acronym K8s comes from co
3 min read
Kubernetes - Taint and Toleration
A pod is a group of one or more containers and is the smallest deployable unit in Kubernetes. A node is a representation of a single machine in a cluster (we can simply view these machines as a set of CPU and RAM). A node can be a virtual machine, a physical machine in a data center hosted on a cloud provider like Azure. When a user runs the below-
6 min read
Microsoft Azure Arc Enabled Kubernetes
In this article we will learn how to get started with Azure Arc enabled Kubernetes in the Azure Portal. Azure Arc enables Kubernetes lets you connect to Azure those Kubernetes clusters which are running outside of Azure. So, these clusters could be running on-premises, on the edge, or on other clouds, and you can use Azure Arc to enable Kubernetes
3 min read