Consistency challenge: data consistency solution under microservice architecture
CAP principle and BASE theorem
CAP principle
CAP is the acronym combination of Consistency, Availability and Partition tolerance. It is a priority for designers of all distributed systems before design.
CAP principle
Consistency C means that after the update operation is successful, the data of all nodes are completely consiste ...
Added by JMair on Mon, 20 Dec 2021 17:44:30 +0200
SpringCloud microservice Gateway
1, Introduction to Gateway
(1) Official website: https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.2.1.RELEASE/reference/html/
(2) Introduction to the official website: Gateway is an API gateway service built on the Spring ecosystem and is based on technologies such as Spring 5, Spring Boot 2 and Project Reactor. Gateway aims ...
Added by drunkencelt on Mon, 20 Dec 2021 12:11:49 +0200
Analysis of Nacos service discovery source code
1, Nacos service discovery flow chart
I believe you can sort it out after reading the following source code analysis; Refer to: Nacos service registration source code analysis flow chart
2, Find the source code entry
The spring cloud commons package defines a set of service discovery specifications, and the core logic is in the DiscoveryClie ...
Added by rossh on Mon, 20 Dec 2021 10:49:21 +0200
Spring Cloud_Day03_Ribbon load balancing
1, Meet Ribbon
1.1 what is Ribbon
Ribbon is a customer service load balancing tool based on HTTP and TCP, which is implemented based on Netflix Ribbon. It is not deployed independently like the Spring Cloud service registry, configuration center and API gateway, but it exists in almost every Spring Cloud micro service. Including the dec ...
Added by stageguys on Sat, 18 Dec 2021 21:36:35 +0200
Spring Cloud Gateway custom filter practice (observe the change of circuit breaker state)
Welcome to my GitHub
Here we classify and summarize all the original works of Xinchen (including supporting source code): https://github.com/zq2599/blog_demos
Overview of this article
This article is the seventh in the Spring Cloud Gateway practice series. In the previous article, we learned about various built-in filters, and we are st ...
Added by master123467 on Sat, 18 Dec 2021 09:25:35 +0200
Nacos Spring Cloud quick start
1. Preface
Nacos has many grammars. Combined with different technologies, it has different grammars: This article is about the usage of Nacos Spring Cloud.
2. Quick start of Nacos spring cloud
2.1 preconditions
You need to download Nacos and start the Nacos server first.
2.2 start configuration management
Configuration management is ...
Added by mattr on Fri, 17 Dec 2021 22:48:30 +0200
[spring cloud hoxton] can Ribbon really be replaced by spring cloud loadbalancer (load balancing)
1. Background
Spring Cloud Ribbon is a client load balancing tool based on HTTP and TCP, which is implemented based on Netflix Ribbon. Through the encapsulation of Spring Cloud, we can easily automatically convert service-oriented REST template requests into client-side load balanced service calls. Although Spring Cloud Ribbon is just a to ...
Added by madhu on Fri, 17 Dec 2021 02:43:52 +0200
Detailed explanation of spring cloud load balancing
Detailed explanation of spring cloud load balancing
1. Introduction
1.1 what is load balancing (in-process LB)
Load balancing, that is, load balancing, is a computer technology used to distribute load among multiple computers (computer clusters), network connections, CPU s, disk drives or other resources, so as to optimize resource use, maxi ...
Added by dhiren22 on Thu, 16 Dec 2021 19:45:27 +0200
KetamaHash code to achieve consistency hash (distributed routing algorithm) and principle analysis
KetamaHash code to achieve consistency hash (distributed routing algorithm) and principle analysis
What is a consistent hash
As a common distributed routing algorithm, consistent hash can well realize the load balancing of the server. When users request, they can hit different servers through the distributed routing algorithm, which can en ...
Added by phpnewby1918 on Wed, 15 Dec 2021 01:38:58 +0200
SpringCloud Quick Start - GateWay Service GateWay
Preface
What if we don't want all requests to have access to our services?
Thus, this component, Gateway Gateway, is the unified gateway to all our micro services Its core functions are as follows:
Privilege control: Gateway as a micro-service entry, needs to verify whether the user is eligible for requests, and if not interceptsRouting and ...
Added by edawson003 on Mon, 13 Dec 2021 19:01:41 +0200