What is a microservices architecture?
Microservices development brings flexibility, but how does it work?


Microservices architecture is a type of application infrastructure that separates the functions of an application into smaller, self-contained parts, which can then be reused for other purposes.
To explain, picture an application that is made to enter an active state when it receives an SMS message. Within traditional application development, every aspect of its function is coded as part of one central codebase.
However, under microservices architecture, the three main functions of the app are instead split into three: one that's designed to receive SMS messages and process them, one created to interpret the content of messages, and one more built to take this interpretation and initiate a command of 'on' or 'off'.
Because each component of the overall application is working independently of the rest, they can be deployed, updated, or replaced without having to rebuild the entire product. In the above example, it would allow you to change what happens when an SMS is received without having to rewrite the function that detects them, or change the application to activate when an email is received instead.
The same is not true for 'monolithic' applications, which have to be rewritten as an entire unit in order to add or remove features, or apply updates.
How do microservices work?
Many firms that deploy microservices architecture use containers to house the individual functions as described above. Each container is its own self-contained unit of software, within which lies the necessary libraries and functions to ensure it can carry out its designated task regardless of its surrounding environment.
Containers are a very helpful way for a development team to make microservices architecture a reality, due to their versatility and small size compared to virtual machines (VMs).
Get the ITPro daily newsletter
Sign up today and you will receive a free copy of our Future Focus 2025 report - the leading guidance on AI, cybersecurity and other IT challenges as per 700+ senior executives
It is typical for administrators to maintain oversight of these containers through Kubernetes, a popular tool for orchestrating multiple containers wherever they are deployed, and this can also be used to group containers and allocate resources depending on demand.
Although microservices can be established and run independently of the wider software application, it is still necessary for communication to be maintained across the application so that it works correctly. Application programming interfaces (APIs) are the chief route through which this form of communication can be established, as these allow microservices to pass commands between each other as and when required. HTTP and REST (representational state transfer) is normally used for this.
Benefits of microservices architecture
RELATED RESOURCE
Achieving software health in the microservices age
Tips and tricks for the new and emerging remediation methods
The main benefit of microservices architecture is stability, with components being easy to exchange when they need to be modified or replaced. One microservice failing does not necessarily affect the performance of the wider ecosystem, with one function instead ceasing to work properly in a manner that can be identified and fixed with little overall impact.
Adopting this kind of architecture can also have benefits for the speed of development, too. Because functions within a microservices architecture are not interdependent, different teams within an IT organisation can be working on different microservices in the same application simultaneously. This means bug fixes and new features can be added faster, which is one of the reasons why DevOps and microservices often go hand in hand.
If a business chooses to use containers to deploy microservices, these can also be reused. This can free up resources that might otherwise be lost to application redundancy. Another benefit is the fact that, because they're self-contained, microservices can be coded in any programming language.
This article was first published on 23/09/19 and has since been updated
Rene Millman is a freelance writer and broadcaster who covers cybersecurity, AI, IoT, and the cloud. He also works as a contributing analyst at GigaOm and has previously worked as an analyst for Gartner covering the infrastructure market. He has made numerous television appearances to give his views and expertise on technology trends and companies that affect and shape our lives. You can follow Rene Millman on Twitter.
-
Should AI PCs be part of your next hardware refresh?
AI PCs are fast becoming a business staple and a surefire way to future-proof your business
By Bobby Hellard
-
Westcon-Comstor and Vectra AI launch brace of new channel initiatives
News Westcon-Comstor and Vectra AI have announced the launch of two new channel growth initiatives focused on the managed security service provider (MSSP) space and AWS Marketplace.
By Daniel Todd
-
How to empower employees to accelerate emissions reduction
in depth With ICT accounting for as much as 3% of global carbon emissions, the same as aviation, the industry needs to increase emissions reduction
By Fleur Doidge
-
Worldwide IT spending to grow 4.3% in 2023, with no significant AI impact
News Spending patterns have changed as companies take an inward focus
By Rory Bathgate
-
Report: Female tech workers disproportionately affected by industry layoffs
News Layoffs continue to strike companies throughout the tech industry, with data showing females in both the UK and US are bearing the brunt of them more so than males
By Ross Kelly
-
How can small businesses cope with inflation?
Tutorial With high inflation increasing the cost of doing business, how can small businesses weather the storm?
By Sandra Vogel
-
Analyzing the economic benefits of Dell Technologies with VMware Tanzu & Intel
Whitepaper ESG economic validation
By ITPro
-
How to deal with inflation while undergoing digital transformation
In-depth How can organizations stave off inflation while attempting to grow by digitally transforming their businesses?
By Sandra Vogel
-
How businesses can use technology to fight inflation
TUTORIAL While technology can’t provide all the answers to fight rising inflation, it can help ease the pain on businesses in the long term
By Sandra Vogel
-
Embattled WANdisco to cut 30% of workforce amid fraud scandal
News The layoffs follow the shock resignation of the company’s CEO and CFO in early April
By Ross Kelly