01 micro-Services Overview and SpringCloud

First, micro Services Architecture

Micro core service of the application is the traditional stop, according to a split into a service business, completely decoupling, each micro-service function service providing a single service, a service do one thing, from a technical a small point of view that is independent of the process, the process is similar to the concept, can start on its own or destroyed separately, they have their own independent database.

Second, micro-services technology stack

Micro service entry Floor technology
Service Development SpringbootSpringSpringMVC
Service configuration and management Netflix's Archaius, Ali Diamond, etc.
Service registration and discovery Eureka, Consul, ZookeeperEtc.
Service call RestRPCgRPC
Service fuse Hystrix, EnvoyEtc.
Load Balancing Ribbon, NginxEtc.
Service interface calls (simplified tool client calls service) FeignWait
message queue Kafka, RabbitMQ, ActiveMQEtc.
Configuration Management Service Center SpringCloudConfig, ChefEtc.
Service Routing (API Gateway) ZuulWait
Service Monitoring Zabbix, Nagios, Metrics, SpectatorEtc.
Full Link Trace Zipkin, Brave, DapperEtc.
Service Deployment Docker, OpenStack, KubernetesEtc.
Dataflow operations Development Kit SpringCloud Stream(Packaging and Redis, Rabbit, Kafkaand other sending and receiving messages)
Event message bus Spring Cloud Bus

Three, SpringCloud Profile

SpringCloudBased on SpringBootproviding a set of micro-services solutions, including registration and service discovery, configuration center, full-link monitoring, service gateway, load balancing, fuses and other components, in addition based on NetFlixopen source components of the package do highly abstract, but also there are some neutral selection of open source components.

SpringCloudUse SpringBootdevelopment convenience cleverly simplifies the development of distributed infrastructure systems, SpringCloudprovides tools to quickly build distributed systems for developers, including configuration management, service discovery, circuit breakers, routing, micro broker, event bus, global lock, decision-making campaign, distributed session and so on, they can use SpringBoota style of development to achieve a key to start and deploy.

SpringCloudNot reinventing the wheel, it just will present each company developed more mature, and can withstand the test of actual service framework combined by SpringBootre-packaging masked a complex configuration and implementation of the principles of style, and ultimately to the developers to stay a set of easy to understand, easy to deploy and easy maintenance of distributed systems development kit

The relationship SpringCloud and SpringBoot

SpringBootFocus on quick and easy development of a single individual micro-services.

SpringCloudIs concerned about the global micro coordination of services finishing governance framework, it SpringBootdeveloped a micro-mer service integration and management together
to provide services between the various micro, configuration management, service discovery, circuit breakers, routing, micro broker, events bus, global lock, decision-making campaign, distributed session etc. integration services

SpringBootYou can leave SpringCloudthe independent use development project, but SpringCloudcan not do without SpringBoot, belongs dependent relationship.

Published 81 original articles · won praise 124 · views 380 000 +

Guess you like

Origin blog.csdn.net/qq_38697437/article/details/103162405