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).
Sign up today and you will receive a free copy of our Future Focus 2026 report - the leading resource for IT decision-maker insight on priorities and investment areas in AI, security and more.
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
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.
-
CrowdStrike confirms Zscaler acquisition with $43.9 billion mega dealNews The acquisition will add Zscaler’s zero trust services to the flagship Falcon platform
-
Vibe-coded software has caused a technical debt explosionNews Appian research says IT leaders are burning budgets on supporting AI-built apps
-
Red Hat, Google Cloud eye legacy modernization gains with partnership expansionNews Red Hat wants to make it easier to migrate and modernize applications
-
UK enterprises lead the way on containerization, but skills gaps could hinder progressNews The UK risks fumbling its lead on cloud native deployments due to skills issues, according to Nutanix’s Enterprise Cloud Index (ECI) survey.
-
Achieving business outcomes with generative AIWebinar Take your hybrid cloud journey to the next level with generative AI
-
The right workload in the right cloud: Your cloud. Your terms.Whitepaper Looking to get more from your cloud experience?
-
Automating application-driven container elasticityWhitepaper For platform and DevOps engineers looking to operationalize speed to market while assuring application performance
-
Why energy efficiency could be key to your business’ successSupported An energy efficient data center setup can help save on bills, but the benefits don’t have to stop there
-
The ultimate guide to getting your killer app off the groundIndustry Insight When building software, the process of designing, testing, prototyping, and perfecting your project is never ending
-
Is the Kubernetes security deficit widening?In-Depth Kubernetes and containerization are surging in popularity but organizations are worrying over unaddressed cyber security risks