Preface
As the landing microservice framework of the Java language, Spring Cloud has been widely used in major enterprises, and major cloud vendors also support the cloud products of the Spring Cloud microservice framework. It can be said that the Spring Cloud microservice framework has been applied to various industries and has become one of the necessary skills for Java developers. Proficiency in Spring Cloud is a bonus for interviewers.
The editor will explain Spring Cloud and microservices construction from the three parts of the preface, the table of contents, and the main content. At the same time, I hope this article can help you learn, and hope that you will like it! !
Let's take a look at this SpringCloud catalog first
main content
Chapter 1 Introduction to Microservices
This chapter mainly introduces what microservices are, why they need microservices, the advantages and disadvantages of microservices, and the challenges they face. It also compares monolithic architecture systems and microservice architecture systems.
Chapter 2 Introduction to Spring Cloud
As a Java language microservice framework, Spring Cloud relies on Spring Boot and has the characteristics of rapid development, continuous delivery, and easy deployment. Spring Cloud has many components, involving all aspects of microservices, and is becoming more and more perfect with the promotion of the open source community Spring and Netflix and Pivotal. This chapter mainly introduces Spring Cloud and will explain it from the following aspects.
- Functions that microservices should have
- Introduction to Spring Cloud
- Dubbo introduction
- Kubcrnetes introduction
- Comparison of Spring Cloud and Dubbo
- Comparison of Spring Cloud and Kubermetes
Chapter 3 Preparations for Building Microservices
Chapter 4 Development Framework Spring Boot
These two chapters mainly introduce the preparations for building microservices: the construction of the development environment and the use of Spring Boot
Due to space limitations, the editor will not introduce the content of the article in detail, but will cut the main content. Friends who need this "In-depth understanding of Spring Cloud and microservice construction" document can be free of charge by adding the assistant VX below Receive it!
Chapter 5~9
Chapter 5 Service Registration and Discovery Eureka
Chapter 6 Load Balancing Ribbon
Chapter 7 Declaratively Calling Feign
Chapter 8 Hystrix Fuse
Chapter 9 Routing Gateway Spring Cloud Zuul
This part introduces the basic module of the Spring Cloud framework-the Spring Cloud Netflix module, covering the basic components of Spring Cloud to build microservices. Components such as Eureka, Ribbon, Feign, Hystrix and Zuul provide basic service governance capabilities for microservice systems. These chapters take cases as the starting point, introduce these components from the shallower, and analyze the working principles of these components from the perspective of source code.
Chapter 5 will explain the service registration and discovery module Eurekag from the following four aspects
- Introduction to Eureka
- Write an example of Eureka registration and discovery
- Deep understanding of Eureka
- Write a highly available Eureka Server
Chapter 6, mainly explains how to use the combination of RestTemplate and lRibbon as a service consumer to consume services, and at the same time explain Ribbon in depth from the perspective of source code.
Chapter 7 Declaratively Calling Feign
Chapter 8, will describe how to use the fuse Hystrix when using RestTemplate and Feign to consume services, and will explain from the following 7 aspects
- What is Hystrix
- What problem does Hystrix solve
- How Hystrix works
- How to use Hystrix when RestTemplate and Ribbon are service consumers
- How to use Hystrix when Feign is a service consumer
- How to use Hystrix Dashboard to monitor the condition of the fuse
- How to aggregate multiple Hystrix Dashboards with Turbine
Chapter 9, This chapter explains another component of Netflix to build microservices-the intelligent routing gateway component Zuul. Zuul will be described from the following three aspects
- Why do you need Zuul
- How Zuul works
- Zuul's case combat
Chapter 10 Service Gateway
This chapter mainly introduces Spring Cloud's second-generation gateway Gateway. Gateway is much better than Zuul in performance and is the new generation gateway of Spring Cloud.
Chapter 11 Service Registration and Discovery Consul
This chapter first explains the basic architecture and principles of Consul, and the difference between it and Eureka, and then explains how to use Consul as a registry and distributed configuration center in the form of a case.
It should be noted that the value value of KV storage supported by Consul cannot exceed 512KB; when starting in dev mode, all data is stored in memory, and restarting Consul will cause all data to be lost; when starting in non-dev mode, Consul’s data Will be persistent and data will not be lost.
Chapter 12 Configuration Center Spring Cloud Config
This chapter describes another component of Spring Cloud-the distributed configuration center Spring Cloud Configo, which is divided into the following 4 aspects
- Config Server reads configuration files locally
- Config Server reads configuration files from remote Git warehouse
- Build a highly available Config Scrver cluster
- Refresh the configuration using Spring Cloud Bus
Chapter 13 Service Link Tracking Spring Cloud sleuth
This chapter mainly introduces the link tracking component Spring Cloud Sleuth, including why the microservice system needs the link tracking component, and in the form of a case, it introduces in detail how to use link tracking in the Spring Cloud microservice system, and how to transmit, store and Show link data.
Chapter 14 Microservice Monitoring Spring Boot Admin
This chapter introduces Spring Boot Admin in the form of cases, including the application of Spring Boot Admin in the microservice system and the integration of security components in Spring Boot Admin.
Chapter 15 Spring Boot Security Detailed Explanation
Chapter 16 Using Spring Cloud OAuth2 to Protect the Microservice System
Chapter 17 Using Spring Security OAuth2 and JWT to Protect Microservice Systems
These three chapters mainly introduce the security verification module of Spring Cloud microservice system, including Spring Boot Security component and Spring Cloud OAuth2 module.
Chapter 15, mainly introduces in detail how to use Spring Boot Security in Spring Boot applications
Chapter 16, introduces how to use Spring Cloud OAuth2 in the Spring Cloud microservice system to ensure the security of the microservice system
Chapter 17, introduces how to use Spring Cloud OAuth2 and JWT in the Spring Cloud microservice system to protect the system security of microservices
Chapter 18 Using Spring Cloud to Build a Comprehensive Case of Microservices
This chapter introduces the whole process of using Spring Cloud to build a microservice system with a comprehensive case, which is a summary and refinement of the content of the book.
collection method:
Friends who need this "In-depth Understanding of Spring Cloud and Microservice Construction" document can receive it for free with the assistant VX below!