Alibaba internally launched Spring responsive microservice Boot2Cloud documentation

Preface

The current rapid development of the Internet industry, rapid business updates and product iterations also bring new challenges to the system development process and model. In the context of this era, the microservice architecture implementation technology represented by Spring Cloud has emerged. Microservice architecture is a distributed system. While having corresponding advantages in business, technology, and organization, it also has to face the inherent problems of distributed systems. Ensuring the instant responsiveness and service flexibility of the microservice system is a major challenge for us to build a microservice architecture. Fortunately, the developers of the Spring framework have created a brand new, reactive version of the project to support the design and development of a reactive microservice architecture. By building a responsive microservice architecture, we will provide instant responsiveness and service flexibility on the basis of the traditional microservice architecture.

This article starts with the basic concepts of reactive programming and microservice architecture and expands gradually. You will understand the basic principles of responsiveness and the Project Reactor responsive development framework integrated with the Spring 5 framework. At the same time, you will learn more about how to build a responsive RESTful service, how to build a responsive data access component, how to build a responsive message communication component, how to build a responsive microservice architecture, and how to test a responsive microservice architecture. All of this content will be applied to a concise and complete example project to ensure that you can put the skills learned into practice.

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

This article introduces you to the actual content of Spring's responsive microservice SpringBoot2+Spring5+SpringCloud. I will introduce it to you from three parts: catalog, main content and target readers. I hope you will like it! ! !

First, let’s take a look at the catalog

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Second, look at the main content carefully

This article mainly contains the technical system and engineering practices that should be possessed in the process of constructing a responsive microservice architecture. The organizational structure is divided into the following 8 chapters.

Chapter 1, "Facing Responsive Microservice Architecture" , as the opening chapter of the book, discusses the concept and construction of responsive microservice architecture. By comparing traditional programming methods and responsive programming methods, the core concepts of responsive programming are derived, and the responsive manifesto is cited to illustrate the basic system characteristics and dimensions of the responsive system. At the same time, this chapter analyzes the design principles of responsive microservice architecture based on the introduction of traditional microservice architecture, and then integrates responsive programming and microservice architecture.

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Chapter ⒉ "Responsive Programming Model and Reactor Framework" , this chapter comprehensively introduces the reactive programming model and leads to the reactive flow specification. The Reactor framework provides us with a complete set of specific implementations to implement the specification. On the basis of introducing the two core components of Mono and Flux in the Reactor framework, we further provide a series of powerful operators to manipulate these components. At the end of this chapter, the back pressure mechanism in the Reactor framework is briefly introduced. The Reactor framework provides 4 back pressure processing strategies to meet the needs of different scenarios.

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Chapter 3 "Building Responsive RESTful Services" , if you want to build a responsive microservice architecture, you first need to build a single responsive microservice. In Spring 5, a new responsive service construction framework Spring WebFlux is introduced, which supports the use of annotation programming model and functional programming model to build responsive RESTful services. Based on Spring Boot, this chapter gives a comprehensive introduction to the Spring WebFlux framework.

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Chapter 4 "Building Responsive Data Access Components" , for responsive microservice architecture, data access is also an important part of building a full-stack responsive system. To this end, the Spring Data framework also specifically provides Spring Reactive Data components to create reactive data access layer components. In this chapter, we focus on MongoDB and Redis, two NoSQL databases that support reactive features, and respectively give the basic steps and code examples of how to use Spring Reactive Data to implement reactive data access.

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Chapter 5 "Building Responsive Message Communication Components" , this chapter discusses another important topic of building a responsive microservice architecture, namely, responsive message communication. We use the Reactive Spring Cloud Stream framework to implement reactive message communication components. Starting from the event-driven architecture and model, this chapter introduces the Spring Cloud Stream framework that implements message communication in the Spring Cloud family. Then upgrade the Spring Cloud Stream, combined with the reactive programming model to fully introduce the use of the Reactive Spring Cloud Stream framework.

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Chapter 6 "Building a Reactive Microservice Architecture" , this chapter is the key chapter of the book. We use the Spring Cloud framework to implement a reactive microservice architecture. We comprehensively discussed the core components of the responsive microservice architecture and their implementation schemes starting from six themes of service governance, load balancing, service fault tolerance, service gateway, service configuration, and service monitoring. For the introduction of each component, we have included specific methods of using the component and corresponding code examples. At the same time, we also use a special section to introduce the implementation tool of WebClient, a responsive service call.

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Chapter 7 "Testing the Responsive Microservice Architecture" , this chapter first introduces the preparations for initializing the test environment, and then gives the methods and examples for testing a series of independent layer components in the responsive microservice architecture, that is, starting from the data flow layer, respectively Test the Repository layer, Service layer and Controller layer based on responsive MongoDB.

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

Chapter 8 "Responsive Microservice Architecture Evolution Case Analysis" , as the last chapter of the book, this chapter comprehensively introduces all aspects of building a responsive microservice system through a complete case analysis. When introducing this case, we first adopted the traditional microservice architecture to realize this case. Then, based on the completion of the traditional micro-service architecture, the method and process of how to evolve to the responsive micro-service architecture was specifically developed. On the one hand, we need to update infrastructure services; on the other hand, we need to complete a comprehensive upgrade of data access methods, event communication methods, and service invocation methods. This involves the usage and best practices of reactive components such as reactive WebFlux, reactive MongoDB and Redis, and reactive Spring Cloud Stream.

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

This [Spring responsive microservice SpringBoot2+Spring5+SpringCloud actual combat] has a total of 278 pages. If you need the full version, you can add the editor VX: mxx2020666 to get it for free

Finally, let’s look at the readers who this article is aimed at

This article is aimed at back-end service developers who aspire to become microservice architects (especially responsive microservice architects). Readers do not need to have a high technical level, nor are they limited to specific development languages, but are familiar with and master JavaEE common technologies Certain basic concepts of asynchronous programming model and distributed architecture help to better understand the content of the article.

At the same time, it can also be used as a reference for architects with different technical systems, hoping to inspire and help daily R&D and management.

Of course, this article is strongly recommended by experts

Alibaba launches Spring responsive microservice Boot2Cloud documentation

 

I believe that everyone has a simple understanding after reading this article. However, we still need to understand in depth. I hope you can study carefully after you get the book, slowly understand the true meaning of it, and apply technical knowledge to actual work. The editor also reads it many times before mastering it. .

Come on everyone and study hard! Constantly expand their technical depth and breadth, constantly increase their knowledge reserves and project experience, and prepare for future job-hopping or salary increases!

Only by working hard can you get closer and closer to your dream of being a big factory. Come on! ! !

Guess you like

Origin blog.csdn.net/m0_46995061/article/details/108733364