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!
- Overview of distributed and microservices
- Technology base
- Service governance – Eureka
- Client Load Balancing – Ribbon
- Breaker one Hystrix
- New circuit breaker – Resilience4j
- Call an OpenFeign declaratively
- 1 Old API gateway one Zuul
- New gateway – Spring CloudGateway
- Configure a Spring Cloud Config
- Spring Cloud Sleuth full link tracing
- Microservices monitor with a Spring Boot Admin
- Generate a unique ID number mechanism
- Distributed database technology
- Distributed database transactions
- Distributed cache a Redis
- Chapter Distributed Session
- Distributed system permission verification
- Remote procedure call
- 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
- Characteristics of Internet systems
- Overview of Distributed Systems
- Design principles for distributed systems
- Microservices Architecture
- Spring Cloud
- Introduction to the microservice system sample
2 Technical Basis
- Spring Boot
- Introduction to REST Style
3 Service governance – Eureka
- Service Governance Center
- Eureka governance mechanism
- Eureka configuration
4 Client Load Balancing – Ribbon
- An overview of negative crop equilibrium
- First Ribbon
- Ribbon Load balancer and Policies
- Ribbon Service instance list maintenance
- Custom Ribbon client
- Ribbon Usage Practice
5 Circuit breaker a Hystrix
- An overview of the
- An introduction to instance
- How Hystrix works
- Hystrix practice
- The dashboard
- Hystrix property configuration
6 New circuit breaker – Resilience4j
- Circuit breaker (CircuitBreaker)
- Speed limiter (RateLimiter)
- Bulkhead isolation (Bulkhead)
- Retry (Retry)
- Cache (Cache)
- Time elimiter
- A mixture of components
- Use the Spring Boot 2 configuration
Call an OpenFeign declaratively
- The use of OpenFeign
- Configuration Hystrix
- Call the OpenFeign interface with Resilience4j
8 Old API gateway one Zuul
- What is a gateway
- Example of Zuul getting started
- Zuul principle one filter
- Current limiting
- Dynamic routing
- Grayscale release (Canary Release)
- Use Hystrix fuse
9 New Gateway 1 Spring CloudGateway
- Know the Gateway
- Assertions (Predicate)
- Overview of filters
- Built-in filter factory
- Custom filter
- Gateway Knowledge Supplement
10 Configure the Spring Cloud Config
- Getting started Example 1 using a Git repository
- Use other methods to implement the configuration
- Details on how to use the server
11Spring Cloud Sleuth Full link tracing
- Basic concepts of link tracing
- Spring Cloud Sleuth and Zipkin
- The instance
- persistence
12 Microservices monitoring a Spring Boot Admin
- Instance profile
- URL Registration
- Service discovery registration mode
- Use Spring Security to secure the Admin server
13 Generate a unique ID number mechanism
- A common way to generate ids
- Custom transmitter system
Distributed database technology
- Basic knowledge of
- Development environment setup
- Subdivision algorithm
- Sharding middleware ShardingSphere
15 Distributed database transactions
- Strongly consistent transaction
- Weakly consistent transaction
- Practical theory of distributed transaction applications
16 Distributed cache a Redis
- High availability of Redis
- Use consistent hashing (ShardedJedis)
- Distributed caching practices
17 Distributed Session
Several ways to distribute a session
- Sticky session
- Server session Replication
- Using caching (spring-session-data-redis)
- Persist to the database
18 Verifying the distributed system permission
- Spring Security
- Custom microservice permission control
- Summary of the 2.0
- Spring Cloud Security
19 Remote Procedure call
- Remote procedure call
- Introduction of Thrift
- RPC summary
Microservices design and high concurrency practices
- Principles of microservice design
- Some optimization experience for high concurrency systems
- 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!