Super complete! Ali first publishes internal microservice architecture notes, so you don’t have to worry about "microservices" anymore

 

In recent years, microservice architecture has become a hot topic in the IT field. A large number of first-line Internet companies have invested in the construction of micro-service architecture due to their huge business volume and business needs. Large companies such as Alibaba, Baidu, and Meituan have already started the practice and application of micro-services very early.

The concept of microservice architecture should be familiar to everyone now. Whether you use Apache Dubbo or Spring Cloud, you can try microservices to split complex and huge business systems into smaller-granularity and independently deployed Rest service.

Article content directory

  1. Introduction to Microservice Architecture
  2. Spring Cloud overview
  3. The foundation of Spring Clou: SpringBoot
  4. Service registration and discovery: Fureka
  5. Declarative ESTfu1 client: Spring Cloud OpenFei mn
  6. Circuit breaker: Hystrix
  7. Client load balancer: Spring Cloud Netflix Ribbon
  8. API Gateway: Spring Cloud Gateway
  9. Configuration Center: Spring Cloud Config
  10. Message driven: Spring Cloud Stream
  11. Message bus: Spring Cloud Bu
  12. Authentication and authorization: Spring CloudSecurity
  13. Service link tracking: Spring Cloud Sleuth

Introduction to Microservice Architecture

Content outline: Monolithic application architecture, S0A architecture, microservice architecture, genre of microservice architecture, cloud native and microservices

Spring Cloud overview

Content outline: Spring Cloud architecture, Spring Cloud Context: application context, Spring Cloud Commons: public abstraction

The foundation of springcloud-springboot

Content outline: Introduction to springboot, building a microservice, springboot configuration file (default configuration, externalization, YAML, automatic loading of external properties into Bean, multiple profiles, Starter, self-made Starter, Actuator)

Service registration and discovery: Eureka

Content outline: Introduction to Fureka, building Eureka service registration, building Eureka service provider, building Eureka service caller, Fureks service registration and discovery, simple application of Consu1, reading application configuration information, service discovery client, pull Registry information, service registration, initialization timing tasks, service offline, service instance registry, service registration, accept service heartbeat, service removal, service offline, cluster synchronization, metadata of Eureka Instance and Client, status page and health check Page port settings, region and availability zone, high availability service registry

Declarative ESTfu1 client: Spring Cloud OpenFeimn

Content outline: interaction between microservices, introduction to OpenFeien, code examples, core components and concepts, dynamic registration of Beandefinition, instance initialization, function calls and network requests, customization of decoders and encoders, request/response compression

Circuit breaker: Hystrix

Content outline: RestTemplate and Hystrix, OpenFei mn and Hystrix, service avalanche, circuit breaker, service degradation operation, resource isolation, Hystrix implementation ideas, encapsulation of HystrixC ommand, Hystri xComm and class structure, asynchronous callback execution command, asynchronous execution command and synchronous execution Command, circuit breaker logic, resource isolation, request timeout monitoring, failure rollback logic, asynchronous and asynchronous callback execution commands, inherit Hystr ixCommand, request merge

Client load balancer: Spring Cloud Netflix Ribbon

Content outline: load balancing, basic application, configuration and instance initialization, integration with 0penFei e, load balancer LoadBalancerClient, ILoadBalancer, load balancing strategy implementation, Ribbon API, using Netty to send network requests, read-only database load balancing implementation

API Gateway: Spring Cloud Gateway

Content outline: user service, gateway service, client access, initial configuration, gateway processor, route definition locator, route locator, route assertion, gateway filter, global filter, API endpoint, current limiting mechanism, fuse downgrade, Gateway retry filter

  1. Configuration Center: Spring Cloud Config

Content outline: configure client, configure warehouse, server, configuration verification, configuration dynamic update, configure server, configure client, configure multiple repo for Config Server, client overwrite remote configuration, attribute override, security protection, Encryption and decryption, quick response to failure and retry mechanism

Message driven: Spring Cloud Stream

Content outline: message queue, declaration and binding channel, custom channel, receiving message, configuration, dynamic registration of BearDefinition, binding service, obtaining binder, binding producer, message sending process, Binder For RocketMQ, multi-instance , Partition

Message bus: Spring Cloud Bu

Content outline: configuration server, configuration client, result verification, event definition and event listener, message subscription and publication, control endpoint, event registration in a custom package, custom listener, event initiator

Authentication and authorization: Spring CloudSecurity

Content outline: Introduction to 0Auth2, JWT, building authorization server, configuring resource server, accessing restricted resources, overall architecture, security context, authentication, authorization, 12.3.4 filters and interceptors in Spring Security, authorization server, resource server, Token relay mechanism, Spring Securi ty customization, 0Auth2 customization, SS0 single sign-on

Service link tracking: Spring Cloud Sleuth

Content outline: Introduction to link monitoring components,  features, project preparation, independent implementation of Spring Cloud S1 euth, integration of Zipkin

Due to space limitations, the editor only displays all the contents of this actual combat document here. Friends who need to obtain a complete document for learning can follow the editor. The background private message: [666] Get a free way to receive it!

If it is useful to you, I hope to get your forwarding, thank you for your great support!

Microservice actual combat architecture: Dubbox+ Spring Boot+Docker+ microservice architecture advanced actual combat pdf Friends who are interested, please forward + comment, follow my private message and reply "666" to get it for free

Guess you like

Origin blog.csdn.net/weixin_45132238/article/details/108669610