Tag:Distributed
-
Seata distributed transaction failure notification
1、 Background In our useSeataAs a distributed transaction, sometimes our distributed transaction can not succeed every time, and we need to notify these failed distributed transactions. This article briefly records how to implement notification. 2、 Function realization The email notification is simulated here, but the email is not really sent, but a log is simply […]
-
To make good use of microservices, first clarify the relationship between distributed and microservices
1、 Definition of distributed and microservice architecture Distributed application scenarios cover a wide range of areas. What I understand is: Communication between different processes, Called between distributed objects of different hosts, Distributed file system for big data storage, A naming service for mutual recognition between networks, A centerless peer-to-peer model for computing or storage in […]
-
What is the skill tree of a distributed storage engineer?
Many engineers who have just entered the storage industry or want to switch to the distributed storage industry often have confusion, that is, “what is the skill tree of a distributed storage engineer?” So we raised this question and went to our R & D experts. Let’s start with the topic: “what’s the skill tree […]
-
Concise and practical redis distributed lock usage
This article is transferred from: Le byte This article mainly explains the usage of redis distributed lock For more Java related information, you can follow the official account Le byte. Send: 999 In many cases, the distributed lock function needs to be used in microservices. At present, the more common scheme is to realize the […]
-
Don’t say you can’t micro service. Six minutes will teach you to skillfully play with distributed link tracking!
I will introduce this article to you“Distributed Link Tracking”For most companies adopting microservice architecture, distributed link tracking is necessary, whether it is the traditional microservice system or the microservice architecture of the new generation of service mesh! The specific content introduced in this paper is not completely theoretical, but hopes to guide everyone to operate […]
-
Why is etcd based distributed lock more secure than redis lock
Redis implemented distributed lock #Lock the resource key. When the key does not exist, it is created and set. It expires automatically in 10 seconds SET key value EX 10 NX #Delete key DEL key Role of nx The NX parameter is used to ensure that only one client can write the secondary key successfully […]
-
Client PHP version of Kafka producer
1、 Preparatory work Although Kafka is written in the Java / Scala language, this does not hinder its multilingual support. It can be found on Kafka’s official websiteCLIENTSCheck the languages supported by Kafka, including C / C + +, python, go and other languages. To operate Kafka with PHP, you need to install librdkafka library […]
-
Construction of distributed second kill system
catalogue Main problem solving Project architecture Database design Project start 1. The back end returns the second kill time 2. Solve cross domain problems 3. Redis uses cacheable 4. Second kill countdown 5. How to prevent placing an order in advance 6. How to prevent repeated submission 7. Gateway current limiting Counter algorithm Leaky bucket […]
-
Spring boot integrates redis to realize distributed lock
Redis FAQ: Cache penetration: there is no cached null value in the program; When a large number of requests get a nonexistent data, because there is no null value cached in the cache, a large number of requests directly access the database, and the pressure on the database increases sharply, resulting in penetration problems! Solution: […]
-
[gold, silver and silver] redis interview questions (2021 latest edition)
catalogue preface 1. What is redis? 2. Redis data type? 3. What are the benefits of using redis? 4. What are the advantages of redis over memcached? 5. What are the differences between Memcache and redis? 6. Is redis single process and single thread? 7. What is the maximum storage capacity of a string type […]
-
Learn to go concurrent programming in 7 days? Write a simple gob concurrent program and the use of goroutine the next day
About the author: in-service big data development engineer of the second tier factory. I want to communicate with students engaged in big data development~ Blatantly put rotten, silent learning. If it’s useful or helpful, shake three times with one arrow. catalogue 1、 How to write a simple go concurrent program 2、 Go language multithreading simple […]
-
Based on harmonyos distributed technology, they make the painting experience better
Painting is the hobby of many people, but it is not easy to create excellent works. This depends not only on the sudden emergence of personal inspiration, but also on the cooperation and Inspiration of others. At present, the experience of most painting applications on the market on a single device is good enough, but […]