What is micro-services?
Micro-service architecture style is a way to develop a single application for a group of small service method, each service runs in its own process, the inter-service communication using lightweight communication mechanism (usually HTTP resource API). These services build around business capabilities and can be deployed independently by automatic deployment mechanism. These services are the most common small centralized management services developed in different languages available, using different data storage technologies.
The advantages and challenges of micro Services Architecture
Advantages: easy to develop and maintain a single micro-service startup faster 2. 3. 4. The local modification techniques readily deploy unconstrained stack 5. scale on demand
Disadvantages: 1. 2. The operation and maintenance require a higher inherent complexity of distributed 3. 4. Interface costly duplication adjustment
Micro-service design principles
Single Responsibility Principle
The principle of self-service
Lightweight communication mechanism
Micro service granularity
How to achieve micro Services Architecture
· Development framework of choice
Optional Spring Cloud services as micro-development framework
·Operating platform
Micro service does not bind the operating platform, the micro-service deployment in PC Server, or Ali cloud, AWS cloud computing platform are possible. For lightweight and flexible. Aspects of application support and other considerations, this book will show you how to deploy services on micro Docker.