{"id":1913,"date":"2019-05-08T12:00:00","date_gmt":"2019-05-08T10:00:00","guid":{"rendered":"https:\/\/kindsonthegenius.com\/blog\/what-are-microservices-a-simple-explanation\/"},"modified":"2026-07-05T03:23:09","modified_gmt":"2026-07-05T01:23:09","slug":"what-are-microservices-a-simple-explanation","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/blog\/what-are-microservices-a-simple-explanation\/","title":{"rendered":"What are Microservices? \u2013 A Simple Explanation"},"content":{"rendered":"<p>I&#8217;m going to explain microservices to you based on the following sections:<\/p>\n<ol>\n<li><a href=\"#t1\">What are Microservices?<\/a><\/li>\n<li><a href=\"#t2\">Benefits of Microservices<\/a><\/li>\n<li><a href=\"#t3\">How to Create Microservices<\/a><\/li>\n<li><a href=\"#t4\">Challenges of Microservices<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t1\">1. What are Microservices?<\/strong><\/h4>\n<p>Microservices\u00a0 or microservice architecture is an approach to application development where the application is broken down as a set of services. Each of these services would be running in its own process. Also each service is independent of other services. However, there would be communication between the services.<\/p>\n<p>The following are properties of microservices:<\/p>\n<ul>\n<li>Each service is independently deployable<\/li>\n<li>Services are loosely coupled<\/li>\n<li>Arranges around the business requirements<\/li>\n<li>Highly testable and maintainable<\/li>\n<li>Each service can be implemented with a different technology<\/li>\n<li>Communication between services<\/li>\n<\/ul>\n<p>In Figure 1 below, a microservice architecture is compared with a monolithic architecture.<\/p>\n<figure id=\"attachment_823\" aria-describedby=\"caption-attachment-823\" style=\"width: 735px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-823 size-large\" src=\"https:\/\/www.kindsonthegenius.com\/wp-content\/uploads\/2020\/09\/Monolithic-Architecture-vs-Microservices-1024x527.jpg\" alt=\"\" width=\"735\" height=\"378\" \/><figcaption id=\"caption-attachment-823\" class=\"wp-caption-text\">Figure 1: Monolithic Architecture vs Microservices<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<div class=\"mceTemp\"><\/div>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t2\">2. How to Create Microservices<\/strong><\/h4>\n<p>I&#8217;m currently working on Microservices Video Tutorial. This would be made available in my <a href=\"https:\/\/www.youtube.com\/channel\/UCvHgEAcw6VpcOA3864pSr5A\" target=\"_blank\" rel=\"noopener\">YouTube Channel. <\/a><\/p>\n<p>You can subscribe so you get notified when the lessons are made. But for now, I will give an overview on how to create microservices. Also, I would let you know the tools you need.<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t3\">3. Benefits of Microservices<\/strong><\/h4>\n<p>Below are the\u00a0 benefits of Microservices:<\/p>\n<p><strong>(a) Easier to test:<\/strong> With microservices, each service can be tested independent of other services<\/p>\n<p><strong>(b) Faster development:<\/strong> Microservices IDE are faster relative to monolithic IDEs<\/p>\n<p><strong>(c) Improved maintainability:<\/strong> Each microservice is small in size and therefore easy to modify when necessary<\/p>\n<p><strong>(d) Faster deployment:<\/strong> Since each service can be deployed independently, lesser bottleneck are encountered in deployment<\/p>\n<p><strong>(e) Better performance:<\/strong> Being lightweight makes microservices perform relatively better<\/p>\n<p><strong>(f) Development effort is reduced:<\/strong> You only need to develop services relevant to business objectives<\/p>\n<p><strong>(g) Better fault Isolation:<\/strong> In this case, particular service that creates some fault can easily be isolated and handled<\/p>\n<p><strong>(h) Breaks down complex application into simpler services:<\/strong> So microservices are less complex than a single monolithic application<\/p>\n<p><strong>(i) Continuous delivery can be achieved:<\/strong> Microservices can be deployed as soon as development is completed on that particular service.<\/p>\n<p><strong>(j) Removes long term commitment to technology stack:<\/strong> Each service could be provisioned with a different technology.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_822\" aria-describedby=\"caption-attachment-822\" style=\"width: 546px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-822\" src=\"https:\/\/www.kindsonthegenius.com\/wp-content\/uploads\/2020\/09\/Microservices.jpg\" alt=\"Microservice Architecture\" width=\"546\" height=\"348\" \/><figcaption id=\"caption-attachment-822\" class=\"wp-caption-text\">Figure 2:\u00a0 Since each microservices has its own database, maintaining data consistency becomes a challenge<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t4\">4. Challenges of Microservices<\/strong><\/h4>\n<p>You can find some of the challenges of microservices below:<\/p>\n<p><strong>Complexity of distributed system:<\/strong> Microservices architecture corresponds to building a distributed system. Hence, added complexity<\/p>\n<p><strong>Deployment Complexity.<\/strong> This is because, you need to have a model for deployment of several services.<\/p>\n<p><strong>Higher consumption of memory<\/strong>: Microservices reside in memory called images and\u00a0 runs instances called containers.<\/p>\n<p><strong>Tools\/IDEs for development<\/strong>: Tools for development of microservices are not as available as conventional tools and IDEs<\/p>\n<p><strong>Maintaining data consistency:<\/strong> Each microservice need to access data at some point. This can be achieved by creating a database for each service. This in turn leads to issue of maintaining data consistency across services. This is shown in Figure 2.<\/p>\n<p>&nbsp;<\/p>\n<p>I would then start a tutorial on how to build microservices. Do check back in few days.<\/p>\n<p>Also Learn about Docker, Containers and Kubernetes<\/p>\n<p>&nbsp;<\/p>\n<h5><strong>More Tutorials on Microservices<\/strong><\/h5>\n<ul>\n<li>\n<h6><strong><a href=\"https:\/\/kindsonthegenius.com\/tempsite\/how-to-make-two-microservices-communicate\/\">How to Make two Microservices Communicate<\/a><\/strong><\/h6>\n<\/li>\n<li>\n<h6><strong><a href=\"https:\/\/kindsonthegenius.com\/tempsite\/how-to-build-microservices-in-java-using-spring-eureka-source-codes\/\">How to Build Microservices in Java using Spring, Eureka (Source Codes)<\/a><\/strong><\/h6>\n<\/li>\n<li>\n<h6><strong><a href=\"https:\/\/kindsonthegenius.com\/tempsite\/how-to-build-microservices-in-java-using-spring-eureka-step-by-step-procedure\/\">How to Build Microservices in Java using Spring, Eureka (step by step Procedure)<\/a><\/strong><\/h6>\n<\/li>\n<li>\n<h6><strong><a href=\"https:\/\/kindsonthegenius.com\/tempsite\/dockers-containers-and-kubernetes-a-simple-explanation\/\">Dockers, Containers and Kubernetes \u2013 A Simple Explanation<\/a><\/strong><\/h6>\n<\/li>\n<li>\n<h6><strong><a href=\"https:\/\/kindsonthegenius.com\/tempsite\/what-are-microservices-a-simple-explanation\/\">What are Microservices? \u2013 A Simple Explanation<\/a><\/strong><\/h6>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m going to explain microservices to you based on the following sections: What are Microservices? Benefits of Microservices How to Create Microservices Challenges of Microservices &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[414],"tags":[],"class_list":["post-1913","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/1913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/comments?post=1913"}],"version-history":[{"count":1,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/1913\/revisions"}],"predecessor-version":[{"id":2081,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/1913\/revisions\/2081"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media?parent=1913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/categories?post=1913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/tags?post=1913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}