current position:Home>Is micro service the golden rule? How to build a distributed system based on spring cloud?
Is micro service the golden rule? How to build a distributed system based on spring cloud?
2022-01-26 22:00:25 【m0_ sixty-four million nine hundred and twenty-six thousand six】
The concept of Distributed Systems
With the development of Internet , big data 、 High concurrency and fast response are the inevitable requirements of Internet system . But in the case of big data and high concurrency , The requirement of fast response is more demanding , Because a large amount of data will lead to a longer time to find data , High concurrency will slow down the Internet system due to busy , This in turn affects the response speed . So it's impossible for a stand-alone system to meet the needs of the Internet , In order to meet the demanding requirements of the Internet , The website system has developed from a single machine system to a multi machine cooperative system , Therefore, the Internet system has evolved from a single machine system to a multi machine system , We put this kind of system in which multiple machines cooperate with each other to complete enterprise business functions , It is called distributed system .
Microservice architecture
Because distributed is very complex , So there has always been no authoritative architecture and Design , More just the accumulation and practice of predecessors . Predecessors have summed up many useful ideas , Accumulated a lot of experience , Developed a lot of Distributed Software . in recent years , The most popular distributed architecture is micro service architecture .
What is the connection between the two
Distributed is just a means , Spread different machines in different places , And then these machines help each other with the business . Microservices are a special kind of distributed services , let me put it another way , Microservice architecture is a subset of distributed service architecture . Microservice architecture through finer grained service segmentation , Make the iteration speed and parallelism of the whole system higher , However, the complexity and performance of operation and maintenance will increase with the finer granularity of services . Microservices focus on decoupling , Make each module independent . Distribution focuses on resource sharing and accelerating computer computing speed .
We know , Implementing microservices requires a lot of software , Microservices cannot solve all the problems of Distributed Systems , It just seeks a balance , Make it easier for architects 、 Easily build distributed systems . But microservices are not the golden rule , For some special distributed requirements , We need to use other methods to achieve , Just as the method is dead , And man is alive , We need to solve the problem realistically .
The document to be introduced in this article , Combined with practical cases, this paper analyzes Spring Cloud The principle and application of basic components of microservice system are described , It also combines microservices to explain the relevant knowledge of Distributed Systems , And micro services ( Distributed ) System development . The following is the main content of the document :
- The first 1 Chapter Overview of distributed and microservices
- The characteristics of the Internet system
- Distributed System Overview
- Design principles of distributed system
- Microservice architecture
- Spring Cloud
- Introduction of microservice system sample
- The first 2 Chapter Technology base
- Spring Boot
- REST Style Introduction
- The first 3 Chapter Service governance ——Eureka
- Service Governance Center
- Eureka Governance mechanisms
- Eureka To configure
- The first 4 Chapter Client load balancing ——Ribbon
- Overview of load balancing
- First time to know Ribbon
- Ribbon Load balancers and policies
- Ribbon Service instance list maintenance
- Customize Ribbon client
- Ribbon Use practice
- The first 5 Chapter Circuit breaker ——Hystrix
- summary
- Introductory example
- Hystrix working principle
- Hystrix practice
- The dashboard
- Hystrix Attribute configuration
- The first 6 Chapter New circuit breaker ——Resilience4j
- Circuit breaker (CircuitBreaker)
- Speed governor (RateLimiter)
- Bulkhead isolation (Bulkhead)
- Retryer (Retry)
- cache (Cache)
- Time limiter (TimeLimiter)
- Component mix
- Use Sping Boot 2 Configuration mode
- The first 7 Chapter Declarative call ——OpenFeign
- OpenFeign Use
- To configure Hystrix
- send eilence4g call openFeign Interface
- The first 8 Chapter used API gateway ——Zuul
- What is a gateway
- Zuul Enter into 「 example
- Zuul Principle 1 filter
- Current limiting
- Dynamic routing
- Grayscale Publishing ( Release of canary )
- Use Hystrix Fuse
- The first 9 Chapter New gateway ——Spring CloudGateway
- know Gateway
- Assertion (Predicate)
- filter (Filter) summary
- Built in filter I factory
- Custom filter
- Gateway Knowledge supplement
- The first 10 Chapter To configure ——Spring Cloud Config
- Introductory example —— Use Git Warehouse
- Use other ways to configure
- How to use the server
- The first 11 Chapter Spring Cloud Sleuth Full link tracking
- The basic concept of link tracking
- Spring Cloud Sleuth and Zipkin
- example
- Persistence
- The first 12 Chapter Monitoring of microservices ——Spring Boot Admin
- An introduction to examples in this chapter
- URL Registration method
- Service discovery registration method
- Use Spring Security Protect Admin Server side
- The first 13 Chapter Generate unique ID—— Signaling mechanism
- Generate ID The common way to do it
- Custom sign mechanism
- The first 14 Chapter Distributed database technology
- Basic knowledge of
- Development environment construction
- Sharding algorithm
- Slicing middleware ShardingSphere
- The first 15 Chapter Distributed database transactions
- Strong consistent transactions
- Weakly consistent transactions
- The practical theory of distributed transaction application
- The first 16 Chapter Distributed cache ——Redis
- Redis High availability
- Use consistent hashes (ShardedJedis)
- Distributed caching practices
- The first 17 Chapter Distributed session
- Several ways of distributed sessions
- Sticky conversation
- Server session replication
- Use the cache singsisnodataredis
- Persist to database
- The first 18 Chapter Distributed system permission verification
- Spring Security
- Custom microservice permission control
- OAuth 2.0 summary
- Spring Cloud Security
- The first 19 Chapter Remote procedure call
- Spring Security
- Custom microservice permission control
- OAuth 2.0 summary
- Spring Cloud Security
- The first 20 Chapter Microservice design and high concurrency practices
- Microservice design principles
- Some optimization experience of high well production system
- Simple microservice system example
This document describes Spring Cloud Microservices and their components . Because microservice system is a form of distributed system , It will inevitably have various disadvantages of distributed system , So I will also introduce some common knowledge of Distributed Systems , To better meet the needs of enterprises to build systems .
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/202201262200226600.html
The sidebar is recommended
- Spring IOC container loading process
- [thinking] the difference between singleton mode and static method - object-oriented programming
- Hadoop environment setup (MySQL environment configuration)
- 10 minutes, using node JS creates a real-time early warning system for bad weather!
- Git tool
- Force deduction algorithm - 92 Reverse linked list II
- What is the sub problem of dynamic programming?
- C / C + +: static keyword summary
- Idea does not have the artifacts option when configuring Tomcat
- Anaconda can't open it
guess what you like
-
I don't know how to start this
-
Matlab simulation of transportation optimization algorithm based on PSO
-
MySQL slow log optimization
-
[Vue] as the window is stretched (larger, smaller, wider and higher), the text will not be displayed
-
Popular Linux distributions for embedded computing
-
Suzhou computer research
-
After installing SSL Certificate in Windows + tomcat, the domain name request is not successful. Please answer!!
-
Implementation time output and greetings of jQuery instance
-
The 72 year old uncle became popular. Wu Jing and Guo fan made his story into a film, which made countless dreamers blush
-
How to save computer research
Random recommended
- Springboot implements excel import and export, which is easy to use, and poi can be thrown away
- The final examination subjects of a class are mathematical programming, and the scores are sorted and output from high to low
- Two pronged approach, Tsinghua Professor Pro code JDK and hotspot source code notes, one-time learning to understand
- C + + recursive knapsack problem
- The use of GIT and GitHub and the latest git tutorial are easy to understand -- Video notes of crazy God speaking
- PostgreSQL statement query
- Ignition database test
- Context didn't understand why he got a high salary?, Nginxfair principle
- Bootstrap switch switch control user's guide, springcloud actual combat video
- A list that contains only strings. What other search methods can be used except sequential search
- [matlab path planning] multi ant colony algorithm grid map path planning [including GUI source code 650]
- [matlab path planning] improved genetic algorithm grid map path planning [including source code phase 525]
- Iinternet network path management system
- Appium settings app is not running after 5000ms
- Reactnative foundation - 07 (background image, status bar, statusbar)
- Reactnative foundation - 04 (custom rpx)
- If you want an embedded database (H2, hsql or Derby), please put it on the classpath
- When using stm32g070 Hal library, if you want to write to flash, you must perform an erase. If you don't let it, you can't write continuously.
- Linux checks where the software is installed and what files are installed
- SQL statement fuzzy query and time interval filtering
- 69. Sqrt (x) (c + + problem solving version with vs runnable source program)
- Fresh students are about to graduate. Do you choose Java development or big data?
- Java project: OA management system (java + SSM + bootstrap + MySQL + JSP)
- Titanic passenger survival prediction
- Vectorization of deep learning formula
- Configuration and use of private image warehouse of microservice architect docker
- Relearn JavaScript events
- For someone, delete return 1 and return 0
- How does Java dynamically obtain what type of data is passed? It is used to judge whether the data is the same, dynamic data type
- How does the database cow optimize SQL?
- [data structure] chain structure of binary tree (pre order traversal) (middle order traversal) (post order traversal) (sequence traversal)
- Webpack packaging optimization solution
- 5. Operation element
- Detailed explanation of red and black trees
- redhat7. 9 install database 19C
- Blue Bridge Cup notes: (the given elements are not repeated) complete arrangement (arrangement cannot be repeated, arrangement can be repeated)
- Detailed explanation of springboot default package scanning mechanism and @ componentscan specified scanning path
- How to solve the run-time exception of test times
- Detailed explanation of k8s management tool kubectl
- Android system view memory command