One click to understand distributed lock 3

Distributed lock - Implementation Based on Redisson aspect We have learned from the previous two articles Implementation based on Database as well as Redis based implementation We learned about the implementation of distributed locks from the database and Redis levels. In this article, we learn about distributed locks from the aspect of re ...

Posted by hmogan on Fri, 14 Jan 2022 18:20:45 +0100

What is zookeeper from the perspective of use

Zookeeper zookeeper action effect: Middleware provides coordination services, assists in computing, assists in managing storage and other functionsActing on the distributed system and giving full play to its advantages, it can serve big dataSupport java and provide client Api of java and c language characteristic: Consistency: data consist ...

Posted by irishmike2004 on Thu, 13 Jan 2022 16:24:47 +0100

redis_day_19_ Master slave replication setup

Single point disadvantages and Solutions redis can be a single machine, a single process, or a cache database. The persistence method can be through rdb and aof. Single machine deployment has three disadvantages: single point of failure; Limited capacity; Too many visits can be stressful. In order to solve the disadvantages of single machine d ...

Posted by intellivision on Sun, 09 Jan 2022 14:58:54 +0100

CentOS 8 deploying distributed LNMP+WordPress

1, Experimental environment 1. Node rule IP addressHost nameNode description192.168.18.8masterdbDatabase master node192.168.18.18nginxnginx server node192.168.18.88slavedbDatabase slave node192.168.18.188phpPHP environment node 2. Node service installation (1) Deploy and configure the distributed master-slave database server. See: CentOS8 d ...

Posted by dewknight on Sun, 09 Jan 2022 13:43:05 +0100

Basics: introduction to distributed locks

Basics: what is distributed lock?The synchronized keyword and ReentrantLock reentrant lock in Java can control concurrent access to resources in a multi-threaded environment, but they are JVM level local locks that will fail in distributed scenarios. Distributed locking can avoid different nodes from repeating the same work, so as to avoid mult ...

Posted by k.soule on Sun, 09 Jan 2022 05:48:55 +0100

Implementation of distributed locking based on SpringBoot and database table records

When different threads in the same process operate to share resources, we only need to lock the resources. For example, we can ensure the correctness of the operation by using the tools under JUC. Students unfamiliar with JUC can read the following articles: On SynchronizedSynchronized optimizationFoundation stone of JUC - Unsafe class Howev ...

Posted by LiamBailey on Sat, 08 Jan 2022 13:05:26 +0100

RabbitMq Guide: completely solve the problem of message reliability and implement delay queue

introduction You must be familiar with RabbitMq. We often use it for asynchronous communication between services, such as SMS, log, e-mail sending and other business scenarios. However, in the process of using RabbitMq, we will encounter the problem of message loss and the need to delay consuming messages. I believe you will find the answer yo ...

Posted by sameveritt on Fri, 07 Jan 2022 11:05:44 +0100

Distributed RPC framework Apache Dubbo

1. Evolution process of software architecture The development of software architecture has experienced the evolution process from single architecture, vertical architecture, SOA architecture to micro service architecture. Let's learn about these architectures respectively. 1.1 single structure Architecture Description: All functions ar ...

Posted by erth on Thu, 06 Jan 2022 16:17:58 +0100

redis distributed lock

Overview of distributed locks Before understanding distributed locks, we should first know why distributed locks are used. Let's first understand the following cache exceptions Cache exception Cache penetration It refers to querying a certain nonexistent data. Because the cache does not hit, we will query the database, but the database doe ...

Posted by Morrigan on Thu, 06 Jan 2022 13:17:09 +0100

MongoDB introduction and Java development application

Introduction to MongoDB concept MongoDB is an open source database system based on distributed file storage. MongoDB is a product between relational database and non relational database. It is the most functional and relational database among non relational databases. MongoDB is characterized by no Schema restrictions and high flexibility. T ...

Posted by Shadow Hatake on Thu, 06 Jan 2022 13:06:27 +0100