{"id":27619,"date":"2021-11-03T14:23:10","date_gmt":"2021-11-03T14:23:10","guid":{"rendered":"https:\/\/codeandpepper.com\/?p=27619"},"modified":"2022-05-26T12:32:31","modified_gmt":"2022-05-26T12:32:31","slug":"what-are-microservices","status":"publish","type":"post","link":"https:\/\/codeandpepper.com\/what-are-microservices\/","title":{"rendered":"What Are Microservices? Architecture, Importance, Advantages, Types"},"content":{"rendered":"\n<p><strong>What are microservices?<\/strong> They are loosely bound, light services and protocols that can build your application. Highly specialized in nature, they tackle specific topics and handle challenges in a very agile way. Through this specialization, your application can perform better. <strong>What exactly is microservices architecture and what are the advantages of microservices?<\/strong><\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg\" alt=\"What are microservices\" class=\"wp-image-27620\" width=\"864\" height=\"450\" srcset=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg 864w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages-300x156.jpeg 300w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages-768x400.jpeg 768w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages-80x42.jpeg 80w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages-119x62.jpeg 119w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages-361x188.jpeg 361w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages-433x226.jpeg 433w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages-192x100.jpeg 192w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages-720x375.jpeg 720w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages-432x225.jpeg 432w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/figure><\/div>\n\n\n\n<p>To answer these questions, we have to break down the software development process into two main categories. If you want to create a digital product, there are two choices:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Monolithic architecture<\/li><li>Microservices<\/li><\/ul>\n\n\n\n<p>Both of them have advantages and disadvantages and no, <strong>microservices are not for everybody.<\/strong> They shouldn\u2019t be treated as a panacea for every development challenge, but we will have a separate article on that in the near future. For now, let\u2019s focus on the matter of <strong>why microservices are good for business.<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n<h4>Table of contents<\/h4>\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#What are microservices and why they are important\">What are microservices and why they are important<\/a><\/li><li><a href=\"#Why are microservices important?\">Why are microservices important?<\/a><\/li><li><a href=\"#Why microservices? For what they are used for?\">Why microservices? For what they are used for?<\/a><\/li><li><a href=\"#Benefits for your digital product\">Benefits for your digital product<\/a><\/li><li><a href=\"#What is microservices architecture?\">What is microservices architecture?<\/a><\/li><li><a href=\"#Microservices architecture and the learning curve\">Microservices architecture and the learning curve<\/a><\/li><li><a href=\"#What are the types of microservices?\">What are the types of microservices?<\/a><\/li><li><a href=\"#What are microservices in AWS?\">What are microservices in AWS?<\/a><\/li><li><a href=\"#What is microservices architecture? Ask yourself!\">What is microservices architecture? Ask yourself!<\/a><\/li><\/ul>\n\n\n\n<section id=\"What are microservices and why they are important\" class=\"hidden-block\"><\/section>\n\n<style type=\"text\/css\">\n  #What are microservices and why they are important {\n    visibility: hidden !important;\n  }\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-microservices-and-why-they-are-important\">What are microservices and why they are important<\/h2>\n\n\n\n<p>In today\u2019s business, the ability to respond to changing market conditions is vital. To keep up with constantly changing demands and competing products, you must adapt and change. Making pivots in your business, regarding sales, marketing, and product strategy, is everything. That also applies to the product itself, which can even demand changing an entire architecture. Or at least part of it, if that\u2019s the case.<\/p>\n\n\n\n<p>The modern digital project requires few things to compete on a market and most of all, satisfy their users. They need to be:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>ready for quick deployment<\/li><li>easy to maintain<\/li><li>easy to scale and change on demand<\/li><li>available (have a small percentage of downtime)<\/li><\/ul>\n\n\n\n<p><strong>Why microservices for your project?<\/strong> Because they are responsible for a small portion of what happens in your product. They are also modular in nature \u2013 which means that they are easily and independently scalable. You don\u2019t have to change the entire code to allow more people to use the application. To do this, simply adjust microservices and their scope. Also, corresponding microservices, so that they can work better together.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-does-it-work-in-practice\">How does it work in practice?<\/h3>\n\n\n\n<p>The characteristics of a microservice are not complicated.<strong> Each microservice:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>has its own data model and manages its own data without 3rd party support (from another microservice, additional code, etc.)<\/li><li>encompasses a single piece of business functionality. It\u2019s called a domain-driven design (DDD) or bounded context. In other words, if something is good for everything, it\u2019s good for nothing. That\u2019s why each microservice is responsible for a very specific task and nothing more.<\/li><li>internal operations within a microservice are available to external programs only through API.<\/li><\/ul>\n\n\n\n<section id=\"Why are microservices important?\" class=\"hidden-block\"><\/section>\n\n<style type=\"text\/css\">\n  #Why are microservices important? {\n    visibility: hidden !important;\n  }\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-are-microservices-important\">Why are microservices important?<\/h2>\n\n\n\n<p>Because they deliver on a promise of quick deployment and specialized agenda.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>They maximize deployment velocity<\/strong>. Each application runs its own containerized environment, so they can be moved anywhere else without messing up the environment they were previously in. That\u2019s a great benefit for integrity and future projects. Not to mention the current\u2019s one performance.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>They empower developers<\/strong>. Each component of the application can function in its own container. That\u2019s why it can be individually updated and managed. Fixed, enhanced, etc. If there is a bug, a developer doesn\u2019t have to go through a bigger portion of the code. He or she can simply use a scalpel and apply a fix accordingly. Updates and functionality enhancements are also easier \u2013 if something is isolated, and microservices are, you can sit back and relax. Applied changes will affect only the microservice at hand.&nbsp;<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>They can be written in different languages<\/strong>. When it comes to Code &amp; Pepper, our <a href=\"https:\/\/codeandpepper.com\/our-technology-stack\">technology stack<\/a> allows us to quickly adapt and scale products. We decided to go with microservices because they allow us to be even more productive and agile. Not to mention write microservices using respectable languages, suited for particular needs. You don\u2019t use a SpaceX rocket to travel to a local supermarket. A small city car will do, right?<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>&nbsp;<strong>They allow significant cost reduction<\/strong>. In a monolithic architecture, every change, especially later in the project, is complicated and potentially expensive. Every part of the application interacts with other parts; change in one place affects other parts of the application. It\u2019s a ripple effect \u2013 the more significant the change, the more work you need to implement it. It\u2019s different with microservices \u2013 you work only on what needs to be done. You don\u2019t have to estimate costs of side effects (additional quality assurance, bug fixing, post-launch support, etc.)<\/li><\/ul>\n\n\n\n<section id=\"Why microservices? For what they are used for?\" class=\"hidden-block\"><\/section>\n\n<style type=\"text\/css\">\n  #Why microservices? For what they are used for? {\n    visibility: hidden !important;\n  }\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-microservices-for-what-they-are-used-for\">Why microservices? For what they are used for?<\/h2>\n\n\n\n<p>There are many potential applications, but here are few most important ones:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>processing data<\/li><li>recommendation based on historically similar choices<\/li><li>delivery of media content<\/li><li>processing and ordering payments<\/li><li>website or application migration (from monolithic to cloud, to web services model)<\/li><li>authentication<\/li><li>data offloading<\/li><li>monitoring<\/li><li>configuration management<\/li><\/ul>\n\n\n\n<p>\u2026 and some more. A single microservice can be a very versatile tool. Depending on your current application\u2019s needs, it can give you various benefits.<\/p>\n\n\n\n<section id=\"Benefits for your digital product\" class=\"hidden-block\"><\/section>\n\n<style type=\"text\/css\">\n  #Benefits for your digital product {\n    visibility: hidden !important;\n  }\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-benefits-for-your-digital-product\">Benefits for your digital product<\/h2>\n\n\n\n<p>Aside from the features above, there are many advantages of building digital products with microservices.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Continuous deployment \/ continuous integration<\/strong>. These are big advantages in development. Both are key concepts in DevOps and generally, an Agile approach. Because teams can quickly develop, test, and implement necessary changes in the code independently in each service, it leads to shorter time-to-market and troubleshooting turnaround times.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Reduced application downtime<\/strong>. When one element goes down, everything does. This golden Murphy rule has no say here. Because every microservice is a different organism, when it goes down, it only affects one functionality. The application as a whole can run smoothly. This is unlikely in a monolithic architecture.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>A smaller codebase enables a team to understand the code and simplify maintenance<\/strong>. This is pretty much self-explanatory. With self-managed microservices (oversimplification but you got the point), developers can only look at the code that generates problems, not look for a needle in a haystack. Because the problem is not regarding the whole application, it\u2019s easier to spot it and neutralize it. Smaller areas mean less code and that leads to in-house transparency.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Faster development of an MVP and time-to-market<\/strong>. With all features mentioned above, it\u2019s easier to build scalable products and their very early versions. If you\u2019re not entirely sure what the product should look like, don\u2019t have a full budget right away, or want to test a concept, go for a minimum viable product. That way you won\u2019t be burning time for more expensive options and customers will have an option to quickly have their say on the product. Their opinions matter most in the first, post-launch phase, so use them to build on that and improve the application as soon as possible.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Outsourcing flexibility<\/strong>. Some managers and business owners are worried about protecting their IP. Since Poland, and as a consequence Code &amp; Pepper, are in the European Union which protects intellectual property, we don\u2019t experience a serious level of doubt. Regardless, some partners can have objections when it comes to <a href=\"https:\/\/codeandpepper.com\/services\/software-development-and-design-services-company\">end-to-end development<\/a>. In this case, microservices allow flexibility \u2013 you can segment off work for the outsourcing of non-core business functions without disclosing core services.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Native support for cloud-based solutions<\/strong>. Microservices has been around for years now but it\u2019s still a fairly new concept. Just as cloud services, which complements microservices in the right way. You can drop and keep necessary data in the cloud, freeing resources for more important parts of the product. You get data and performance from the cloud \u2013 when you need it, the way you need it.&nbsp;<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Ability to experiment with technology<\/strong>. Since microservices are technically independent, you can write them in whatever you want. Even if your company has a product with legacy code and wants to add new features which demand new languages, frameworks, libraries, we can do that. Our tech stack allows a high level of agility, which complements microservices focus.&nbsp;<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Presence of cross-functional teams<\/strong>. It means that a team has all the necessary skills to turn a product backlog into a fully done increment. By organizing people and working this way, you and your software development provider can handle multiple projects without sacrificing quality in each of them. Cross-functionality is another word for efficiency.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Less operational overhead<\/strong>. The less you have to think about, the more you can focus on what\u2019s really important \u2013 building and expanding your business. Microservices don\u2019t require exponential budgets, multiple teams for even small projects, and doubled positions. Developers and product managers can handle their own.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02.jpeg\" alt=\"What are microservices and why are they important\" class=\"wp-image-27621\" width=\"776\" height=\"351\" srcset=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02.jpeg 776w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02-300x136.jpeg 300w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02-768x347.jpeg 768w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02-80x36.jpeg 80w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02-137x62.jpeg 137w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02-361x163.jpeg 361w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02-433x196.jpeg 433w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02-200x90.jpeg 200w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02-720x326.jpeg 720w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_02-432x195.jpeg 432w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/><\/figure>\n\n\n\n<section id=\"What is microservices architecture?\" class=\"hidden-block\"><\/section>\n\n<style type=\"text\/css\">\n  #What is microservices architecture? {\n    visibility: hidden !important;\n  }\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-microservices-architecture\">What is microservices architecture?<\/h2>\n\n\n\n<p>Imagine a chasm that you can\u2019t cross because you lack a bridge. You can use a ladder but it will take some time. This is microservices architecture in a nutshell. Because we have something called \u201c<strong>a hard crosswalk<\/strong>\u201d, it\u2019s difficult to walk over the system and mess things up in a code. Or implementing additional functionalities in post-launch support, which is equally important for everyone involved. Just imagine a well-received product that gets an update and everything suddenly goes down for hours if not a few days. Unacceptable. <strong>With microservices, it\u2019s easier to manage everything.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-basic-rules-of-engagement\">Basic rules of engagement<\/h3>\n\n\n\n<p>It is and it isn\u2019t. And least in the very beginning. You make your microservices too granular and your system becomes overly chatty. Microservices will have to constantly talk with each other to exchange information, push data, and other necessary things through. Push too many functionalities into a single service and you sabotage yourself with a serious scalability challenge. How small is \u201ca good small\u201d?<\/p>\n\n\n\n<p>The answer lies in the concept of a <strong>domain-driven design<\/strong>. You have to model your microservices around key business domains of the system. Expose only necessary information, that way parts of the product will exchange only what is truly necessary. This is called \u201cboundary context\u201d.&nbsp;<\/p>\n\n\n\n<p>For example: if you have an ecommerce solution, your <strong>bounded context<\/strong> would be information about a shopping cart, inventory in the sop, what user is using the cart, etc. Security? What for? We have a specialized microservice for that. Payment? Another part of the system, sorry. Application update? Wrong address, we have an app\u2026 sorry, a microservice for that. In essence, it\u2019s about system architecture mimicking your team\u2019s structure. It\u2019s known as <a href=\"https:\/\/en.wikipedia.org\/wiki\/Conway%27s_law\" rel=\"nofollow\">Conway\u2019s Law<\/a>.<\/p>\n\n\n\n<p>OK, we have that covered, now what? <strong>Monitoring and health management<\/strong>. Scalability is cool but if a small, very specialized microservice catches a cold, you may not see it for quite some time. The cold, not the microservice. When an application is broken down into many cooperating and sometimes co-dependent parts, the natural outcome is more ground to cover. Advanced monitoring algorithms can help with that.&nbsp;<\/p>\n\n\n\n<p>And that brings us to testing. With so many moving parts, you need a good system for <a href=\"https:\/\/codeandpepper.com\/services\/quality-assurance\">quality assurance<\/a>. A good testing strategy should involve coverage of every component in a product unit, component, integration, contract, and end-to-end testing will help you spot issues.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-things-get-a-little-more-complicated\">Things get a little more complicated<\/h3>\n\n\n\n<p>And they can pop up; nothing is ever perfect. There can be <strong>dependencies<\/strong> that form an issue but how to break dependencies of components that form a single system? Through contracts, which define how an API looks like, which data it expects and which one it returns. You can think of it as an agreement between a supplier and a consumer. They talked and agreed on what should be delivered and how but not how goods are produced or who supplied electricity to the factor that makes these products. Both parties should care about it all, right?&nbsp;<\/p>\n\n\n\n<p>Naturally, at some point, you will need to modify the contract a little bit. That\u2019s where <strong>versioning<\/strong> comes on stage. You can version contracts with <a href=\"https:\/\/semver.org\/\" rel=\"nofollow\">Semantic Versioning<\/a> and automate contract compatibility tests. Consequently, tools like <a href=\"https:\/\/docs.pact.io\/\" rel=\"nofollow\">Pact<\/a> will help you manage all contracts and their versions.&nbsp;<\/p>\n\n\n\n<p>Of course, questions like \u201cwhat is microservices\u2019 architecture\u201d spawn different ones. Like, for example, \u201cwhere are my <strong>product\u2019s logs<\/strong>?\u201d With monolithic application this question is easy to answer \u2013 here\u2019s the location, have fun. With microservices, especially their multitude of instances and massive production of logs, things get a little tricky. Basically, you need two things: <strong>log consolidation and correlation<\/strong>.<\/p>\n\n\n\n<p>With <strong>logs consolidation<\/strong>, you have access to all the logs from a single place. There are, however, different solutions to this. You can set up a global shared folder which all microservice instances write. You can have a dedicated microservice that gathers log entries to tools. For example, <a href=\"https:\/\/www.elastic.co\/what-is\/elk-stack\" rel=\"nofollow\">ELK (Elasticsearch, Logtash, and Kibana)<\/a> plus <a href=\"https:\/\/serilog.net\/\" rel=\"nofollow\">Serilog<\/a>. This makes logging to a common location easy to configure. Plus, it makes all the logs easier to search through.<\/p>\n\n\n\n<p>OK, that\u2019s covered, but what about readability? To make your life easier, you can add correlation ID to the very log entry. Correlation ID allows to track logical flow as it travels through multiple services. Just remember to pass the ID with every API request you make (HTTP header is perfect for this).<\/p>\n\n\n\n<section id=\"Microservices architecture and the learning curve\" class=\"hidden-block\"><\/section>\n\n<style type=\"text\/css\">\n  #Microservices architecture and the learning curve {\n    visibility: hidden !important;\n  }\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-microservices-architecture-and-the-learning-curve\">Microservices architecture and the learning curve<\/h2>\n\n\n\n<p>To squeeze the most out of microservices, you first have to understand them. There are few components to each microservice:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>the microservice itself<\/li><li>containers<\/li><li>service mesh<\/li><li>service discovery<\/li><li>API gateway<\/li><\/ul>\n\n\n\n<p>Each of them is responsible for a different aspect of functionality. Containers, for example, package services and their dependencies. They make sure that the unit is consistent throughout the entire development process. That includes testing as well. Service mesh, on the other hand, facilitates communication between microservices. All happens through a specially created, dynamic messaging layer.<\/p>\n\n\n\n<p>Service discovery helps the system to adapt to changes in deployment. It helps microservices locate each other in a network. Finally, the API gateway creates an open line between microservices and outside clients.&nbsp;<\/p>\n\n\n\n<p>This is the infrastructure for you. Sounds simple but this description is only skin-deep. There is a lot of business logic going into every aspect and a lot to learn on the developers\u2019 part.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-studies-and-conclusions\">Studies and conclusions<\/h3>\n\n\n\n<p>There are a lot of companies using them and we will touch on that in a separate article. For now, let\u2019s head on to the <a href=\"https:\/\/www.oreilly.com\/radar\/microservices-adoption-in-2020\" rel=\"nofollow\">2020\u2019s microservices adoption study by O\u2019Reilly<\/a>.&nbsp;<\/p>\n\n\n\n<p>Most adopters think they are successful after bringing this tech to the table. 10% reports a complete success, 54% of responders think the adoption went mostly successful and 92% reported at least some success. At the same time, they are surprised by the microservices\u2019 level of maturity.&nbsp;<\/p>\n\n\n\n<p>Interesting data surfaces when it comes to conclusions. <strong>74% of responders say that success with using microservices leads to owning the software lifecycle<\/strong>. In other words, microservices are like New York. If you can make it there, you can make it anywhere.&nbsp;<\/p>\n\n\n\n<p>It\u2019s interesting, especially from a distance. In this 2018\u2019s <a href=\"https:\/\/dzone.com\/guides\/microservices-3\" rel=\"nofollow\">study by DZOne<\/a>, 59% of respondents admitted using microservices in some capacity. 38% of them used microservices for development and production, 16% for development only, 5% for production only. Almost 60% of asked companies use microservices \u2013 which shows the architecture can be mastered. At least understood and accepted, leaving actual product development to the specialized companies that can support <a href=\"https:\/\/codeandpepper.com\/services\/digital-transformation-it-services\">digital transformation<\/a>.<\/p>\n\n\n\n<p>When asked <strong>\u2018Why are you using microservices?\u2019<\/strong>, 69% responded that making applications easily scalable is imperative to them. 64% of companies wanted to enable faster deployments to one part of an app. That\u2019s not surprising at all but we have to remember that there\u2019s a learning curve when it comes to that. Many executives and developers ask \u201cwhy microservices?\u201d and are charmed with benefits but it\u2019s not necessarily that easy.<\/p>\n\n\n\n<section id=\"What are the types of microservices?\" class=\"hidden-block\"><\/section>\n\n<style type=\"text\/css\">\n  #What are the types of microservices? {\n    visibility: hidden !important;\n  }\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-the-types-of-microservices\">What are the types of microservices?<\/h2>\n\n\n\n<p>That\u2019s because many targeted options need many targeted, individualized approaches. But also, because there are types of microservices. <strong>Broadly speaking, there are two types to be exact:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Stateless<\/strong>. They don\u2019t maintain a session state between requests. Let\u2019s show it in an example: if any of the service instances is removed, it doesn\u2019t affect the processing logic for the service. Distributed systems prefer stateless microservices.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Stateful<\/strong>. They store session information locally (in a given instance, in memory or hard drive). When two or more microservices communicate, they maintain a service request state. In the real world, stateless services are a good choice, but there are multiple use cases where you need to keep state information.<\/li><\/ul>\n\n\n\n<p>Without going into big details, these are the two main types.<\/p>\n\n\n\n<section id=\"What are microservices in AWS?\" class=\"hidden-block\"><\/section>\n\n<style type=\"text\/css\">\n  #What are microservices in AWS? {\n    visibility: hidden !important;\n  }\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-microservices-in-aws\">What are microservices in AWS?<\/h2>\n\n\n\n<p>Amazon Web Services or AWS for short is a great choice for not only powering your digital product but also to implement microservices. In the near future, we will have a separate article on how to deploy microservices on the AWS cloud. For now, let\u2019s stick to the basics.<\/p>\n\n\n\n<p>AWS is widely used to implement applications powered by microservices. It can support them in the following areas:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>continuous delivery \/ continuous integration<\/li><li>storage<\/li><li>databases<\/li><li>computing<\/li><li>networking<\/li><\/ul>\n\n\n\n<p>messaging<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>monitoring<\/li><\/ul>\n\n\n\n<p>Here\u2019s a typical frontend of an application based on microservices and deployed through AWS:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01.jpeg\" alt=\"What are advantages of microservices\" class=\"wp-image-27622\" width=\"776\" height=\"450\" srcset=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01.jpeg 776w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01-300x174.jpeg 300w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01-768x445.jpeg 768w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01-80x46.jpeg 80w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01-107x62.jpeg 107w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01-361x209.jpeg 361w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01-429x249.jpeg 429w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01-172x100.jpeg 172w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01-720x418.jpeg 720w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages_infograph_01-432x251.jpeg 432w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/><\/figure>\n\n\n\n<section id=\"What is microservices architecture? Ask yourself!\" class=\"hidden-block\"><\/section>\n\n<style type=\"text\/css\">\n  #What is microservices architecture? Ask yourself! {\n    visibility: hidden !important;\n  }\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-microservices-architecture-ask-yourself\">What is microservices architecture? Ask yourself!<\/h2>\n\n\n\n<p>This slightly provocative subtitle serves as a reminder that the final application\u2019s architecture is up to you and your business needs. Your response to the market\u2019s expectations should define the final inside look of the product you\u2019re after.&nbsp;<\/p>\n\n\n\n<p>This can be complicated, so use <a href=\"https:\/\/codeandpepper.com\/services\/it-software-team-augmentation\">team augmentation services<\/a> to help you out.<\/p>\n\n\n\n\n\n<section id=\"contact\" class=\"contact-block block common-block \">\n  <div class=\"container\">\n\n\n    \n  <svg class=\"wave\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"280\" height=\"9\" viewBox=\"0 0 280 9\">\n    <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M0 3.6c2.88 0 4.18-.668 5.824-1.515C7.724 1.108 9.879 0 13.998 0c4.12 0 6.274 1.108 8.175 2.085 1.644.847 2.943 1.515 5.823 1.515 2.88 0 4.179-.668 5.824-1.515C35.72 1.108 37.874 0 41.995 0c4.12 0 6.274 1.108 8.174 2.085 1.645.847 2.945 1.515 5.824 1.515 2.88 0 4.18-.668 5.826-1.515C63.719 1.108 65.873 0 69.993 0c4.12 0 6.274 1.108 8.174 2.085 1.645.847 2.945 1.515 5.823 1.515 2.88 0 4.18-.668 5.825-1.515C91.715 1.108 93.87 0 97.99 0c4.12 0 6.273 1.108 8.174 2.085 1.645.847 2.945 1.515 5.823 1.515 2.88 0 4.178-.668 5.824-1.515 1.9-.977 4.054-2.085 8.173-2.085 4.12 0 6.273 1.108 8.174 2.085 1.646.847 2.945 1.515 5.825 1.515 2.88 0 4.18-.668 5.826-1.515 1.9-.977 4.055-2.085 8.175-2.085 4.12 0 6.273 1.108 8.174 2.085 1.646.847 2.945 1.515 5.825 1.515 2.88 0 4.179-.668 5.824-1.515 1.9-.977 4.054-2.085 8.175-2.085 4.12 0 6.274 1.108 8.175 2.085 1.646.847 2.946 1.515 5.826 1.515 2.88 0 4.18-.668 5.826-1.515 1.9-.977 4.054-2.085 8.175-2.085 4.12 0 6.273 1.108 8.174 2.085 1.646.847 2.945 1.515 5.825 1.515 2.881 0 4.18-.668 5.827-1.515 1.9-.977 4.056-2.085 8.176-2.085 4.121 0 6.276 1.108 8.177 2.085 1.646.847 2.946 1.515 5.827 1.515s4.181-.668 5.828-1.515C259.718 1.108 261.873 0 265.995 0c4.121 0 6.275 1.108 8.177 2.084 1.645.848 2.946 1.516 5.828 1.516V9h-.007l-5.252-.793c-1.129-.382-2.056-.848-2.919-1.291-1.646-.847-2.946-1.516-5.827-1.516-2.882 0-4.183.669-5.829 1.516-1.9.977-4.056 2.084-8.177 2.084-4.12 0-6.275-1.107-8.176-2.084-1.647-.847-2.947-1.516-5.828-1.516-2.88 0-4.18.669-5.827 1.516-1.9.977-4.055 2.084-8.176 2.084-4.12 0-6.273-1.107-8.175-2.084-1.645-.847-2.944-1.516-5.824-1.516s-4.18.669-5.826 1.516c-1.9.977-4.055 2.084-8.175 2.084-4.12 0-6.275-1.107-8.176-2.084-1.644-.847-2.945-1.516-5.825-1.516-2.88 0-4.18.669-5.825 1.516-1.9.977-4.054 2.084-8.174 2.084-4.12 0-6.274-1.107-8.176-2.084-1.644-.847-2.943-1.516-5.823-1.516-2.88 0-4.18.669-5.826 1.516-1.9.977-4.054 2.084-8.175 2.084-4.12 0-6.274-1.107-8.174-2.084-1.646-.847-2.946-1.516-5.825-1.516s-4.179.669-5.824 1.516c-1.9.977-4.053 2.084-8.173 2.084s-6.273-1.107-8.173-2.084c-1.645-.847-2.945-1.516-5.824-1.516-2.88 0-4.179.669-5.824 1.516C90.265 7.893 88.11 9 83.99 9c-4.12 0-6.273-1.107-8.173-2.084-1.645-.847-2.944-1.516-5.824-1.516s-4.18.669-5.825 1.516C62.268 7.893 60.113 9 55.993 9c-4.12 0-6.274-1.107-8.174-2.084-1.645-.847-2.945-1.516-5.824-1.516-2.88 0-4.18.669-5.825 1.516C34.27 7.893 32.116 9 27.996 9c-4.12 0-6.273-1.107-8.174-2.084-1.645-.847-2.945-1.516-5.824-1.516s-4.179.669-5.824 1.516C7.311 7.359 1.127 8.618 0 9\"\/>\n<\/svg>\n\n<h2 class=\"block-title section-title\">\n  Let&#8217;s talk about your project!<\/h2>\n\n\n  <div class=\"block-description typography-body\">\n    <p>I can help you with implementing microservices to your project. Also, with overall software development.<\/p>\n  <\/div>\n\n    \n          <div class=\"contact-block-person\">\n        <img loading=\"lazy\" decoding=\"async\" width=\"90\" height=\"90\" src=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web.jpg\" class=\"contact-block-person-image\" alt=\"Jacek Kosciesza portrait\" srcset=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web.jpg 1200w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-300x300.jpg 300w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-1024x1024.jpg 1024w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-150x150.jpg 150w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-768x768.jpg 768w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-209x209.jpg 209w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-140x140.jpg 140w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-250x250.jpg 250w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-100x100.jpg 100w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-700x700.jpg 700w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-864x864.jpg 864w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/09\/jacek-kosciesza-web-432x432.jpg 432w\" sizes=\"auto, (max-width: 90px) 100vw, 90px\" \/>        <div class=\"contact-block-person-text\">\n          <div class=\"typography-title-m\">\n            Jacek          <\/div>\n          <div class=\"typography-body-medium\">\n            CTO          <\/div>\n        <\/div>\n      <\/div>\n    \n\n    <form class=\"contact-form\" method=\"POST\" action=\"https:\/\/codeandpepper.com\/wp-admin\/admin-ajax.php\">\n            <amp-recaptcha-input layout=\"nodisplay\" name=\"recaptcha_token\" data-sitekey=\"6LeEo8cqAAAAABpahzrYQeEsO-xoutAjoIkrKpTB\" data-action=\"contact_block\"><\/amp-recaptcha-input>\n            <input type=\"hidden\" name=\"action\" value=\"contact_block_submit\" \/>\n      <input type=\"hidden\" name=\"block\" value=\"smallContactForm\" \/>\n      <input id=\"contact-email\" type=\"email\" name=\"email\" placeholder=\"Email\" class=\"gtm_form_input\" required>\n      <label for=\"contact-email\" class=\"contact-block-hidden-label\">Email<\/label>\n      <input id=\"contact-name\" type=\"text\" name=\"name\" placeholder=\"Full name\" class=\"gtm_form_input\" required>\n      <label for=\"contact-name\" class=\"contact-block-hidden-label\">\n        Full name      <\/label>\n\n      <input type=\"submit\" name=\"submit\" value=\"GET A QUOTE\" class=\"gtm_form_submit btn-big\">\n\n      <div submitting>\n      <\/div>\n      <div id=\"TYPSmallForm\" class=\"submit-msg submit-success\" submit-success>\n        <template type=\"amp-mustache\">\n          <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"26\" height=\"26\" viewBox=\"0 0 26 26\">\n    <g fill=\"none\" fill-rule=\"evenodd\">\n        <g stroke=\"#FFF\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" transform=\"translate(1 1)\">\n            <path d=\"M17 8.5l-7.5 7L7 13\"\/>\n            <circle cx=\"12\" cy=\"12\" r=\"11.5\"\/>\n        <\/g>\n        <path d=\"M1 1h24v24H1z\"\/>\n    <\/g>\n<\/svg>\n          Your message has been sent. We will get back to you as soon as possible.\n        <\/template>\n      <\/div>\n      <div id=\"ErrorSmallForm\" class=\"submit-msg submit-error\" submit-error>\n        <template type=\"amp-mustache\">\n          <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"25\" height=\"25\" viewBox=\"0 0 25 25\">\n    <g fill=\"none\" fill-rule=\"evenodd\">\n        <g stroke=\"currentColor\" stroke-linejoin=\"round\">\n            <path stroke-linecap=\"round\" stroke-width=\"2\" d=\"M23.498 12.31c.105 6.075-4.923 11.086-10.998 11.192-6.074.104-10.893-4.734-10.998-10.81C1.396 6.619 6.426 1.606 12.5 1.502c6.074-.106 10.893 4.734 10.998 10.808zM12.5 14V7\"\/>\n            <path fill=\"currentColor\" stroke-width=\"1.5\" d=\"M13 17.5a.5.5 0 0 1-1 0 .5.5 0 0 1 1 0z\"\/>\n        <\/g>\n        <path d=\"M1 0h24v24H1z\"\/>\n    <\/g>\n<\/svg>\n          Oops! Something went wrong. Please try again later.\n        <\/template>\n      <\/div>\n    <\/form>\n\n\n  <\/div>\n<\/section>\n<style type=\"text\/css\">\n  #contact {\n    background: #009fe3;\n    color: #FFFFFF;\n  }\n\n  #contactsvg {\n    color: #ffffff;\n  }\n<\/style>\n\n<section id=\"related-posts-block_628f72f27c7d2\" class=\"related-posts-block block common-block \">\n  <div class=\"container\">\n\n\n    \n  <svg class=\"wave\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"280\" height=\"9\" viewBox=\"0 0 280 9\">\n    <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M0 3.6c2.88 0 4.18-.668 5.824-1.515C7.724 1.108 9.879 0 13.998 0c4.12 0 6.274 1.108 8.175 2.085 1.644.847 2.943 1.515 5.823 1.515 2.88 0 4.179-.668 5.824-1.515C35.72 1.108 37.874 0 41.995 0c4.12 0 6.274 1.108 8.174 2.085 1.645.847 2.945 1.515 5.824 1.515 2.88 0 4.18-.668 5.826-1.515C63.719 1.108 65.873 0 69.993 0c4.12 0 6.274 1.108 8.174 2.085 1.645.847 2.945 1.515 5.823 1.515 2.88 0 4.18-.668 5.825-1.515C91.715 1.108 93.87 0 97.99 0c4.12 0 6.273 1.108 8.174 2.085 1.645.847 2.945 1.515 5.823 1.515 2.88 0 4.178-.668 5.824-1.515 1.9-.977 4.054-2.085 8.173-2.085 4.12 0 6.273 1.108 8.174 2.085 1.646.847 2.945 1.515 5.825 1.515 2.88 0 4.18-.668 5.826-1.515 1.9-.977 4.055-2.085 8.175-2.085 4.12 0 6.273 1.108 8.174 2.085 1.646.847 2.945 1.515 5.825 1.515 2.88 0 4.179-.668 5.824-1.515 1.9-.977 4.054-2.085 8.175-2.085 4.12 0 6.274 1.108 8.175 2.085 1.646.847 2.946 1.515 5.826 1.515 2.88 0 4.18-.668 5.826-1.515 1.9-.977 4.054-2.085 8.175-2.085 4.12 0 6.273 1.108 8.174 2.085 1.646.847 2.945 1.515 5.825 1.515 2.881 0 4.18-.668 5.827-1.515 1.9-.977 4.056-2.085 8.176-2.085 4.121 0 6.276 1.108 8.177 2.085 1.646.847 2.946 1.515 5.827 1.515s4.181-.668 5.828-1.515C259.718 1.108 261.873 0 265.995 0c4.121 0 6.275 1.108 8.177 2.084 1.645.848 2.946 1.516 5.828 1.516V9h-.007l-5.252-.793c-1.129-.382-2.056-.848-2.919-1.291-1.646-.847-2.946-1.516-5.827-1.516-2.882 0-4.183.669-5.829 1.516-1.9.977-4.056 2.084-8.177 2.084-4.12 0-6.275-1.107-8.176-2.084-1.647-.847-2.947-1.516-5.828-1.516-2.88 0-4.18.669-5.827 1.516-1.9.977-4.055 2.084-8.176 2.084-4.12 0-6.273-1.107-8.175-2.084-1.645-.847-2.944-1.516-5.824-1.516s-4.18.669-5.826 1.516c-1.9.977-4.055 2.084-8.175 2.084-4.12 0-6.275-1.107-8.176-2.084-1.644-.847-2.945-1.516-5.825-1.516-2.88 0-4.18.669-5.825 1.516-1.9.977-4.054 2.084-8.174 2.084-4.12 0-6.274-1.107-8.176-2.084-1.644-.847-2.943-1.516-5.823-1.516-2.88 0-4.18.669-5.826 1.516-1.9.977-4.054 2.084-8.175 2.084-4.12 0-6.274-1.107-8.174-2.084-1.646-.847-2.946-1.516-5.825-1.516s-4.179.669-5.824 1.516c-1.9.977-4.053 2.084-8.173 2.084s-6.273-1.107-8.173-2.084c-1.645-.847-2.945-1.516-5.824-1.516-2.88 0-4.179.669-5.824 1.516C90.265 7.893 88.11 9 83.99 9c-4.12 0-6.273-1.107-8.173-2.084-1.645-.847-2.944-1.516-5.824-1.516s-4.18.669-5.825 1.516C62.268 7.893 60.113 9 55.993 9c-4.12 0-6.274-1.107-8.174-2.084-1.645-.847-2.945-1.516-5.824-1.516-2.88 0-4.18.669-5.825 1.516C34.27 7.893 32.116 9 27.996 9c-4.12 0-6.273-1.107-8.174-2.084-1.645-.847-2.945-1.516-5.824-1.516s-4.179.669-5.824 1.516C7.311 7.359 1.127 8.618 0 9\"\/>\n<\/svg>\n\n<h2 class=\"block-title section-title\">\n  Related posts<\/h2>\n\n\n\n    <div>\n      <div class=\"related-posts\">\n                  <div class=\"related-post\">\n            <h3 class=\"related-post-title typography-title-m\">\n              <a href=\"https:\/\/codeandpepper.com\/companies-using-microservices\/\" title=\"10 Companies Using Microservices\">\n                10 Companies Using Microservices              <\/a>\n            <\/h3>\n                          <a class=\"related-post-thumbnail\" aria-label=\"10 Companies Using Microservices\" href=\"https:\/\/codeandpepper.com\/companies-using-microservices\/\">\n                <img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"189\" src=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/11\/Microservices_10services.jpeg\" class=\"attachment-blog-thumbnail size-blog-thumbnail wp-post-image\" alt=\"companies using microservices\" srcset=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/11\/Microservices_10services.jpeg 864w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/11\/Microservices_10services-768x400.jpeg 768w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/11\/Microservices_10services-80x42.jpeg 80w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/11\/Microservices_10services-119x62.jpeg 119w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/11\/Microservices_10services-433x226.jpeg 433w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/11\/Microservices_10services-192x100.jpeg 192w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/11\/Microservices_10services-720x375.jpeg 720w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/11\/Microservices_10services-432x225.jpeg 432w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/>              <\/a>\n                        <p class=\"related-post-description typography-body-smaller\">\n              Companies using microservices enjoy better performance, security, user count and higher revenue value. What companies utilize them?            <\/p>\n            <a class=\"plus-link\" href=\"https:\/\/codeandpepper.com\/companies-using-microservices\/\">\n              <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"17\" height=\"17\" viewBox=\"0 0 17 17\">\n    <path d=\"M7 0h3v17H7z\"\/>\n    <path d=\"M17 7v3H0V7z\"\/>\n<\/svg>\n              <span>Full Article<\/span>\n            <\/a>\n          <\/div>\n                  <div class=\"related-post\">\n            <h3 class=\"related-post-title typography-title-m\">\n              <a href=\"https:\/\/codeandpepper.com\/microservices-vs-monolithic-architecture\/\" title=\"Microservices vs Monolithic Architecture Comparison\">\n                Microservices vs Monolithic Architecture Comparison              <\/a>\n            <\/h3>\n                          <a class=\"related-post-thumbnail\" aria-label=\"Microservices vs Monolithic Architecture Comparison\" href=\"https:\/\/codeandpepper.com\/microservices-vs-monolithic-architecture\/\">\n                <img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"189\" src=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_vs_Monolithic.jpeg\" class=\"attachment-blog-thumbnail size-blog-thumbnail wp-post-image\" alt=\"Monolithic vs microservices architecture\" srcset=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_vs_Monolithic.jpeg 864w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_vs_Monolithic-768x400.jpeg 768w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_vs_Monolithic-80x42.jpeg 80w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_vs_Monolithic-119x62.jpeg 119w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_vs_Monolithic-433x226.jpeg 433w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_vs_Monolithic-192x100.jpeg 192w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_vs_Monolithic-720x375.jpeg 720w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_vs_Monolithic-432x225.jpeg 432w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/>              <\/a>\n                        <p class=\"related-post-description typography-body-smaller\">\n              Many design-related issues flows to the surface when it comes to microservices vs monolithic architecture issue. What approach is better?            <\/p>\n            <a class=\"plus-link\" href=\"https:\/\/codeandpepper.com\/microservices-vs-monolithic-architecture\/\">\n              <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"17\" height=\"17\" viewBox=\"0 0 17 17\">\n    <path d=\"M7 0h3v17H7z\"\/>\n    <path d=\"M17 7v3H0V7z\"\/>\n<\/svg>\n              <span>Full Article<\/span>\n            <\/a>\n          <\/div>\n                  <div class=\"related-post\">\n            <h3 class=\"related-post-title typography-title-m\">\n              <a href=\"https:\/\/codeandpepper.com\/microservices-patterns-best-practices\/\" title=\"Best Microservices Patterns\">\n                Best Microservices Patterns              <\/a>\n            <\/h3>\n                          <a class=\"related-post-thumbnail\" aria-label=\"Best Microservices Patterns\" href=\"https:\/\/codeandpepper.com\/microservices-patterns-best-practices\/\">\n                <img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"189\" src=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_patterns.jpeg.jpg\" class=\"attachment-blog-thumbnail size-blog-thumbnail wp-post-image\" alt=\"How to build microservices - best practices\" srcset=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_patterns.jpeg.jpg 864w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_patterns.jpeg-768x400.jpg 768w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_patterns.jpeg-80x42.jpg 80w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_patterns.jpeg-119x62.jpg 119w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_patterns.jpeg-433x226.jpg 433w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_patterns.jpeg-192x100.jpg 192w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_patterns.jpeg-720x375.jpg 720w, https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_patterns.jpeg-432x225.jpg 432w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/>              <\/a>\n                        <p class=\"related-post-description typography-body-smaller\">\n              There are microservices patterns that impact the overall product&#8217;s performance. Read to learn more on what to use and what to avoid!            <\/p>\n            <a class=\"plus-link\" href=\"https:\/\/codeandpepper.com\/microservices-patterns-best-practices\/\">\n              <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"17\" height=\"17\" viewBox=\"0 0 17 17\">\n    <path d=\"M7 0h3v17H7z\"\/>\n    <path d=\"M17 7v3H0V7z\"\/>\n<\/svg>\n              <span>Full Article<\/span>\n            <\/a>\n          <\/div>\n              <\/div>\n    <\/div>\n\n\n  <\/div>\n<\/section>\n\n<style type=\"text\/css\">\n  #related-posts-block_628f72f27c7d2 {\n    background: ;\n    color: ;\n  }\n\n  #related-posts-block_628f72f27c7d2 .block-title {\n    color: ;\n  }\n<\/style>","protected":false},"excerpt":{"rendered":"<p>What are microservices? They are loosely bound, light services and protocols that can build your application. Highly specialized in nature, they tackle specific topics and handle challenges in a very agile way. Through this specialization, your application can perform better. What exactly is microservices architecture and what are the advantages of microservices?<\/p>\n","protected":false},"author":20413,"featured_media":27620,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1647],"tags":[1706,173,2072],"class_list":["post-27619","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development","tag-fintech-industry","tag-software-development-process","tag-software-infrastructure"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What Are Microservices? Architecture, Importance, Advantages, Types | Code &amp; Pepper<\/title>\n<meta name=\"description\" content=\"Company owners ask what are microservices and how they can boost a digital product and make it more secure. We answer in this article.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeandpepper.com\/what-are-microservices\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Are Microservices? Architecture, Importance, Advantages, Types | Code &amp; Pepper\" \/>\n<meta property=\"og:description\" content=\"Company owners ask what are microservices and how they can boost a digital product and make it more secure. We answer in this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeandpepper.com\/what-are-microservices\/\" \/>\n<meta property=\"og:site_name\" content=\"Code &amp; Pepper\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codeandpepper\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-03T14:23:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-26T12:32:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"864\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jaros\u0142aw \u015aci\u015blak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeandpepper\" \/>\n<meta name=\"twitter:site\" content=\"@codeandpepper\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jaros\u0142aw \u015aci\u015blak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/\"},\"author\":{\"name\":\"Jaros\u0142aw \u015aci\u015blak\",\"@id\":\"https:\/\/codeandpepper.com\/#\/schema\/person\/4d99a36115b17f10860637a13b3b3885\"},\"headline\":\"What Are Microservices? Architecture, Importance, Advantages, Types\",\"datePublished\":\"2021-11-03T14:23:10+00:00\",\"dateModified\":\"2022-05-26T12:32:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/\"},\"wordCount\":2943,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codeandpepper.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg\",\"keywords\":[\"FinTech industry\",\"Software development process\",\"Software infrastructure\"],\"articleSection\":[\"Software Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codeandpepper.com\/what-are-microservices\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/\",\"url\":\"https:\/\/codeandpepper.com\/what-are-microservices\/\",\"name\":\"What Are Microservices? Architecture, Importance, Advantages, Types | Code &amp; Pepper\",\"isPartOf\":{\"@id\":\"https:\/\/codeandpepper.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg\",\"datePublished\":\"2021-11-03T14:23:10+00:00\",\"dateModified\":\"2022-05-26T12:32:31+00:00\",\"description\":\"Company owners ask what are microservices and how they can boost a digital product and make it more secure. We answer in this article.\",\"breadcrumb\":{\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codeandpepper.com\/what-are-microservices\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/#primaryimage\",\"url\":\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg\",\"contentUrl\":\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg\",\"width\":864,\"height\":450},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codeandpepper.com\/what-are-microservices\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codeandpepper.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What Are Microservices? Architecture, Importance, Advantages, Types\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codeandpepper.com\/#website\",\"url\":\"https:\/\/codeandpepper.com\/\",\"name\":\"Code & Pepper\",\"description\":\"FinTech Developers\",\"publisher\":{\"@id\":\"https:\/\/codeandpepper.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codeandpepper.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codeandpepper.com\/#organization\",\"name\":\"Code & Pepper\",\"url\":\"https:\/\/codeandpepper.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codeandpepper.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/06\/logo.png\",\"contentUrl\":\"https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/06\/logo.png\",\"width\":319,\"height\":144,\"caption\":\"Code & Pepper\"},\"image\":{\"@id\":\"https:\/\/codeandpepper.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codeandpepper\/\",\"https:\/\/x.com\/codeandpepper\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codeandpepper.com\/#\/schema\/person\/4d99a36115b17f10860637a13b3b3885\",\"name\":\"Jaros\u0142aw \u015aci\u015blak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codeandpepper.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ab028da5fc780b19966f305918b0045520176e8bc7c265540adcce45ab2cd0c9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ab028da5fc780b19966f305918b0045520176e8bc7c265540adcce45ab2cd0c9?s=96&d=mm&r=g\",\"caption\":\"Jaros\u0142aw \u015aci\u015blak\"},\"description\":\"Branding, marketing, business scaling, content &amp; company culture specialist. Over 20 years of experience in marketing, strategy, and writing. Learn more by visiting: scislak.com\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/jaroslawscislak\"],\"url\":\"https:\/\/codeandpepper.com\/author\/jarek-scislak\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Are Microservices? Architecture, Importance, Advantages, Types | Code &amp; Pepper","description":"Company owners ask what are microservices and how they can boost a digital product and make it more secure. We answer in this article.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codeandpepper.com\/what-are-microservices\/","og_locale":"en_US","og_type":"article","og_title":"What Are Microservices? Architecture, Importance, Advantages, Types | Code &amp; Pepper","og_description":"Company owners ask what are microservices and how they can boost a digital product and make it more secure. We answer in this article.","og_url":"https:\/\/codeandpepper.com\/what-are-microservices\/","og_site_name":"Code &amp; Pepper","article_publisher":"https:\/\/www.facebook.com\/codeandpepper\/","article_published_time":"2021-11-03T14:23:10+00:00","article_modified_time":"2022-05-26T12:32:31+00:00","og_image":[{"width":864,"height":450,"url":"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg","type":"image\/jpeg"}],"author":"Jaros\u0142aw \u015aci\u015blak","twitter_card":"summary_large_image","twitter_creator":"@codeandpepper","twitter_site":"@codeandpepper","twitter_misc":{"Written by":"Jaros\u0142aw \u015aci\u015blak","Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codeandpepper.com\/what-are-microservices\/#article","isPartOf":{"@id":"https:\/\/codeandpepper.com\/what-are-microservices\/"},"author":{"name":"Jaros\u0142aw \u015aci\u015blak","@id":"https:\/\/codeandpepper.com\/#\/schema\/person\/4d99a36115b17f10860637a13b3b3885"},"headline":"What Are Microservices? Architecture, Importance, Advantages, Types","datePublished":"2021-11-03T14:23:10+00:00","dateModified":"2022-05-26T12:32:31+00:00","mainEntityOfPage":{"@id":"https:\/\/codeandpepper.com\/what-are-microservices\/"},"wordCount":2943,"commentCount":0,"publisher":{"@id":"https:\/\/codeandpepper.com\/#organization"},"image":{"@id":"https:\/\/codeandpepper.com\/what-are-microservices\/#primaryimage"},"thumbnailUrl":"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg","keywords":["FinTech industry","Software development process","Software infrastructure"],"articleSection":["Software Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeandpepper.com\/what-are-microservices\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeandpepper.com\/what-are-microservices\/","url":"https:\/\/codeandpepper.com\/what-are-microservices\/","name":"What Are Microservices? Architecture, Importance, Advantages, Types | Code &amp; Pepper","isPartOf":{"@id":"https:\/\/codeandpepper.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeandpepper.com\/what-are-microservices\/#primaryimage"},"image":{"@id":"https:\/\/codeandpepper.com\/what-are-microservices\/#primaryimage"},"thumbnailUrl":"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg","datePublished":"2021-11-03T14:23:10+00:00","dateModified":"2022-05-26T12:32:31+00:00","description":"Company owners ask what are microservices and how they can boost a digital product and make it more secure. We answer in this article.","breadcrumb":{"@id":"https:\/\/codeandpepper.com\/what-are-microservices\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeandpepper.com\/what-are-microservices\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeandpepper.com\/what-are-microservices\/#primaryimage","url":"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg","contentUrl":"https:\/\/codeandpepper.com\/wp-content\/uploads\/2021\/10\/Microservices_Advantages.jpeg","width":864,"height":450},{"@type":"BreadcrumbList","@id":"https:\/\/codeandpepper.com\/what-are-microservices\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeandpepper.com\/"},{"@type":"ListItem","position":2,"name":"What Are Microservices? Architecture, Importance, Advantages, Types"}]},{"@type":"WebSite","@id":"https:\/\/codeandpepper.com\/#website","url":"https:\/\/codeandpepper.com\/","name":"Code & Pepper","description":"FinTech Developers","publisher":{"@id":"https:\/\/codeandpepper.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeandpepper.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeandpepper.com\/#organization","name":"Code & Pepper","url":"https:\/\/codeandpepper.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeandpepper.com\/#\/schema\/logo\/image\/","url":"https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/06\/logo.png","contentUrl":"https:\/\/codeandpepper.com\/wp-content\/uploads\/2019\/06\/logo.png","width":319,"height":144,"caption":"Code & Pepper"},"image":{"@id":"https:\/\/codeandpepper.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codeandpepper\/","https:\/\/x.com\/codeandpepper"]},{"@type":"Person","@id":"https:\/\/codeandpepper.com\/#\/schema\/person\/4d99a36115b17f10860637a13b3b3885","name":"Jaros\u0142aw \u015aci\u015blak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeandpepper.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ab028da5fc780b19966f305918b0045520176e8bc7c265540adcce45ab2cd0c9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ab028da5fc780b19966f305918b0045520176e8bc7c265540adcce45ab2cd0c9?s=96&d=mm&r=g","caption":"Jaros\u0142aw \u015aci\u015blak"},"description":"Branding, marketing, business scaling, content &amp; company culture specialist. Over 20 years of experience in marketing, strategy, and writing. Learn more by visiting: scislak.com","sameAs":["https:\/\/www.linkedin.com\/in\/jaroslawscislak"],"url":"https:\/\/codeandpepper.com\/author\/jarek-scislak\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/posts\/27619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/users\/20413"}],"replies":[{"embeddable":true,"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/comments?post=27619"}],"version-history":[{"count":11,"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/posts\/27619\/revisions"}],"predecessor-version":[{"id":36670,"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/posts\/27619\/revisions\/36670"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/media\/27620"}],"wp:attachment":[{"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/media?parent=27619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/categories?post=27619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeandpepper.com\/wp-json\/wp\/v2\/tags?post=27619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}