Briefly describe what Spring Cloud is

Many students have learned about Spring and Spring Boot, but they are still confused about what Spring Cloud is.

This article will give you a brief understanding of what Spring Cloud is.

What is Spring Cloud

Literally, Spring Cloud is a framework dedicated to distributed systems and cloud services.

Spring Cloud is a new member of the entire Spring family and an inevitable product of the recent popularity of cloud services.

Spring Cloud provides developers with tools to quickly build some common patterns in distributed systems, such as:

  • Configuration management
  • Service registration and discovery
  • breaker
  • Intelligent routing
  • inter-service call
  • load balancing
  • Micro proxy
  • control bus
  • one-time token
  • global lock
  • leadership election
  • Distributed session
  • cluster status
  • Distributed Messaging
  • ......

Using Spring Cloud, developers can implement these patterns for services and applications out of the box. These services can run in any environment, including distributed environments, as well as developers' own laptops and various hosting platforms.

Spring Cloud 与 Spring Boot

Spring Cloud builds services based on Spring Boot. In this way, when developing Spring Cloud components, you can rely on Spring Boot to achieve rapid development.

For Spring Boot content, see the author's video course "Spring Boot-based Blog System Combat" ( https://waylau.com/spring-boot-blog-video-release/ ).

Spring Cloud and Microservices

Spring Cloud is a powerful tool for building distributed systems, and microservices are one of the most popular types of distributed systems. Therefore, Spring Cloud naturally supports the construction of microservices.

In the early years, domestic Internet companies prevalently adopted Dubbo to build microservices. Today, there is a better choice, and that is Spring Cloud. According to data, the number of users of Spring Cloud has shown explosive growth, both at home and abroad. Moreover, Dubbo is mainly to solve problems such as service communication and service registration, while Spring Cloud is a complete solution for providing microservice architecture.

So what are microservices?

The so-called microservices are:

The microservice architectural style is like developing a small service as a single application, running in its own process, and communicating using lightweight mechanisms (usually HTTP resource APIs). These services are built around business capabilities and independently deployed through fully automated deployment tools. These services, which can use different programming languages ​​and different data storage technologies, are kept to a minimum of centralized management.

For more theories about microservices, see the author's blog: https://waylau.com/ahout-microservices/ .

How Spring Cloud implements microservices

Having said so many theories, how does the microservice architecture actually land? The course "Spring Cloud-based Microservices in Practice" ( https://waylau.com/spring-cloud-video-release/ ) gives real answers.

In the course "Microservices Based on Spring Cloud", the author implemented a complete weather forecast system based on the Spring Boot + Spring Cloud technology stack. In the course, we start with Spring Boot and quickly build a weather forecast system with high concurrency capability and friendly interface from 0 to 1. Then analyze the pros and cons of monolithic architecture, introduce the concept of microservice architecture, and realize the splitting of microservices from 1 to 0. Finally, Spring Cloud technology is introduced to implement the governance of these microservices, focusing on topics such as service registration and discovery, service interaction, service consumption, load balancing, API gateway, configuration center, service fuse, and automatic expansion.

By studying this course, students can not only learn the latest surrounding technology stacks of Spring Boot and Spring Cloud (this course is based on the latest Spring Boot 2.0.0.M4 and Spring Cloud Finchley.M2), but also master how to use the above technologies to integrate and build a framework The ability to be familiar with the characteristics of the monolithic architecture and the microservice architecture, and finally realize the practical ability to build the microservice architecture.

What technologies are needed to build a Spring Cloud microservice system

The relevant technologies covered in this course are:

  • XML parsing: JABX
  • JSON Serialization: Jackson
  • Cache: Redis
  • Timer: Quartz Scheduler
  • Java Template Technology Thymeleaf
  • Front-end style: Bootstrap
  • API Gateway: Zuul
  • Service registration and discovery: Eureka Server, Eureka Client
  • Service interaction: RestTemplate, Apache HttpClient
  • Service consumption: Ribbon, OpenFeign
  • Load Balancer: Ribbon
  • Configuration Center: Config Server, Config Client
  • Service circuit breaker: Hystrix
  • Project build: Gradle

Through the study of this course, you will be able to master the ability to architect microservice systems!

References

To learn Spring Cloud microservices, in addition to the above courses, Lao Wei also wrote a number of open source books related to microservices. Note that they are all free books! ! !

Guys, hurry up and learn! ! !

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324454590&siteId=291194637