Alibaba's internal SpringCloud Alibaba (full-color version) is open source, a new generation of microservice solutions, easy to master microservices

Spring Cloud Alibaba submitted the first code in the Spring Cloud Incubator warehouse on July 27, 2018, and released the first graduation version in the Alibaba warehouse on August 1, 2019. It has been about a year now

Spring Cloud Alibaba is not a simple component, but a comprehensive suite. It covers a lot of content, including: service governance, configuration management, current limiting and downgrading, and many components that support Ali's open source ecosystem (Dubbo, RocketMQ, etc.).

Again, for Chinese users, Spring Cloud Alibaba also has a very special meaning: it integrates the once-popular  Dubbo and Alibaba's powerful messaging middleware  RocketMQ  into the Spring Cloud system.

In one year, Spring Cloud Alibaba completed the transformation from the most unknown project of Spring Cloud to the hottest project of Spring Cloud

But there are still many people who don’t understand. Some people want to know but have no way to learn. Then I don’t think anyone can understand Spring Cloud Alibaba better than Alibaba’s architects. This time, this Ali P8 friend found me and hoped that I would Hard work can help more programmer friends

Chapter 1 Introduction to Microservices

With the development of the Internet, the scale of website applications is also constantly expanding, which leads to continuous changes in the system architecture. From the early days of the Internet to the present, the system architecture has generally gone through the following processes: single application architecture>vertical application architecture>distributed architecture>SOA architecture>microservice architecture. Let's first understand what each system architecture looks like, and what are the advantages and disadvantages of each.

Chapter 2 Microservice Environment Construction

This time, the products, orders, and users in the e-commerce project used are explained as cases.

Chapter 3 Nacos Discovery--Service Governance

Let's think about a question first

Through the operations in the previous chapter, we have been able to implement calls between microservices. But we have hard-coded the network address (ip, port) of the service provider into the code, which has many problems:

  • Once the service provider address changes, you need to manually modify the code

  • Once there are multiple service providers, the load balancing function cannot be realized

  • Once there are more and more services, it is difficult to manually maintain the calling relationship

So how to solve it? At this time, it is necessary to dynamically implement service governance through the registration center .

Chapter 4 Sentinel--Service Fault Tolerance

  • Problems caused by high concurrency

  • service avalanche effect

  • Common Container Scenarios

  • Getting started with Sentinel

  • What is Sentinel and what it does

  • Sentine|Rules

  • Use of @SentinelResource

  • Sentine rule persistence

  • Feign whole Sentinel

Chapter 5 Gateway--Service Gateway

  • Gateway Introduction

  • Gateway Introduction

  • Gateway Quick Start

  • Gateway Core Architecture

  • Affirmation

  • filter

  • Gateway current limiting

Chapter 6 Sleuth--Link Tracking

In the microservice construction of a large system, a system is split into many modules. These modules are responsible for different functions, combined into a system, and finally can provide rich functions. In this architecture, a request often involves multiple services. Internet applications are built on different sets of software modules. These software modules may be developed by different teams, may be implemented using different programming languages, and may be deployed on thousands of servers, spanning multiple different data Center, which means that there will be some problems in this architectural form:

  • How to quickly find the problem?

  • How to judge the impact range of a fault?

  • How to sort out service dependencies and the rationality of dependencies?

  • How to analyze link performance issues and real-time capacity planning?

Chapter 7 Rocketmq--Message Driven

  • Introduction to MQ

  • Getting started with RocketMQ

  • Message sending and receiving demo

  • the case

  • Send different types of messages

  • Details to pay attention to in message consumption

Chapter 8 SMS--Short Message Service

Short Message Service (Short Message Service) is a communication service capability provided by Alibaba Cloud for users.

  • Product advantages: comprehensive coverage, high concurrent processing, message accumulation processing, simple development and management, intelligent monitoring and scheduling

  • Product features: SMS notification, SMS verification code, promotion SMS, asynchronous notification, data statistics

  • Application scenarios: SMS verification code, system information push, promotion SMS, etc.

Chapter 9 Nacos Config--Service Configuration

The idea of ​​the configuration center is:

  • First of all, put all the various configurations in the project into a centralized place for unified management, and provide a set of standard interfaces.

  • When each service needs to obtain the configuration, it uses the interface of the configuration center to pull its own configuration.

  • When various parameters in the configuration center are updated, each service can also be notified to come and synchronize the latest information in real time, so that it can be updated dynamically.

Chapter 10 Seata--Distributed Transactions

A transaction refers to an operation unit, and all operations in this operation unit must eventually maintain consistent behavior, either all operations succeed, or all operations are cancelled. Simply put, transactions provide a "do nothing or do all" mechanism.

content display

Summarize

What makes you stronger than others is not how many years of CRUD work you have done, but that you have more in-depth skills than others. Don't always stay on the surface of CRUD, understand and master the underlying principles and be familiar with the source code implementation, and form your own abstract thinking ability, so that you can use it flexibly, which is an important direction for you to break through the bottleneck and stand out!

When you are using Douyin or playing games, other people are here to learn, grow, and improve. The biggest gap between people is actually thinking. You may not believe it, excellent people are always together. .

Guess you like

Origin blog.csdn.net/qq13321123/article/details/132096931