Micro Services springcloud

Micro Services

Micro-service architecture: an architectural pattern, an application is divided into a set of small services, each running in its own separate process, communicate with each other via HTTP service between the restful API, collaborate, cooperate, to provide users with the ultimate service. Stressed avoid centralized, unified service management mechanism.

· Micro Services: it is a tiny service, emphasized that the size of the service, in the narrow sense is the idea of ​​one model. The individual modules of an application after the split.


Micro services like hospitals in a separate department, dentistry, orthopedics, surgery and so on. These separate sections constitute the hospital, which is micro-services architecture.

1

Why there are micro-services?


The traditional development, an application will be placed inside a project, labeled as a war package, all modules, such as: order, commodities, trading, stocks, etc., in a project which, this service is called boulder service. All in one


This architecture Once a module problem, the entire project will be affected, or even crash


Distributed: a service application, split into individual modules / services, the independent modules, developed separately. Each has its own tiny process, professional people, professional module to do professional things, make clearer division of labor. Independent of each module deployment


This architecture will not affect service between, which module the problem affected only the modules, other modules can still work.


Role of microcredit services

Decoupling the respective service module can have its own database, by springcloudconfig, configured to work together, each module can be individually started and destruction, similar to the concept of the process.


Advantages and disadvantages of micro services

Advantages: micro-services make clearer division of labor, increase development efficiency. Loosely coupled code easier to understand, deploy flexible, able to accept new technology and good scalability.

Disadvantages: Developers want to understand the complexity of distributed systems, with the increase in service, operation and maintenance difficulty pressures. The communication cost between micro-services, depend on the deployment, how to ensure data consistency, how large application integration testing, how to monitor the performance of ...


Micro-service technology stack

Micro-services technology stack: a combination of different technologies.


 We're talking about a distributed micro-architecture services, then it needs to have what dimension


A distributed micro-architecture services digital life in the era of E

Service Governance (Dubbo, etc.) mobile phone (HUAWEI etc.)

Service registration (Zookeeper, etc.) computer (lenovo etc.)

Service call router

Service Load Balancing (nginx) charging treasure

Service Monitoring Smart Speaker

…… ……

SpringCloud provide more than a collection of technologies millet technology can provide the above services

Micro-services technology stack which micro-Services Framework Case: www.b123.com


Micro service entry landing technology Remarks

Service development Springboot, Spring, SpringMVC

Service configuration and management Netfix's Archaius, Ali Diamond

Service registration and discovery Eureka, Consul, Zookeeper, etc.

Service call Rest, RPC, gRPC 

Service fuse Hystrix, Envoy, etc.

Negative - load - are - balanced Ribbon, Nginx, etc.

Service interface calls (to simplify the client calls the service tool) Feign etc.

Message queue Kafka, RabbitMQ, ActiveMQ etc.

Service center configuration management SpringCloudConfig, Chef, etc.

Service Routing (API Gateway) Zuui etc.

Service monitoring Zabbix, Nagios, Metrics, Spectator, etc.

Full Link Trace Zipkin, Brave, Dapper, etc.

Service deployment Docker, OpenStack, Kubernetes etc.

Data Flow Development Kit SpringCloud Stream (package and Redis, Rabbit, Kafka message transmission, etc.)

Event message bus SpringCloud Bus

Why choose SpringCloud

Compared with other distributed micro-services framework that community active high, Ali Dubbo has been no maintenance for five years, and now HSF (High Speed Framework)
support micro multi-service entry


Guess you like

Origin blog.51cto.com/14558453/2448426