preface

In recent years, microservices have become all the rage. In the case of imperfect business model and the impact of large scale traffic, many enterprises have abandoned the traditional single architecture and embraced microservices. This mode has the advantages of independent development, independent deployment, scalability and reusability, but also brings such a problem: the complexity of development, operation and maintenance. Some people feel that micro service more do more inconvenient management.

However, with the development of related technologies such as Docker container technology and automated operation and maintenance, microservices are becoming easier to maintain. Therefore, in the future, the development of micro-services will only become more and more perfect, and become the development direction of the business architecture of large and medium-sized enterprises in the future.

However, micro-service architecture contains many optimization and details. For some coding friends, they can only repeat the wheel day after day as others are transforming to micro-service architecture due to their lack of access to practical architecture design.


Recently organized a set of micro service actual combat documents, very thorough explanation. I want to share with you today. This information is especially suitable for:

1. Never used microservice technology, only used traditional SSM framework

2. I have used Spring Cloud, Dubbo and other technologies, but I only used them and basically couldn’t solve the problems

3. I have never systematically studied microservice architecture and feel that architecture design is unreachable

4. Have some understanding of microservice technology, but have no practical experience in designing high availability and high concurrency



What do you get out of this document?

  1. Understand the most popular microservices architecture principles and open source frameworks;
  2. Touch the inside knowledge of core technology of micro service equipped by first-line large factories;
  3. To help eliminate the knowledge blind area and reconstruct the knowledge system.



The specific contents of this book include:

  1. Basic knowledge of
  2. Microservice Builds (Spring Boot)
  3. Service Governance (Spring Cloud Eureka)
  4. Client Load Balancing (Spring Cloud Ribbon)
  5. Service Fault Tolerance Protection (Spring Cloud Hystrix)
  6. Declarative Service Invocation (Spring Cloud Feign)
  7. API Gateway Services (Spring Cloud Zuul)
  8. Distributed Configuration Center (Spring Cloud Config)
  9. Message Bus (Spring Cloud Bus)
  10. Message-driven Microservices (Spring Cloud Stream)
  11. Distributed Service Tracking (Spring Cloud Sleuth)



Basics: What is microservices architecture, the difference from individual systems, how to implement microservices, why to choose Spring Cloud, Introduction to Spring Cloud.



Microservices construction: Introduction to the framework, Quick start, Project construction and analysis, Implementation of the active API, Detailed configuration, custom parameters, parameter reference, command-line parameters, Multi-environment configuration, loading sequence, monitoring and management, Firsthand Knowledge of the Actuator, native endpoints.

Service Governance: Service governance, Netflix Eureka, Registration service Provider, High availability Registry, Service discovery and consumption, Eureka detail, service governance mechanism, source code analysis, Configuration detail, Service registration class configuration, service instance class configuration, cross-platform support.



Client load balancing: Client load balancer, RestTemplate Detail, GET request, POST request, PUT request, DELETE request, source code analysis, load balancer, load balancing policy, detail configuration, automatic configuration, Camden version optimization of RibbonClient configuration, parameter configuration, integration with Eureka, retry mechanism.


Service fault tolerance protection: Quick start, Principle analysis, Workflow, Circuit breaker principles, Dependency isolation, Usage details, Create request commands, define service degradation, exception handling, Command names, groups, and thread pool division, request caching, request consolidation, Attribute details, Command properties, Collapser properties, Thread Pool properties, Hystrix dashboard, Turbine cluster monitoring, building monitoring aggregation services, and combining with message brokers.



Declarative service invocation: Quick start, Inheritance features, Parameter binding, Ribbon Configuration, Global Configuration, Specified Service Configuration, Retry mechanism, Hystrix Configuration, Global Configuration, Disabled Hystrix, Specified Command Configuration, Service degradation Configuration, Other Configuration, Log configuration.



API Gateway services: Quick start, Gateway Building, Request Routing, Request Filtering, Route Details, Traditional Route Configuration, Service Route Configuration, Default rules for Service Routes, custom route mapping rules, Path matching, Route prefixes, local hops, Cookies and Headers, Hystrix, and Ribbon Support, filter parsing, filters, request life cycle, core filters, exception handling, Disabled filters, Dynamic loading, dynamic routing, dynamic filters.



Distributed Configuration Center: Quick start, build configuration center, configuration rules, rounding, client configuration mapping, service details, infrastructure, Git configuration warehouse, SVN configuration, the local warehouse, local file system, health monitoring, attributes, covers, safety protection, encryption, decryption, high availability configuration, customer details solution, the configuration of service center, fast response and try again, access remote failure Configure and dynamically refresh configurations.



Message bus: Message broker, RabbitMQ implementation message Bus, Basic concepts, Installation and use, Quick start, integrate Spring Cloud Bus, Principle analysis, specify refresh scope, architecture optimization, RabbitMQ configuration, Kafka implementation message Bus, Introduction to Kafka, quick start, integrate Spring Cloud Bus, Kafka configuration, in-depth understanding, source code analysis, other message broker support.



Message-driven microservices: Quick start, core concepts, binder, publish-subscribe pattern, consumer group, message partition, use explanation, unlock the function of binding, binding message channels, news production and consumption, reactive programming, consumer groups, message type and message partition, binder, rounding, binder SPI, automation configuration and binding configuration, the RabbitMQ and Kafka binding Controller, configuration details, basic configuration, binding channel configuration, binder configuration.



Distributed service tracing: Quick start, preparation, implementation tracing, tracing principles, sampling collection, Logstash integration, Zipkin integration, HTTP collection, messaging middleware collection, collection principles, data storage, API interface.


Due to space constraints, xiaobian here will only the actual combat document contains all the content shown, need to get a complete document to learn ape friends, can help forward and share this article, background private letter: “micro service” access.