Big Call Business Scenarios and Solutions - Tasks

background Most mobile APP s will have function modules to do tasks and receive rewards. The purpose of this kind of demand is to cultivate user usage habits, improve user activity, get credit reward for completing tasks, exchange goods or charge charges through credit, WeChat and so on. Draw up a requirement scenario (Fig.), outline: Add a sm ...

Posted on Mon, 06 Apr 2020 09:35:06 -0700 by Chef-Mars

Learning Redis

Learning Redis 1. Redis installation configuration a. Download address: Redis Download b. In the folder saving location, open a cmd window, use the cd command to switch the directory to I:\Software\Redis-x64-3.2.100, run redis-server.exe redis.windows.conf c. Another cmd window is opened. Do not close it, or you wi ...

Posted on Sun, 05 Apr 2020 17:04:01 -0700 by Smeep

[Redis] CentOS7 installation and configuration of Redis database

Step 1, Download Download with wget command wget http://download.redis.io/releases/redis-4.0.9.tar.gz Step 2: install and compile decompression tar -zxvf Then enter the redis path and use the make When compiling, some errors may occur, such as: cd src && make all make[1]: Entering directory /u ...

Posted on Sat, 04 Apr 2020 09:38:34 -0700 by JJ123

redis implementation of distributed lock

I found a piece about redis distributed lock implementation Someone replied -- I glanced at the article at will at that time. In order to prevent deadlock, the idea is to use setnx to set value to local time, and then read value for time comparison when getting lock failure.. Then I replied.. Multiple application servers have time synchronizati ...

Posted on Wed, 01 Apr 2020 17:35:36 -0700 by miked2

MySQL MyISAM and Innodb table generation sequence

Catalog background Analysis test conclusion background The application side needs to generate the sequential increasing sequence to make the pipeline sequence number. The schemes are as follows: 1. redis /MySQL SEQUENCE engine generates the sequence; 2. Mysam table replace into mode in MySQL; 3. innodb table insert... On duplicate key mode ...

Posted on Wed, 01 Apr 2020 09:08:18 -0700 by anybody99

web development based on hi nginx (python) -- cookie and session management

Hi nginx manages sessions through redis. Three things need to be done to start management. First open userid: userid on; userid_name SESSIONID; userid_domain localhost; userid_path /; userid_expires 300s; This function is built in nginx and can ...

Posted on Tue, 31 Mar 2020 17:10:29 -0700 by Avi

Java Redis(1): implement Article likes ranking

Opening chapter This article uses Redis to achieve the article's likes, and arranges from the number of likes to the low. The implementation language is JAVA, so the package to be used is jedis. Content: Introduce Redis Function realization analysis. Function realization. Introduce Redis Redis has five data type ...

Posted on Tue, 31 Mar 2020 11:57:37 -0700 by Rai_de

Principle of spring boot auto assembly

Catalog Working principle analysis Automatic configuration takes effect Working principle analysis The Spring Boot source code for automatic configuration is in Spring Boot autoconfigure-x.x.x.x.jar: There is a @ SpringBootApplication annotation on the Spring Boot startup class, which is an indispensable annotation for the Spring Boot projec ...

Posted on Thu, 26 Mar 2020 04:54:40 -0700 by FD_F

Redis Cluster Set Up Complete Process Demo

Preface This article is intended to locally simulate the process of building a redis server cluster. What is the role of a Redis cluster? Before experimenting with deployment, we need to understand why we need to set up a Redis cluster and what problems did it solve?What are the advantages?We can explore this issue from a single Redis server. ...

Posted on Tue, 24 Mar 2020 09:57:31 -0700 by jlh3590

[Spring Security + OAuth2 + JWT start to practice] 25. JWT replace default token

brief introduction JWT is a stateless way. User's data can be directly parsed in token to get user's data. There are two problems in stateless: 1. Lease renewal, 2. Exit. There is no good solution to these two problems. If it is a common web project, JWT is not recommended Replace the default token with JWT (the default token is generated b ...

Posted on Sun, 22 Mar 2020 09:58:59 -0700 by pmt2k