michaela-damm.jpg
blocshop
August 14, 2020
0 min read

Microservices or monolithic – which is better?

Microservices or monolithic – which is better?.jpeg

If you’re about to begin a new project, you might be asking yourself whether you should go with a monolithic or microservices architecture. Or at least you should be asking yourself that question. We’re going to give you some reasons to think seriously about going with microservices.

What is monolithic vs. microservices architecture?

Monolithic applications are built and deployed as a single unit. This is the traditional approach to creating applications: all modules are combined in one self-contained codebase.

All developers work on the same codebase and are committed to a single development stack, including languages, libraries, tools, and everything else used to create the application. Changing any of these elements is a major challenge in a monolithic architecture. Any changes or fixes have the potential to cause problems for everyone involved.

Microservices take the opposite approach. With a microservices architecture, you divide an application into discrete components that can be developed and deployed completely separately. Any coding language can be used and the development teams can be small and autonomous. Each service represents a particular functionality in the application. If one service has a problem, it won’t take down the entire application and fixes can be quickly rolled out by the relevant team.

Monolith vs. microservice: the showdown

Let’s look at ten aspects of applications and see where monolithic and microservices architectures differ.

1. Size

A monolithic application is a single self-contained unit. Monolithic applications can get very big over time and your developers can end up dealing with a huge mass of code.        

In contrast, microservices aim to be small independent services that focus on delivering a specific business objective.

2. Granularity 

All the elements within a monolithic application are tightly coupled and interconnected. Changes made to any part of the application can have effects everywhere. A single bug can mean that the whole application fails.    

Microservices are loosely coupled by design. If there’s a fault, they can be isolated and fixed.

3. Ease of deployment

Monolithic applications are not easy to deploy. Making changes can be complicated and deployment is a big deal, involving the entire application.

Microservices have small teams that can develop and deploy independently. They don’t have to coordinate with everyone else involved in the project.

4. Speed of deployment 

Not only are monolithic applications more difficult to deploy – they’re also slower. It can take a lot of time to wait for all the changes to be ready and for large development teams to make sure that everything is ready to roll out. Those delays can be very costly, especially if your competitors have made the switch to microservices.

Again, microservices are designed to be the opposite. Leaner teams developing and deploying their own part of the application mean that microservices can indulge in rapid deployment. Some microservices can even go with continuous deployment and deliver really quick responses to feedback and feature requests.

5. Communications volume   

Here’s where monolithic applications have an advantage over microservices. Because everything in the application is self-contained, there’s no need for remote calls between services.

Microservices can end up with significant communication overheads because of all the extra remote calls. While this isn’t catastrophic, it does mean that communication between the microservices has to be designed and managed carefully to avoid bottlenecks because of overly chatty services.

6. Persistence of data

All components in a monolithic application share data storage. A single database sits at the lowest level of the architecture of the application and serves information to the entire application. That’s a lot of work for one database and it can mean problems as it gets bigger over time.

One of the basic principles of microservices is that each service is free to choose its own data storage and to manage its own data. In fact, you should make sure that services don’t share a data store so that you can avoid too much unwanted coupling between services. Like with communications, this can be a challenge. You especially need to rely on domain-driven design to make sure that no microservice can modify the databases of another. Keep each microservice focused on its own business objective.

7. Ease of onboarding

A monolithic application can become so complex that it becomes daunting for new hires to understand it all before they get started. It can be difficult for old hands to even explain how everything works!

With microservices, your new developers just need to understand the code used for their own service. Which means you get them onboard and coding faster and safer.     

8. Polyglot programming

With a monolithic application, you’re stuck with a single development stack for the whole thing. You can’t decide to use a different programming language for one component or experiment with new approaches to storage solutions.

Microservices give you the freedom to use a different technology stack whenever you want. You can experiment, optimize, and keep up with new ideas.

9. Communication method    

Monolithic applications communicate with in-process calls and local method calls. As with everything else, it’s all kept internal and dependent on the language used to develop the application.

Microservices make use of APIs and a modern RESTful approach to communicating with each other. The architecture is lightweight and technology-neutral, so again you end up with more freedom.

10. Scalability   

So what about when your application needs to grow?

Monolithic applications can only scale horizontally. You can run multiple copies of the application. Additional servers, additional resources, and a lot of waste.

Microservices can be scaled individually as and when needed. Fewer resources get wasted and real business objectives determine where you add them.

At Blocshop, we’ve both converted monolithic applications to microservices and designed and built microservices from scratch. While we believe that the benefits of microservices are clear, we also know that there are horror stories out there about companies that underestimated the task of building or migrating. Contact us to find out how you can avoid making the same mistake. We’ll guide you through how you can make the change, from quotation to deployment.

Free ebook: From monolith to microservices

From monolith to microservices (ebook): How to break a monolith application into microservices.png

Learn more from our insights

roro665_hands_working_with_a_laptop_in_a_modern_office_there_is_20dca307-c993-4539-99d7-fd5ca264248c.png
April 14, 2024

Enhancing ERP Systems with AI Chatbots

Explore how AI chatbots can transform ERP systems, enhancing efficiency, decision-making, and user interaction.

best large language models for ERP systems.png
March 31, 2024

Language Models Best Suited for Integration into ERPs

Four prominent large language models stand out for their compatibility and effectiveness in ERP system processes and automation. See what they are.

hybrid ERPs.png
March 21, 2024

Hybrid ERP: An Innovative Approach to Enterprise Resource Planning

Hybrid ERP is a blend of cloud and on-premise solutions. With expertise in both, Blocshop is uniquely positioned to help you with hybrid ERP development and implementation.

0-4 cover.png
October 03, 2023

IT Staffing: Individual Hiring vs. Specialized Developer Teams

Should you hire individual developers or go for a specialized, custom-built developer team?

chatgpt-35-limitations.jpg
July 17, 2023

ChatGPT-3.5: An Overview and Limitations

In this article, we'll take a closer look at the capabilities and limitations of ChatGPT-3.5, providing you with a comprehensive overview of what it can do and what its boundaries are. So, let's delve into the inner workings of this large language model.

gpt4 vs gpt3-5 and the key differnces.png
June 15, 2023

A Deep Dive into GPT-4 vs GPT-3.5 Differences and Ability to Revolutionize Software Development

There are key differences between ChatGPT-3.5 and ChatGPT-4 that software developers and companies procuring software solutions alike should be aware of. Let's see how these differences affect the output generated by these models on specific examples.

ai-development-cto-2023.jpg
May 09, 2023

AI-powered software development: What CTOs need to know in 2023

As technology continues to evolve at a rapid pace in 2023 and beyond, CTOs must stay ahead of the curve by utilizing predictive analytics, automated testing processes, and deployment solutions.

ai-web-development.jpg
May 05, 2023

How Artificial Intelligence is changing web development

AI technology is now being used in many different industries, including web development. It’s important to understand the impact that AI can have on web development as it can help companies to create more efficient and user-friendly websites.

cto-ai-software-development.jpg
May 05, 2023

How AI-powered software development is changing the role of the CTO

As AI-powered software development becomes increasingly commonplace, CTOs must prepare themselves to take on a new set of responsibilities that require more than just technical know-how.

build-mvp.jpg
April 17, 2023

How to build a minimum viable product (MVP)

The MVP is the version of a new product that allows Blocshop and your team to collect the maximum amount of validated learning about customers with the least amount of effort. The essence of your core idea is delivered as a barebones solution. The solutions is, however, sufficient for usage by early adopters. As a product, it has tangible qulities that express a look and feel.

ai-tools-developers.png
March 21, 2023

10 AI tools for developers you should know about in 2023

For developers, programmers, and data scientists, AI coding solutions can free up thinking time, allowing such professionals to focus on the fundamentals of their projects, and complete such projects much faster.

web-app-ideas.png
February 14, 2023

17 Ideas for Web Apps in 2023

Gazillions of web apps and ideas for web apps are floating around the metaverse - so creating one that properly represents a unique brand is a huge challenge. Our list provides a number of areas of simple app ideas to help businesses transform their online presence through a web app.

Top 15 micro-SaaS ideas for your startup in 2023.png
December 06, 2021

Top 15 micro-SaaS ideas for your startup in 2022

What exactly do we mean by micro SaaS? Micro Saas solutions use a web browser or mobile app interface. Micro SaaS solutions usually come about through the effort of an individual or very small team. It aims to solve precise problems. Micro SaaS projects have small budgets and overhead. Customers use Micro SaaS solutions on a monthly or yearly subscription basis. Micro SaaS projects target a small niche of the consumer market.

Software engineer hourly rates in 2021 (based on experience and location).png
November 22, 2021

Software engineer hourly rates in 2022 (based on experience and location)

Region influences salary more than any other factor. Taxes rates, cost of living, and government benefit programs affect the rates software developers charge. Software developers in the USA  and Canada earn more than software developers in other countries.

The best programming languages for app development in 2022.png
November 15, 2021

The best programming languages for app development in 2022

Software developers usually have three main ways to create an app. They can choose to code a native app, a hybrid app or a progressive web app. Developers create native apps to function on one specific platform, usually either iOS or Android. They create these apps using Swift or Objective C for iOS. For Android they use C++, Kotlin or several other languages. 

Cross-platform mobile app development: Tools & frameworks for 2022.png
November 09, 2021

Cross-platform mobile app development: Tools & frameworks for 2022

The cross-platform development project aims to create apps compatible with several operating systems. Cross-platform apps work on iOS, Android, and Windows. Cross-platform apps look and feel like apps developed specifically for the operating system.

App development cost breakdown in 2022.png
November 08, 2021

App development cost breakdown in 2022

Your business needs an app, but you aren’t sure about the cost of creating an app. Without some figures, you can’t even begin to estimate the potential budget, so let’s get you sorted with the information you need to make your app a reality.

unnamed.png
November 04, 2021

Web app development: a detailed guide

The best web apps give a responsive and engaging user experience through a browser instead of a single application. Think of web app development as a super-charged website. Web apps have many features of mobile apps coded for iOS or Android without the need to code for specific platforms. Developers create web apps using HTML, javascript, Python and CSS.

15 useful web app development tools for 2021.png
October 29, 2021

15 useful web app development tools for 2022

Web development vs app development: Choose the best for your business.png
October 19, 2021

Web development vs app development: Choose the best for your business