In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "who are the core members of SpringCloud", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "what are the core members of SpringCloud" can help you solve your doubts? let's follow the editor's ideas to learn new knowledge.
What is Spring Cloud?
SpringCloud official website: http://spring.io
Spring Cloud is an one-stop framework for developing distributed systems, which provides developers with a series of toolsets for building distributed systems. Spring Cloud provides developers with tools to quickly build some common patterns in distributed systems (such as configuration management, service discovery, circuit breakers, intelligent routing, micro-agents, control buses, global locks, decision campaigns, distributed sessions and cluster state management, etc.). The development of distributed systems needs to solve a series of common concerns, and using Spring Cloud can quickly achieve these common concerns of distributed development, and can be easily deployed and run in any distributed environment. Spring Cloud, an one-stop distributed development framework, is highly respected by the popular "micro-service" architecture in recent years, and has become the preferred tool for micro-service architecture. Spring Cloud builds a micro-service architecture based on the Spring Boot framework. Learning Spring Cloud requires learning Spring Boot first.
Spring Cloud makes use of the development convenience of Spring Boot to skillfully simplify the development of distributed system infrastructure, such as service discovery registration, configuration center, message bus, load balancing, circuit breaker, data monitoring and so on. Spring Boot development style can be used to do one-click startup and deployment. Spring does not repeat manufacturing wheels, it just combines the more mature service frameworks developed by various companies that can stand the actual test, and shields the complex configuration and implementation principles through Spring Boot style re-encapsulation, and finally leaves a set of distributed system development kits that are easy to understand, easy to deploy and easy to maintain.
Micro-services are service units that can be independently deployed, horizontally expanded, and accessed independently (or have independent databases). SpringCloud is the butler of these micro-services. After adopting the micro-service architecture, the number of projects will be very large. As a butler, springcloud needs to manage these micro-services well, and naturally needs a lot of help.
The version of Spring Cloud
Spring Cloud was first launched in 2014, the iteration speed of the early update is very fast, new versions are released frequently, and now they tend to be more stable and change a little more slowly.
The version of Spring Cloud is not traditionally identified in a digital way, but uses things such as Angel, Brixton, Camden.., Finchley... Such as the place names of London to name the version, the order of the version is identified by the alphabet Amurz, which has now entered the F version.
The matching relationship between Spring Cloud and Spring Boot versions (omitting some unused versions)
2020.0.x aka Ilford compatible with Spring Boot 2.4.XHoxton compatible with Spring Boot 2.2.x, 2.3.x (Starting with SR5) Greenwich compatible with Spring Boot 2.1.xFinchley compatible with Spring Boot 2.0.x, not compatible with Spring Boot 1.5.xAngel compatible with Spring Boot 1.2.xSpring Cloud and Spring Boot relationships
Spring Boot is a set of quick configuration scaffolding from Spring that can quickly develop individual micro services based on Spring Boot. Spring Cloud builds a micro-service architecture based on the Spring Boot framework. Learning Spring Cloud requires learning Spring Boot first. Spring Boot focuses on individual individuals with fast and easy integration, and Spring Cloud is a global service governance framework. Spring Boot uses the idea that the default is larger than the configuration. Many integration solutions have been selected for you. If you can not configure them, you will not configure them. A large part of Spring Cloud is based on Spring Boot. Can Spring Cloud not be based on Spring Boot? No.
Spring Boot can use development projects independently of Spring Cloud, but Spring Cloud can't do without Spring Boot, which belongs to the dependency relationship. A relationship like Spring-> Spring Boot > Spring Cloud.
The overall architecture of Spring Cloud
Service Provider: the provider of the exposed service.
Service Consumer: the service consumer that invokes the remote service.
EureKa Server: service registry and service discovery center.
Members of Spring Cloud
Spring Cloud does not develop a complete set of micro-service solutions from scratch, but integrates various open source software to form a complete set of micro-service solutions, including the very famous open source products of Netflix.
Netflix, founded in 1997, is currently the largest copyright video trading website in the United States. In the process of continuous development, Netflix has also become a cloud computing company and actively participated in open source projects. Netflix OSS (Open Source) is a set of code framework and library developed by Netflix, github address: https://github.com/Netflix.
Among the many components contained in Spring Cloud, Spring Cloud Netflix is one of the components that can not be ignored, which is developed by netflix and incorporated into the Spring Cloud family.
Spring Cloud's main younger brothers are: Spring Cloud Config, Spring Cloud Netflix (Eureka, Hystrix, Zuul, Archaius … ), Spring Cloud Bus, Spring Cloud for Cloud Foundry, Spring Cloud Cluster, Spring Cloud Consul, Spring Cloud Security, Spring Cloud Sleuth, Spring Cloud Data Flow, Spring Cloud Stream, Spring Cloud Task, Spring Cloud Zookeeper, Spring Cloud Connectors, Spring Cloud Starters, Spring Cloud CLI, each with unique skills and high martial arts skills.
Core members of Spring Cloud
Spring Cloud Netflix:
This is a big boss, second only to the boss, who relies on it for all kinds of services and integrates with various Netflix OSS components to form the core of micro services. Its younger brothers mainly have Eureka, Hystrix, Zuul, Archaius... Too much
Netflix Eureka:
Service Center, Cloud Service Discovery, a REST-based service for locating services to enable cloud middle-tier service discovery and failover. This is the most awesome younger brother of springcloud, the service center. Any younger brother who needs the support of other younger brothers needs to take anything from here. Similarly, if you have any unique martial arts, you will hurry to report it, so it is convenient for other boys to call it later. The advantage of it is that you don't need to find all kinds of little brothers directly for support, you just need to go to the service center to get it, and you don't need to know where the other boys who provide support are, or a few boys to support them. Anyway, you can just use it. The service center ensures stability and quality.
Netflix Hystrix:
Fuses, fault-tolerant management tools, are designed to control the nodes of services and third-party libraries through fuse mechanisms, thus providing stronger fault tolerance for delays and failures. For example, suddenly a little brother gets sick, but you still need its support, and then it doesn't respond for a long time after calling it, but you don't know, you've been waiting for this response; it's possible that other boys are also calling your kung fu stunts, so when there are too many requests, there will be serious blocking that will affect the boss's overall plan. At this time, Hystrix will come in handy. When Hystrix finds that some younger brother is not in a stable state, immediately let it off the line, let other boys come up, or tell you that you don't have to wait for this little brother today.
Netflix Zuul:
Zuul is a framework that provides dynamic routing, monitoring, resiliency, security and other edge services on cloud platforms. Zuul acts as the front door for all requests at the back end of the Web website for devices and Netflix streaming applications. When other doors send to see the eldest brother to do business, you must first go through the zuul to see if you have brought a knife or something to intercept it back, or if you need to find that little brother to take it directly to you.
Netflix Archaius:
Configuration management API, including a series of configuration management API, provides dynamic typed properties, thread-safe configuration operations, polling framework, callback mechanism and other functions. You can obtain the configuration dynamically by reading the content from the configuration source every 60s (default, configurable), so that you can make the modified content take effect without restarting the service after modifying the configuration file, as long as you use the API of archaius to read it.
Spring Cloud Config:
Commonly known as the configuration center, the configuration management toolkit allows you to put the configuration on a remote server and centrally manage the cluster configuration, which currently supports local storage, Git, and Subversion. That is, in the future, everyone's weapons, gunfire and other things will be put together, and do not bring them casually, so as to facilitate unified management and upgrading of equipment in the future.
Spring Cloud Bus:
Events, message buses, which are used to propagate state changes in a cluster (for example, configuration change events), can be hot deployed in conjunction with Spring Cloud Config. Equivalent to the Water margin, which travels 800 miles from Japan to Japan, Shenxing Taibao Daizong ensures that the news between each younger brother remains smooth.
Spring Cloud for Cloud Foundry:
Cloud Foundry is the industry's first open source PaaS cloud platform launched by VMware. It supports a variety of frameworks, languages, runtime environments, cloud platforms and application services, enabling developers to deploy and expand applications in seconds without worrying about any infrastructure problems. In fact, it is a set of solutions integrated with CloudFoundry, hugging CloudFoundry's thighs.
Spring Cloud Cluster:
Spring Cloud Cluster will replace Spring Integration. Provide basic functional support for clusters in distributed systems, such as election, state consistency of clusters, global locking, tokens and other common state patterns of abstraction and implementation. If you organize different gangs into a unified whole, Spring Cloud Cluster has provided you with a lot of tools to facilitate organizing into a unified group.
Spring Cloud Consul:
Consul is a service software that supports multi-data center distributed and highly available service discovery and configuration sharing. It is developed by HashiCorp in Go language and is open source based on Mozilla Public License 2.0 protocol. Consul supports health check and allows HTTP and DNS protocols to call API to store key-value pairs.
Spring Cloud Consul encapsulates Consul operations, and consul is a service discovery and configuration tool that integrates seamlessly with Docker containers.
Other members of Spring Cloud
Spring Cloud Security:
Spring security-based security toolkit to add security controls to your application. This little brother is very good-nosed and specializes in the security of the whole gang. He sets up different factions to visit specific resources, so he can't reveal the secret book of Sunflower.
Spring Cloud Sleuth:
Log collection toolkit, which encapsulates Dapper and log-based tracking as well as Zipkin and HTrace operations, implements a distributed tracking solution for SpringCloud applications.
Spring Cloud Data Flow:
(1) Data flow is a unified programming model and hosting service for developing and implementing large-scale data processing modes including ETL, batch and continuous operations.
(2) for micro-service programs that can be composed in a modern operating environment, Spring Cloud data flow is a native cloud-configurable service. With Spring Cloud data flow, developers can create and configure data channels (data pipelines) for common use cases such as data extraction, real-time analysis, and data import / export.
(3) Spring Cloud data flow is a redesign of spring XD based on native cloud, and the goal of this project is to simplify the development of big data's application. The refactoring of Spring XD stream processing and batch processing module is based on Spring Boot's stream and task/batch micro-service programs respectively. These programs are now automated deployment units and their native support for modern operating environments such as Cloud Foundry, Apache YARN, Apache Mesos, and Kubernetes.
(4) Spring Cloud data flow provides a series of models and best practices for distributed streaming and batch data channels based on microservices.
Spring Cloud Stream:
Spring Cloud Stream is a framework for creating message-driven microservice applications. Spring Cloud Stream is based on Spring Boot to build stand-alone / industrial-level spring applications, using spring integration to provide connectivity to message agents. Data flow operation development kit, which encapsulates sending and receiving messages with Redis,Rabbit, Kafka, etc.
A business involves multiple tasks, and tasks are triggered by events. This is what Spring Cloud stream does.
Spring Cloud Task:
Spring Cloud Task mainly deals with task management and task scheduling of short-lived micro-services, such as some scheduled tasks running once at night, or some data analysis running several times temporarily.
Spring Cloud Zookeeper:
ZooKeeper is a distributed, open source distributed application coordination service, an open source implementation of Google's Chubby, and an important component of Hadoop and Hbase. It is a software that provides consistency services for distributed applications, including configuration maintenance, domain name services, distributed synchronization, group services and so on. The goal of ZooKeeper is to encapsulate complex and error-prone key services and provide users with simple and easy-to-use interfaces and systems with efficient performance and stable functions.
A toolkit for operating Zookeeper for service discovery and configuration management using zookeeper, holding Zookeeper's thighs.
Spring Cloud Connectors:
Spring Cloud Connectors simplifies the process of connecting to services and obtaining operations from the cloud platform. It is highly scalable and you can use Spring Cloud Connectors to build your own cloud platform.
It is convenient for cloud applications to connect to the back end on various PaaS platforms, such as database and message broker services.
Spring Cloud Starters:
Spring Boot-style startup project that provides out-of-the-box dependency management for Spring Cloud.
Spring Cloud CLI:
Based on Spring Boot CLI, it allows you to quickly build cloud components on the command line.
Advantages of Spring Cloud
There are so many frameworks for microservices, such as Dubbo and Kubernetes, why use Spring Cloud?
(1) produced in the Spring family, Spring is invincible in the enterprise development framework, and its origin is very large, which can ensure the subsequent update and perfection. For example, Dubbo is almost dead now.
(2) having Spring Boot as an independent worker will save a lot of trouble, and Spring Boot is good at all kinds of work, large and small.
(3) as a big guy of micro-service governance, it is very comprehensive, and almost all aspects of service governance are taken into account, which is convenient for development out of the box.
(4) Spring Cloud is very active and rich in tutorials, so it is easy to find solutions to problems.
(5) the various platform functions of circuit breaker, load balancing and service center are completed easily in a few lines of code.
Spring Cloud is a boon for small and medium-sized Internet companies, because such companies often do not have the strength or sufficient capital to develop their own distributed system infrastructure, and using Spring Cloud one-stop solutions can greatly reduce development costs while dealing with business development calmly. At the same time, with the popularity of micro-service architecture and Docker container concept in recent years, Spring Cloud will have a place in the more and more "cloud" software development style neutrality in the future, especially in the current various distributed solutions to provide standardized, full-station technical solutions, the significance may be comparable to the birth of the current Servlet specification, effectively promote the progress of server software system technology.
Spring Cloud reduces the requirements for large-scale system construction in terms of technical architecture, enabling us to build an efficient, distributed and fault-tolerant platform at a very low cost (technology or hardware). However, Spring Cloud is not without shortcomings, and small and independent projects are not suitable for use.
After reading this, the article "who are the core members of SpringCloud" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.
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: 0
*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.