Why use distributed locks?
Before discussing this issue, let's take a look at a business scenario:
System A is an e-commerce system. At present, it is deployed on A machine. There is an interface for users to place orders. However, users must check the inventory before placing orders to ensure that the inventory is sufficient.
Because the sy ...
Posted on Sun, 05 Dec 2021 08:54:30 -0500 by sean paul
The transaction message of rocketmq is used as a solution to distributed transactions on some occasions. Today, let's analyze the transaction message of rocketmq
1. Transaction message flow process
2. The producer sends a transaction message (half message)
3. The broker handles the half message
4. The producer executes a local tr ...
Posted on Sat, 04 Dec 2021 21:41:55 -0500 by sawade
1, Concept of distributed transaction
1. What is a transaction
A transaction can be regarded as a big activity. It consists of different small activities. These activities either succeed or fail.
2. Local affairs
Four characteristics of database transactions ACID:
A(Atomic): Atomicity ， All operations constituting a transact ...
Posted on Fri, 03 Dec 2021 19:07:35 -0500 by bache
Detailed explanation of basic concepts of MongoDB
Mongo is the middle part of humongous, which means "huge and incomparable" in English. Therefore, Mongodb can be translated into "huge database", and the more elegant name is "massive database". Mongodb is a non relational database. When it comes to non relatio ...
Posted on Tue, 30 Nov 2021 22:56:32 -0500 by sugarat
What data is suitable for caching?
The requirements for immediacy and data consistency are not highData with large access and low update frequency (more reads and less writes)
Introducing data redis starterSimply configure the host information of redisUse the StringRedisTemplate automatically configured by SpringBoot ...
Posted on Thu, 25 Nov 2021 14:27:03 -0500 by php_bachir
In order to solve the problem of message loss caused by various reasons on the consumer side, we all know that the root cause is the automatic ack mechanism of RabbitMQ. Therefore, in order to avoid the above problems, we will select Manual ack to ensure that messages will not be lost for some reasons.
However, there is ...
Posted on Thu, 25 Nov 2021 13:49:51 -0500 by marty68
Distributed coordination zookeeper (Distributed Lock & leader election)
In the case of microservices, we usually use cluster deployment to relieve node pressure. If multiple users rob a commodity at the same time, if we don't handle it at the back end, there will be a problem. However, traditional synchronized can't solve the cross process ...
Posted on Wed, 24 Nov 2021 14:03:54 -0500 by ghornet
🔰 Learning video 🔰
Silicon Valley spring cloud framework development tutorial (spring cloud Alibaba microservice distributed architecture Spring Cloud)
Number of episodes: 111-137
🔰 Learning maxims 🔰
Not knowing, but doing.
🔰 Study notes 🔰
[Java] summary of learning notes
🔰 Project address 🔰
Posted on Tue, 23 Nov 2021 10:40:24 -0500 by fqservers
1, Distributed ID concept
Speaking of ID, the characteristic is unique. In the human world, ID is the ID card and everyone's unique ID. In complex distributed systems, it is often necessary to uniquely identify a large number of data and messages.
For example, in the case of a single entity, the ID field of the database can use self increment a ...
Posted on Tue, 23 Nov 2021 10:02:10 -0500 by chick3n
Integrating Ribbon with RestTemplate
Spring provides a simple and convenient template class for API calls, that is, RestTemplate.
1. Use RestTemplate
When we introduced Eureka earlier, we have already used RestTemplate. This section will explain how to use RestTemplate in more detail. First, let's take a look at the use of GET requests: crea ...
Posted on Tue, 23 Nov 2021 05:54:00 -0500 by V0oD0o