In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
One: what is micro service (Microservice)
Microservice English name Microservice,Microservice architecture pattern is to organize the whole Web application into a series of small Web services. These small Web services
Can be independently compiled and deployed, understand the springcloud architecture can be asked: 3536247259, and communicate with each other through their respective exposed API interfaces.
They cooperate with each other and provide functions for users as a whole, but they can be expanded independently.
Functions or usage scenarios required by the microservice architecture
1. We split the whole system into several subsystems according to the business.
2: multiple applications can be deployed in each subsystem, and load balancing is used among multiple applications.
3: a service registry is required, and all services are registered in the registry. Load balancing is also implemented through the use of certain policies for services registered in the registry.
4: all clients access the services in the background through the same gateway address. Through routing configuration, the gateway determines which service processes a URL request. Request
Load balancing is also used when forwarding to the service.
5: services sometimes need to access each other. For example, there is a user module, when other services handle some business, they need to obtain the user data of the user service.
6: a circuit breaker is needed to handle timeouts and errors during service invocation in a timely manner to prevent paralysis of the overall system due to problems with one of the services.
7: you also need a monitoring function to monitor the time spent on each service call, and so on.
At present, the mainstream micro service frameworks: Dubbo, SpringCloud, thrift, Hessian and so on. At present, most of the domestic small and medium-sized enterprises use Dubbo.
SpringCloud is estimated to be rare, and maybe some developers have never heard of it.
Two: SpringCloud project introduction
SpringCloud is a complete framework for implementing micro-services based on SpringBoot. He provides configuration management, service discovery, circuit breakers,
Components such as intelligent routing, micro-agent, control bus, global lock, decision campaign, distributed session and cluster state management. Most important of all,
If used with the spring boot framework, it will make it very convenient for you to develop cloud services based on micro-service architecture.
SpringBoot aims to simplify the creation of production-level Spring applications and services, simplifies configuration files, uses embedded web servers, and contains many out-of-the-box microcomputers
Service function
Related component architecture diagram
The spring cloud subprojects include:
Spring Cloud Config: configuration management development kit that allows you to place configurations on remote servers, currently supporting local storage, Git, and
Subversion .
Spring Cloud Bus: event, message bus, used to propagate state changes in a cluster (for example, configuration change events), in conjunction with Spring Cloud
Config works together to achieve hot deployment.
Spring Cloud Netflix: a development kit for a variety of Netflix components, including Eureka, Hystrix, Zuul, Archaius, etc.
Netflix Eureka: cloud load balancing, a REST-based service for location services to achieve cloud load balancing and middle-tier servers
Barrier transfer.
Netflix Hystrix: fault-tolerant management tools designed to provide greater fault tolerance for delays and failures by controlling the nodes of services and third-party libraries.
Netflix Zuul: edge service tool, which provides dynamic routing, monitoring, resilience, security and other edge services.
Netflix Archaius: configuration management API, including a series of configuration management API, providing dynamically typed properties, thread-safe configuration operations, polling framework, reply
Adjust the mechanism and other functions.
Spring Cloud for CloudFoundry: binding services to CloudFoundry,CloudFoundry through Oauth3 protocol is launched by VMware
Open source PaaS cloud platform.
Spring Cloud Sleuth: log collection toolkit that encapsulates Dapper,Zipkin and HTrace operations.
Spring Cloud Data Flow: big data operation tool, through the command line to operate the data flow.
Spring Cloud Security: security toolkit to add security controls to your application, mainly referring to OAuth3.
Spring Cloud Consul: encapsulates Consul operations. Consul is a service discovery and configuration tool that integrates seamlessly with Docker containers.
Spring Cloud Zookeeper: a toolkit for manipulating Zookeeper for service registration and discovery using zookeeper.
Spring Cloud Stream: data flow operation development kit that encapsulates sending and receiving messages with Redis,Rabbit, Kafka, etc.
Spring Cloud CLI: based on Spring Boot CLI, it allows you to quickly build cloud components on the command line.
SpringCloud features:
1: convention is better than configuration
2: out-of-the-box, quick start
3: suitable for all kinds of environment
4: lightweight components
5: rich component support and complete functions
Three: SpringBoot understands
Spring Boot makes our Spring application lighter. For example, you can just rely on a Java class to run a Spring reference. You can also pack.
Your application is jar and runs your Spring Web application by using java-jar.
Because SpringCloud depends on SpringBoot, you need to know about SpringBoot before learning the SpringCloud framework.
The main advantages of SpringBoot are:
1: a faster start for all Spring developers
2: right out of the box, various default configurations are provided to simplify project configuration
3: built-in containers simplify Web projects
4: no requirements for redundant code generation and XML configuration
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 276
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.