Writing in the front

Microservices architecture is very popular nowadays, and building systems with microservices will also bring clearer business division and scalability. At the same time, there are a variety of technology stacks that support microservices, and Spring Cloud is a leader in these technologies.

As a new generation of service framework, The slogan of Spring Cloud is to develop “cloud-oriented applications”, which provides more comprehensive technical support for microservice architecture. It is also the flagship project of Spring, and can be integrated with other Spring projects such as Spring Framework, Spring Boot, Spring Data, Spring Batch, etc., which are critical for microservices.

The complete technical components of Spring Cloud:

Today I will share with you an electronic version of “Spring Cloud Advanced Micro service Architecture”. Add a small assistant VX: XuanWO008 to get a pickup!

Note: technical books are for acquiring knowledge, not for collecting, you get the books does not mean you get knowledge, so please do not feel complacent after getting the books, to read often! Read it often!

Content abstract

This book provides a comprehensive and systematic introduction to Spring Cloud and its application to microservices architecture. The book consists of 13 chapters:

  • Chapter 1 introduces basic concepts related to microservices architecture.
  • Chapter 2 describes the components contained in Spring Cloud and the context of Spring Cloud conventions.
  • Chapter 3 introduces the basics of Spring Cloud: SpringBoot, including how to build a SpringBoot service, SpringBoot configuration files and monitoring management endpoints provided by the Actuator.
  • Chapters 4 through 13 cover Spring Cloud components in detail, Including Eureka (Service Registration and Discovery), OpenFeign (declaratively RESTful client), Hystrix (circuit breaker), Ribbon (client load balancer), Gateway (API Gateway), Config (configuration center), and Stream (message-driven), Bus (message Bus), Security (authentication and authorization), Sleuth (service link tracing).

This book provides a technical insight into the implementation of Spring Cloud components and further application ideas, which can be used as a reference book for microservice architecture practices using Spring Cloud.

Chapter 1 – Introduction to microservices Architecture

  • The emergence of microservice architectures
  • The genre of microservices architecture
  • Cloud native and microservices

In recent years, microservice architecture has been one of the hot topics in the Internet technology circle. More and more Internet applications have adopted microservice architecture as the foundation of system construction. Many new technologies and concepts such as Docker, Kubernetes, DevOps, continuous delivery, ServiceMesh, etc. are also looking at, supporting, and following the evolution of microservices architecture.

This chapter will give an overview of microservices architecture, including how microservices architecture has evolved, the main schools of microservices architecture, and the relationship between the current mainstream cloud native applications and microservices.

Chapter 2 — Spring Cloud Overview

  • Spring Cloud architecture
  • Spring C1 OUD feature
  • This chapter will provide an initial introduction to the SpringCloud architecture and related components, followed by an introduction to the SpringCloud context and SpringCloud’s common abstractions. This may occur in multiple components, so the introduction here is not dependent on specific components.

    Chapter 3 — The foundation of Spring Cloud: SpringBoot

  • Spring Boot profile
  • Build a microservice
  • Spring Boot configuration file
  • The first section of this chapter summarizes the functions and features of SpringBoot, including the core features of SpringBoot. Section 2 will set up a Spring Boot project to quickly understand the basic development process; The configuration files and applications of Spring Boot are summarized in section 3.

    Chapter 4 — Service Registration and Discovery: Eureka

  • The base application
  • Principles of Service Discovery
  • Fur eka Cli ent source code
  • Fur Eka Server source code parsing
  • Advanced applications
  • In this chapter, the first section will give a comprehensive overview of Eureka, and build a simple example of Eureka application to demonstrate the operation mechanism. In the second section, the overall architecture of Eureka is summarized from a macro perspective, and the behaviors among Eureka components and components are introduced. The third section will analyze the operating principle of EurekaClient from the perspective of source code and analyze the interaction between Eureka Server and EurekaClient. Section 4 will explain the source code of Euerka Server and analyze how it plays the role of service registry in microservices architecture. Section 5 covers configuration properties and advanced features in Eureka.

    Chapter 5 — Declarative RESTful Clients: Spring Cloud OpenFeign

    • The base application
    • Source code analysis
    • Advanced applications

    In this chapter, the first section mainly explains the common ways of microservice interaction and the basic application of OpenFeign. The second section analyzes the source code of OpenFeign, respectively describes the dynamic registration of Spring instance definition (BeanDefinition), instance initialization and function call and network request three parts of the code implementation logic; The third section introduces the advanced uses of OpenFeign.

    Chapter 6 — Circuit breakers: Hystrix

    • The base application
    • Hystrix principle
    • The source code parsing
    • Advanced applications

    In the first section of this chapter, we will build a simple example to demonstrate Hystrix service disconnection. The second section introduces Hystrix terminology and design principles. The third section will analyze the implementation mechanism and operation principle of Hystrix from the perspective of source code. Section 4 covers configuration properties and advanced features in Hystrix.

    Retweet + Follow, and then add our little assistant VX: Xuanwo008 to get a free delivery of the full ebook of Spring Cloud Advanced Microservices Architecture!

    Note: technical books are for acquiring knowledge, not for collecting, you get the books does not mean you get knowledge, so please do not feel complacent after getting the books, to read often! Read it often!

    Chapter 7 — Client Load Balancer: Spring Cloud Netflix Ribbon

    • Load balancing
    • The base application
    • Source code analysis
    • Advanced applications

    The first section of this chapter mainly explains the concepts and implementation of load balancing. The second section shows some code examples of how to use the Ribbon. Section 3 introduces the Ribbon implementation principle and code details. Section 4 introduces advanced applications of the Ribbon.

    Chapter 8 — API Gateway: Spring Cloud Gateway

    • Introduction to Spring Cloud Gateway
    • The base application
    • The source code parsing
    • Application of advanced

    The first part of this chapter covers the features of the Spring Cloud Gateway; The second part is the basic application, explains the basic functions of SpringCloudGateway through gateway service and user service examples. The third part will explain the basic functions of Spring Cloud Gateway based on source code. Finally, the advanced learning of the Spring Cloud Gateway shows how to use the flow limiting mechanism and fuse downgrading features.

    Chapter 9 — Configuration Center: Spring Cloud Config

    • The base application
    • The source code parsing
    • Application of advanced

    The first section of this chapter will implement a simple configuration center, including configuration server, client and Git repository, and introduce the main functions of microservice configuration center based on basic application cases. The second section first explains the work of the configuration center, and then introduces the two parts of the configuration center: configuration client and configuration server, combined with the source code to introduce the realization of these two parts of the main functions; Finally, the application of the configuration center is introduced. Other advanced features of the configuration center are introduced, such as security protection, encryption and decryption, and multi-configuration warehouse.

    Chapter 10 — Message Driven: Spring Cloud Stream

    • The message queue
    • The base application
    • Source code analysis
    • Advanced applications

    The first section of this chapter focuses on the concept of message queues. The second section mainly explains the basic application of Stream and provides relevant code examples. The third section mainly explains the implementation principle and source code analysis of Stream framework; Section 4 is an advanced application tutorial of Stream.

    Chapter 11 — Message Bus: SPring Cloud Bus

    • The base application
    • The source code parsing
    • Application of advanced

    In the first section of this chapter, the dynamic update of the configuration center is taken as the basic application case, and the application of Spring Cloud Bus is introduced. The example shows how to transform the configuration service center in Chapter 9. The second section will analyze the main functions of Spring Cloud Bus: subscription and publication of events, specific implementation of event monitoring, combined with source code. The third section is the application of the advanced part, custom – a registration event, and complete the event listening and initiation.

    Chapter 12 — Authentication and Authorization: Spring Cloud Security

    • The base application
    • The overall architecture
    • The source code parsing
    • Advanced applications

    In the first section of this chapter, the pre-knowledge 0Auth2 and JWT in SpringCloudSecurity will be introduced, and a authentication and authorization service project based on SpringCloudSecurity will be built for demonstration. The second section summarizes the overall design structure in SpringCloud Security. The third section explains the design and implementation of Spring Security and Spring Security OAuth2 from the perspective of source code. Section 4 covers configuration properties in Spring Security and Spring SecurityOAuth2.

    Chapter 13 — Service Link Tracing: Spring Cloud Sleuth

    • Introduction to link monitoring components
    • The base application

    The first section of this chapter introduces the components related to link monitoring in the microservice architecture. The second section introduces the basic application of link monitoring components and introduces two practices of Spring Cloud Sleuth: independent use and integration of Zipkin. When Zipkin is integrated, there are two different communication modes for sending link information. The specific application methods will be explained in combination with example scenarios.

    Retweet + Follow, and then add our little assistant VX: Xuanwo008 to get a free delivery of the full ebook of Spring Cloud Advanced Microservices Architecture!

    Note: technical books are for acquiring knowledge, not for collecting, you get the books does not mean you get knowledge, so please do not feel complacent after getting the books, to read often! Read it often!

    directory

    Retweet + Follow, and then add our little assistant VX: Xuanwo008 to get a free delivery of the full ebook of Spring Cloud Advanced Microservices Architecture!