Starting from India, overseas shopping malls will gradually have the demands of some other countries. At this time, we need to make a transformation for the current shopping malls, which can support shopping malls in many countries. Here, many problems will be involved, such as multilingualism, multi country, multi time zone, l ...
Posted by joshmmo on Tue, 26 Apr 2022 07:58:23 +0300
I simulated a Redis cluster on Alibaba cloud (using 8001-8006) and connected with linux. Everything was normal, but when I connected with a java client (the Java client is not on the same server as the Redis cluster), an exception occurred, saying that I can't access it.
Cluster installation: https://www.cnblogs.com/liconglong/p ...
Posted by smartsley on Tue, 26 Apr 2022 02:47:50 +0300
1, Cache invalidation of high parallel delivery
1. Cache penetration
Note: it refers to querying a certain nonexistent data. Since the cached data does not exist, it needs to be queried from the database. If the data cannot be found, it will not be written to the cache, which will cause the nonexistent data to be queried in the database ev ...
Posted by TheoGB on Tue, 26 Apr 2022 01:21:48 +0300
Environment: redis6 two point six A linux virtual machine, contos7
One master, two slave and three sentinel cluster. When the master node goes down, a new master node is re selected through sentinel to ensure the availability of the cluster.
Main functions of sentry: 1. Cluster monitoring: responsible for mon ...
Posted by aladiyat23 on Mon, 25 Apr 2022 15:12:39 +0300
The code of redis-0.1 is downloaded from the network. This version has a small amount of code and is easy to understand. It also contains many basic ideas and theories of the author in developing redis. It is a good source code reading material. from Redis source code download address After downloading, unzip it to the directory sp ...
Posted by erupt on Mon, 25 Apr 2022 12:30:55 +0300
Download and install, and execute commands in turn;
Install log cutting service logrotate: yum -y install logrotate
Download the redis installation package from the official website. Note which directory the command is currently executed in and which directory the downloaded package will be in
wget http://download.redis.io/releases/redis-4.0 ...
Posted by the_manic_mouse on Mon, 25 Apr 2022 04:37:56 +0300
In traditional Java Web projects, database is used to store data, but there are some fatal disadvantages, which mainly come from the performance. Because the persistent data of database is mainly oriented to disk, and the read / write of disk is relatively slow, there is rarely high concurrency.
Posted by jaydeesmalls on Sun, 24 Apr 2022 22:55:01 +0300
1, Import dark horse comment items
⚫ tb_user: user table ⚫ tb_user_info: user details table ⚫ tb_shop: merchant information table ⚫ tb_shop_type: merchant type table ⚫ tb_blog: user diary table (DA Ren's shop Diary) ⚫ tb_follow: user attention table ⚫ tb_voucher: coupon form ⚫ tb_voucher_order: order form of coupon
Posted by bdee1 on Sun, 24 Apr 2022 16:56:48 +0300
I HashSet overview
HashSet is an implementation class of Java Collection set. Set is an interface. In addition to HashSet, its implementation class also has TreeSet and inherits the Collection. HashSet Collection is very common and is also a knowledge point often asked by programmers during interview. The following is the structure diagram
Posted by darlingm on Sun, 24 Apr 2022 16:29:03 +0300
1. Red envelope ranking query
In the above case, we realized the information query of a user grabbing the red envelope. Next, we realized the publicity of grabbing the red envelope and sorted it according to the amount of the red envelope For the information of 100 users, the concurrency of this data will be greater, and we need to cache ...
Posted by lovasco on Fri, 22 Apr 2022 15:20:21 +0300