Microservices basics


Microservices development is about is making the architecture at a component level work the way good development practices and well modularization the code.

In simple definitions, microservices have the following characteristics. In this article, we are focusing to see these in a more practical way.
  • Smaller scoped units of work
  • Scale independently among other components without affecting them
  • Focus on data and business or function domains

Before going to the design patterns lets define basics for the microservices




These terms can be explained via a simple example.

Think about a pizza delivery system.

1. Data Service will be a product, customer in this pizza delivery system. 

2. Business service is defined by data services from a business perspective. Business services can be built on a single data domain or multiple data domains. As an example order domain, we can say as business services which uses product data and customer data and also you will need to maintain your inventory also. All of these are bound to the business layer.

3. Translation service is a third party operation in your systems. As an example email sending service and payment gateway services in the delivery system.  The most important thing is these third-party services changes should not affect your entire system. You can be able to plug these external services easily to the underlying system.

4. Edge services use to deliver the content to the outside requirement. As an example, the pizza delivery system could have a web app and a mobile app. So using this edge services you can modify the content and reduce the payload as required to this outside requirements.

Comments

Popular posts from this blog

IOT Greenhouse project part 1

How to fix FirebaseApp with name [DEFAULT] doesn't exist issue with flutter

Let's Learn NodeMCU(EPS8266MOD) very popular IoT component