At present, the most popular in China is Alibaba’s Dubbo, which has been widely used by many Internet companies. In any case, the software was developed and open-source by some company to solve some of their own problems. Strictly speaking, they are not a complete set of solutions. Abroad, Spring Cloud is popular. Spring Cloud, developed by the Pivotal team, does not reinvent the wheel, but rather looks at various open source distributed service frameworks and integrates proven technologies into the components of the current Spring Cloud.

In this way, Spring Cloud builds a relatively complete enterprise-level implementation of microservices. More encouragingly, the Pivotal team has encapsulated these distributed frameworks with Spring Boot, cutting out the arcane details and providing developers with a distributed system development kit that is easy to understand, deploy, and maintain. After being introduced into China, Spring Cloud has gradually become the main scheme to build microservice system and become the mainstream of the market.

That’s why SpringCloud is so popular right now, and today we’ll learn about microservices from the following 20 aspects by comparing old and new circuit breakers, gateways, and more!

  1. Overview of distributed and microservices
  2. Technology base
  3. Service governance – Eureka
  4. Client Load Balancing – Ribbon
  5. Breaker one Hystrix
  6. New circuit breaker – Resilience4j
  7. Call an OpenFeign declaratively
  8. 1 Old API gateway one Zuul
  9. New gateway – Spring CloudGateway
  10. Configure a Spring Cloud Config
  11. Spring Cloud Sleuth full link tracing
  12. Microservices monitor with a Spring Boot Admin
  13. Generate a unique ID number mechanism
  14. Distributed database technology
  15. Distributed database transactions
  16. Distributed cache a Redis
  17. Chapter Distributed Session
  18. Distributed system permission verification
  19. Remote procedure call
  20. Microservice design and high concurrency practices

Below we will differentiation to tell that 20 part of contents, due to the content of the learning resources too much, the following show only a part of the directory contents (complete directory too much, can’t display all), at the same time in order not to affect the overall reading experience, the full version has been done for you, free access at the end of the article!


Overview of distributed and microservices

  1. Characteristics of Internet systems
  2. Overview of Distributed Systems
  3. Design principles for distributed systems
  4. Microservices Architecture
  5. Spring Cloud
  6. Introduction to the microservice system sample

2 Technical Basis

  1. Spring Boot
  2. Introduction to REST Style

3 Service governance – Eureka

  1. Service Governance Center
  2. Eureka governance mechanism
  3. Eureka configuration

 

4 Client Load Balancing – Ribbon

  1. An overview of negative crop equilibrium
  2. First Ribbon
  3. Ribbon Load balancer and Policies
  4. Ribbon Service instance list maintenance
  5. Custom Ribbon client
  6. Ribbon Usage Practice

5 Circuit breaker a Hystrix

  1. An overview of the
  2. An introduction to instance
  3. How Hystrix works
  4. Hystrix practice
  5. The dashboard
  6. Hystrix property configuration

6 New circuit breaker – Resilience4j

  1. Circuit breaker (CircuitBreaker)
  2. Speed limiter (RateLimiter)
  3. Bulkhead isolation (Bulkhead)
  4. Retry (Retry)
  5. Cache (Cache)
  6. Time elimiter
  7. A mixture of components
  8. Use the Spring Boot 2 configuration

 

Call an OpenFeign declaratively

  1. The use of OpenFeign
  2. Configuration Hystrix
  3. Call the OpenFeign interface with Resilience4j

8 Old API gateway one Zuul

  1. What is a gateway
  2. Example of Zuul getting started
  3. Zuul principle one filter
  4. Current limiting
  5. Dynamic routing
  6. Grayscale release (Canary Release)
  7. Use Hystrix fuse

9 New Gateway 1 Spring CloudGateway

  1. Know the Gateway
  2. Assertions (Predicate)
  3. Overview of filters
  4. Built-in filter factory
  5. Custom filter
  6. Gateway Knowledge Supplement

 

10 Configure the Spring Cloud Config

  1. Getting started Example 1 using a Git repository
  2. Use other methods to implement the configuration
  3. Details on how to use the server

11Spring Cloud Sleuth Full link tracing

  1. Basic concepts of link tracing
  2. Spring Cloud Sleuth and Zipkin
  3. The instance
  4. persistence

 

12 Microservices monitoring a Spring Boot Admin

  1. Instance profile
  2. URL Registration
  3. Service discovery registration mode
  4. Use Spring Security to secure the Admin server

13 Generate a unique ID number mechanism

  1. A common way to generate ids
  2. Custom transmitter system

Distributed database technology

  1. Basic knowledge of
  2. Development environment setup
  3. Subdivision algorithm
  4. Sharding middleware ShardingSphere

 

15 Distributed database transactions

  1. Strongly consistent transaction
  2. Weakly consistent transaction
  3. Practical theory of distributed transaction applications

 

16 Distributed cache a Redis

  1. High availability of Redis
  2. Use consistent hashing (ShardedJedis)
  3. Distributed caching practices

17 Distributed Session

Several ways to distribute a session

  1. Sticky session
  2. Server session Replication
  3. Using caching (spring-session-data-redis)
  4. Persist to the database

 

18 Verifying the distributed system permission

  1. Spring Security
  2. Custom microservice permission control
  3. Summary of the 2.0
  4. Spring Cloud Security

 

19 Remote Procedure call

  1. Remote procedure call
  2. Introduction of Thrift
  3. RPC summary

Microservices design and high concurrency practices

  1. Principles of microservice design
  2. Some optimization experience for high concurrency systems
  3. Simple microservice system example

 

This learning resource systematically and thoroughly introduces the popular microservice architecture today, especially the implementation scheme of the mainstream Spring Cloud. However, the microservice architecture also has various defects of distributed system, so the common distributed technology is also introduced in the book. The contents of this book are easy to understand and the arrangement is simple. This book is a great reference for those interested in working with distributed and microservices.

access

Forward this article + pay attention to the public below can be obtained!