DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Micro-Frontends in a Microservice Architecture
  • Designing Scalable and Secure Cloud-Native Architectures: Technical Strategies and Best Practices
  • Building Scalable AI-Driven Microservices With Kubernetes and Kafka
  • Microservice Proliferation: Too Many Microservices

Trending

  • Apache Doris vs Elasticsearch: An In-Depth Comparative Analysis
  • Power BI Embedded Analytics — Part 2: Power BI Embedded Overview
  • *You* Can Shape Trend Reports: Join DZone's Software Supply Chain Security Research
  • Scalable, Resilient Data Orchestration: The Power of Intelligent Systems
  1. DZone
  2. Software Design and Architecture
  3. Microservices
  4. Making the Case for a Monolithic Architecture

Making the Case for a Monolithic Architecture

Microservices are getting all of the attention, but the monolith architecture is still a viable option for many companies.

By 
Ilya Dudkin user avatar
Ilya Dudkin
DZone Core CORE ·
Jul. 07, 20 · Opinion
Likes (2)
Comment
Save
Tweet
Share
3.0K Views

Join the DZone community and get the full member experience.

Join For Free

When microservices became popular in the past decade, everybody hailed them as the nail in the coffin of monolithic architecture. Given all of the advantages of that microservices offer, it is easy to see why this was the case. Still, there are certain situations when a monolithic architecture would serve you best. In my previous article, I explored some of the challenges that microservices offer, and today I would like to take this topic one step further. Let's take a look at some of the benefits of the monolith so you can decide if it is right for you. 

Simpler Tracking and Monitoring 

Microservices is all about taking independent technologies and sticking them together. However, how do you know whether any or all of the services are performing the way they should be? While there are tools available that can help you with this, you will still need to spend time integrating them. This, by itself, could get very costly. While many people would say that one of the advantages that microservices offer is the fault tolerance, it will still be difficult to find those points of failure manually. This is because microservices, by their very nature, are decoupled and you will need to integrate some monitoring tools which will increase costs. 

A monolith is usually deployed as a single or binary library. It’s easier to see the boundaries of the services allowing your teams to refactor or break them down into microservices. A lot of people who are experiencing monitoring issues with their monolith architecture think that shifting to microservices will solve everything. This is simply not true. If you can't track everything when it’s all in one place, what makes you think doing so in a distributed system will be any easier? 

Easier Testing and Debugging 

When you have a microservices architecture, you have to take into account all of the microservices inside various machines that must be able to communicate with each other. With a monolith architecture, you do not have to deal with potential service interconnection issues. Therefore, if we take a look at something like integration testing, which checks the flow of information between two or more components, you will sometimes have to use different build systems for every microservice that needs to be deployed according to its version. While this is just one form of testing, it is an excellent example of how much more complicated testing becomes in a microservices architecture. 

Security Challenges 

First of all, it is worth pointing out that both monoliths and microservices have their security flaws. With a monolith, if there are issues with a single component, the entire system can be compromised and it is not possible to bring the application offline to solve the issue. Still, microservices are not foolproof and come with even more advanced threats. Since you have services, components, APIs, and many other moving parts in play, your security team has a lot more ground to cover. The only good thing is that it will be possible to isolate the affected component without derailing the entire app. 

When Should You Choose Microservices? 

While we made the case for sticking with a monolith architecture, there will be times when microservices just make more sense. Nowadays, companies have remote teams spread out all over the world and microservices makes it so much easier and cost-effective to scale the application since you are not bogged down by a single tech stack. Therefore, the monolithic architecture would only make sense if all your developers are located under one roof. The issues with monoliths have been well documented. There are scalability issues, it is difficult to manage the codebase making it difficult to even add a new feature.

Still, you should consider using a monolith architecture unless you are absolutely certain that it will not be possible to build, test, deploy, and scale. If you feel that all of these can be done with a monolith, then there is no reason to introduce such complexity and use microservices.

Architecture microservice

Opinions expressed by DZone contributors are their own.

Related

  • Micro-Frontends in a Microservice Architecture
  • Designing Scalable and Secure Cloud-Native Architectures: Technical Strategies and Best Practices
  • Building Scalable AI-Driven Microservices With Kubernetes and Kafka
  • Microservice Proliferation: Too Many Microservices

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!