current position:Home>Explain microservices in simple terms: 40 actual cases of microservice architecture (Dubbo + spring cloud)

Explain microservices in simple terms: 40 actual cases of microservice architecture (Dubbo + spring cloud)

2022-01-26 21:58:55 m0_ sixty-four million nine hundred and twenty-six thousand six

Microservices have been very popular in recent years , We should know that the development process of microservices can be roughly divided into 6 The stages are : Monomer application stage 、 Vertical application stage 、 Distributed system phase 、 Service governance stage 、 Microservice stage 、 Finally, it comes to the service grid stage .

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

Now that we talk about microservices, we have to talk about its mainstream framework :

  • Dubbo

It is committed to providing high-performance and transparent remote service invocation schemes and services SOA Service governance solution .

Adopted Spring Configuration mode . be based on Spring Extensible mechanism ( Schema ) Transparent access to applications , No impact on apps API invasion , Support API Call mode ( The government does not recommend ). Just use Spring load Dubbo Can be configured .

  • Spring Cloud

Is based on Spring Boot A framework for rapid development of microservices . It provides the following 11 Some common components needed to develop microservices .

  1. Service discovery
  2. Circuit breaker
  3. Intelligent routing
  4. The micro broker
  5. Control bus
  6. One-off token
  7. Global lock
  8. Leadership election
  9. Configuration Management
  10. Distributed session
  11. State of the cluster

Although these components are not entirely Spring Cloud Own products . But it passes through Spring Boot Style encapsulates these components , Shielding complex configuration and implementation principles , Finally, it provides developers with a set of simple and easy to understand 、 Distributed system development kit that is easy to deploy and easy to maintain .

The difference between them is that the former makes it very easy and low-cost to build large-scale systems . The latter is mainly used for small project architecture .

  • Service Grid lstio

Istio Add traffic management to microservices , Provides the connection 、 Security 、 Solutions for managing and monitoring microservices .

Comparison between the three

  • dubbo Architecture diagram

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

  • Springcloud Architecture diagram

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

  • lstio Architecture diagram

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

  • Comparison of details

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

You can see Dubbo、Spring Cloud、Istio Are tools to effectively implement microservices . Enterprises or individuals should choose... According to their own situation

Choose the right architecture to solve business problems .

Combined with the project background 、 Provide functions for ,Dubbo just a little bit worse .

Spring Cloud It is the most secure framework for microservices at this stage or for a long time in the future .

If it is Teams that are technically aggressive may consider adopting Istio.

I don't know which tool you guys use in the actual development process ( You can discuss it in the comments section ), Xiaobian uses more in development Springcloud, And if we programmers don't know about many problems encountered in the development process, they are looking up information online by themselves , Take care of yourself , It's true. It's a little hard . Xiaobian also uses a lot of materials in the development process , Now let's introduce one that I think is good Springcloud Practical documents , I hope it can help you .

The main content of the document is

The first 1 Chapter Enter the world of micro Services

  • 1.1 Development stage of system architecture
  • 1.2 Mainstream microservice framework
  • 1.3 Service Grid (Service Mesh) frame Istio
  • 1.4 Compare Dubbo、Spring Cloud and Istio

The first 2 Chapter Prepare the development environment and tools

  • 2.1 Set up the environment
  • 2.2 install and configure Maven
  • 2.3 Install and configure development tools IDEA
  • 2.4 Install and configure development tools Eclipse
  • 2.5 be familiar with Spring Official development tools STS
  • 2.6 How to use the source code of this book

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 3 Chapter example 1: use Spring Cloud Implementing a microservice system

  • 3.1 The architecture and implementation steps of this example
  • 3.2 establish Spring Cloud project
  • 3.3 use Eureka Realization “ Service center ”
  • 3.4 use Eureka Realization “ Service providers ”
  • 3.5 use Feign Realization “ Serving consumers ”
  • 3.6 Test the microservice system

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 4 Chapter Get to know microservices

  • 4.1 The advantages and disadvantages of microservices
  • 4.2 Principles of microservice design
  • 4.3 Domain-driven design (DDD)
  • 4.4 Cross service transaction management mode
  • 4.5 Cross service query mode
  • 4.6 Microservice deployment
  • 4.7 The relationship between microservice architecture and cloud Nativity

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 5 Chapter Spring Cloud Basics

  • 5.1 understand Spring Cloud ecology
  • 5.2 understand Spring Cloud
  • 5.3 Learn about annotations
  • 5.4 understand Starter
  • 5.5 Use profile
  • 5.6 Application layered development mode ——MVC
  • 5.7 Responsive programming ——WebFlux
  • 5.8 understand Spring Cloud Commons

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 6 Chapter use Consul Achieve service governance

  • 6.1 Why service governance is needed
  • 6.2 Mainstream “ Service center ”
  • 6.3 know “ Service discovery ” Interface
  • 6.4 know Consul
  • 6.5 example 5: use Consul Realization “ Service providers ” Clusters and “ Serving consumers ”
  • 6.6 take “ Service center ” from Eureka Migrate to Consul

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 7 Chapter use Ribbon and Feign Achieve client load balancing and service invocation

  • 7.1 Understand load balancing
  • 7.2 know Ribbon
  • 7.3 Understand load balancing strategies
  • 7.4 example 7: In the absence of “ Service center ” Under the circumstances , Realize self maintenance client load balancing
  • 7.5 understand Feign
  • 7.6 example 8: Cover Feign Default configuration
  • 7.7 example 9: Realize in Feign Log in
  • 7.8 use Feign Build multi parameter request

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 8 Chapter use Hystrix Fault tolerant processing

  • 8.1 Avalanche effect
  • 8.2 Mainstream fault tolerance projects
  • 8.3 Hystrix Mechanisms for dealing with fault tolerance
  • 8.4 example 10: stay Feign of use Hystrix Implement fault tolerance of service invocation
  • 8.5 example 11: use Hystrix Dashboard Realize the visual monitoring of data
  • 8.6 example 12: use Turbine Aggregate monitoring data

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 9 Chapter use Spring Cloud Gateway Build microservice gateway

  • 9.1 Know the microservice gateway
  • 9.2 route (Route)
  • 9.3 filter (Filter)
  • 9.4 example 18: Realize routing fault tolerance
  • 9.5 Current limiting
  • 9.6 High availability
  • 9.7 Spring Cloud Gateway The endpoint of

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 10 Chapter use Spring Cloud Sleuth Realize microservice link tracking

  • 10.1 Microservice link tracking
  • 10.2 Some open source link tracking projects ——Skywalking、Pinpoint、Zipkin and CAT
  • 10.3 know Sleuth and Zipkin
  • 10.4 example 21: use Sleuth Implement log sampling
  • 10.5 example 22: stay Spring Cloud Use in Zipkin

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 11 Chapter use Spring Cloud Config Configure microservices

  • 11.1 Understand the configuration center
  • 11.2 Set the security of the configuration center
  • 11.3 Add / Decrypt the configuration file
  • 11.4 example 25: use Git To configure “ Configure server ”
  • 11.5 example 26: Get... From the client “ Configure server ” Put in Git Configuration files in the warehouse
  • 11.6 example 27: use Spring Cloud Bus Automatically refresh configuration information
  • 11.7 example 28: Realize the service of configuration center and configuration client

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 12 Chapter use Spring Cloud Alibaba Components implement service governance and flow control

  • 12.1 know Spring Cloud Alibaba Components
  • 12.2 know Sentinel
  • 12.3 use Sentinel Realization Spring Cloud Flow control and degradation of the project
  • 12.4 know Nacos
  • 12.5 example 32: use Nacos Realization “ Service providers ” and “ Serving consumers ”
  • 12.6 example 33: use Nacos Realization “ Configuration center ”
  • 12.7 example 34: use Nacos Storage Sentinel The current limiting rules of
  • 12.8 example 35: Realization Nacos Data persistence and clustering

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 13 Chapter use Spring Cloud Security Realize the security of microservices

  • 13.1 know Spring Security And Spring Cloud Security
  • 13.2 know OAuth 2.0
  • 13.3 Spring Cloud Security How to achieve OAuth 2.0
  • 13.4 example 36: use Spring Security Achieve security authentication and Authorization
  • 13.5 example 37: use OAuth 2.0 Achieve authentication and authorization
  • 13.6 example 38: use MySQL Realization Token Persistence of information
  • 13.7 example 39: use Redis Realization Token Persistence of information

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 14 Chapter example 40: use Spring Cloud Achieve daily page visits 3000 The microservice architecture of a certain platform of Wan

  • 14.1 The overall architecture of this example
  • 14.2 Realization “ Configuration center ” To provide configuration information
  • 14.3 Realization “ Service providers ” colony 、“ Serving consumers ” And client automatic configuration
  • 14.4 use OAuth 2.0 Realize unified authentication and authorization
  • 14.5 stay Spring Cloud of use “Redis+MySQL” Implement routing server
  • 14.6 use Spring Cloud Gateway Implement gateway cluster
  • 14.7 use Nginx Load balancing
  • 14.8 use Spring Boot Admin monitor Spring Cloud Applications
  • 14.9 Integrate “Prometheus+Grafana” To monitor services

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

The first 15 Chapter be based on Docker、K8s、Jenkins Of DevOps practice

  • 15.1 know DevOps
  • 15.2 know Docker
  • 15.3 Use Docker
  • 15.4 use Docker Compose Manage containers
  • 15.5 Manage mirrors
  • 15.6 know Docker Swarm、Kubernetes(K8s) and Jenkins

 In simple terms, micro Services :40 A practical case of microservice Architecture (Dubbo+Springcloud)

copyright notice
author[m0_ sixty-four million nine hundred and twenty-six thousand six],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201262158516060.html

Random recommended