Implement SMS verification code function based on SpringBoot and Redis

I heard that WeChat search for "Java Fish Aberdeen" will become stronger! This article is included in JavaStarter , which contains my complete series of Java articles, you can read it for study or interview. (I. Overview When using various app s or logging in to websites every day, you will basically see the function of SMS veri ...

Posted by strudo on Sat, 30 Apr 2022 10:58:25 +0300

The basic summary of Spring boot ------- Redis

The last time I talked about the basic checksum and unified parameter return. Do you think I will record mybatis in this chapter? ~ Sorry, this chapter records redis. Because now the database part is not done by me, hahaha~ Back to the truth. 5.Redis 5.1 What is Redis and why is it used? Redis is a non-relational database that stores data wi ...

Posted by spxmgb on Sat, 30 Apr 2022 06:50:20 +0300

Redis learning notes

Redis Part I: Linux learning 1. What is NoSQL Baidu Encyclopedia: https://baike.baidu.com/item/NoSQL/8828247?fr=aladdin NoSQL (Not Only SQL) generally refers to non relational databases. Unlike relational databases, they do not guarantee the ACID characteristics of relational data. With the Internet web2.0 With the rise of websites, tra ...

Posted by therainmaker53 on Fri, 29 Apr 2022 22:13:20 +0300

redis slot manually assigned by the original person

Because of the development needs, a 9-node redis cluster is built in the local virtual machine, and the version used is redis 3.2. The redis cluster in the virtual machine has problems due to several forced shutdown of the virtual machine recently. Check the node log and prompt unrecoverable error: broken cluster config file, Searching for onli ...

Posted by methyl_blue on Fri, 29 Apr 2022 14:41:42 +0300

Redis actual combat - 05 Introduction to other redis commands

Publish and subscribe P52 Redis implements the publish/subscribe mode, also known as the pub/sub mode (similar to the observer mode in the design mode). The subscriber is responsible for subscribing to the channel, and the sender is responsible for sending binary string messages to the channel. Every time a message is sent to a given channel, ...

Posted by bailo81 on Wed, 27 Apr 2022 10:37:03 +0300

redis6.0.9 build master-slave copy and sentinel mode

1, Master-slave replication and its principle concept Master-Slave replication refers to copying data from one redis server to other redis servers. The former is called master/leader and the latter is called slave/follower; Data replication is unidirectional and can only be from master node to Slave node,. Mater is mainly written and Slave is ...

Posted by carnot on Wed, 27 Apr 2022 09:08:43 +0300

[Redis distributed lock] improve this "lock"

Original link: https://www.changxuan.top/?p=1243 In the last article( Easy to use lock )Finally, we found two problems with the current lock: Due to uncontrollable abnormal conditions, the thread holding the lock cannot release the lock, resulting in the lock being held all the time. At present, locks do not support obtaining locks only once i ...

Posted by env3rt on Tue, 26 Apr 2022 13:21:06 +0300

Practice of Java multithreading context transfer in complex scenarios

1, Introduction 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

Redis connection rejected: no further information

1, Question: 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

Cache and Redis distributed lock

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