9. Three times class (December 20) 17.3 / 17.4 cellular multi instance 17.5 cellular and scheduled tasks

9. Three classes (December 20) 17.3 / 17.4 cellery multi instance Multiple worker s, multiple queues [root@localhost celery]# cat tasks.py #!/usr/bin/env python #-*- coding:utf-8 -*- from celery import Celery app = Celery() app.config_from_object("celeryconfig") @app.task def taskA(x,y): return x + y @app.task de ...

Posted by neostrife on Tue, 05 May 2020 21:39:28 +0200

redis storage object

redis is a key value storage system. Similar to Memcached, it supports more value types, including string, list, set, Zset and hash. In the actual work, the data needs to be stored in the form of objects, and the implementation is as follows: For redis configuration, please refer to http://blog.csdn.net/leo187/article/details/78704811 After ...

Posted by endersix on Mon, 04 May 2020 17:53:44 +0200

RedisLive installation configuration

Installation environment: CentOS release 6.5 (Final) 64 bit 1. Install Python Python 2.6 comes with CentOS, but pip does not support this version. You need to upgrade Python to 2.7 first, and python 2.6 is required for yum, so Python needs to coexist with 2.6 and 2.7 # Install compilation tools and dependency Librari ...

Posted by free2code on Sat, 02 May 2020 08:38:18 +0200

Brief introduction to the construction of redis cluster

Environmental Science Operating system: CentOS 7.3 Redis version: Redis 3.2.8 Two hosts, three nodes on each host Basic steps Download and unzip the installation package # Download and unzip the installation package wget http://download.redis.io/releases/redis-3.2.8.tar.gz tar -zxvf redis-3.2.8.tar.gz Build install # Normal compi ...

Posted by j9sjam3 on Fri, 01 May 2020 15:54:19 +0200

The use of redis distributed lock in springboot project

Now, the microservice projects developed use more distributed locks, so some records are made for the self-determined implementation of distributed locks.*In the actual project, you can use the RLock lock of the Redisson framework directly. Create a springboot redis project     springboot-redis-demo Add dependency package <dependency> ...

Posted by dionsweet on Tue, 28 Apr 2020 16:15:39 +0200

High concurrency, rush to buy

The scene of students choosing courses is similar to that of buying train tickets. Baidu summed up four ways 1. Thread lock. With synchronized, the performance drops sharply. java itself is multithreaded. It's not a wise choice to use it as a single thread. At the same time, if you add synchronized to distributed deployment, you cannot control ...

Posted by phonydream on Thu, 23 Apr 2020 18:07:48 +0200

Example of Springboot integrating Redis as a Repository

1 Introduction Redis is a high-performance NoSQL database and is often used as a cache in major Internet architectures.This article describes how to integrate Spring Data Redis in Springboot and work with Repository. The code structure is as follows: 2 Integration process 2.1 Install Redis Database To save time, install it directly from Docker ...

Posted by wildcolour on Wed, 22 Apr 2020 20:40:52 +0200

Redash - a powerful open source data visualization platform

We will often mention BI system (Business Intelligence), which is an important data entry and exit to help data and enterprises to obtain data reports and make strategic decisions. We are familiar with FineBI and Microsoft's powerBI, but the cost of using them is not low, the client is needed for authorization, and the configuration of using t ...

Posted by SephirGaine on Wed, 22 Apr 2020 04:22:26 +0200

Analysis of quicklist source code of Redis

Analysis of quicklist source code of Redis 1, Introduction to quicklist Redis list is a simple list of strings, sorted by insertion order. You can add an element to the head (left) or tail (right) of the list. A list can contain up to 232 - 1 elements (4294967295, more than 4 billion elements per list). The internal data structure that its unde ...

Posted by furma on Sun, 19 Apr 2020 15:12:17 +0200

Nginx practice course nginx Solving session consistency

session viscosity Each request is allocated according to the hash result of the access ip, so that each visitor accesses a back-end server, which can solve the session problem. upstream backserver { ip_hash; server 192.168.0.14:88; server 192.168.0.15:80; } But there are disadvantages. There is a single risk. If I have logged in on port 192.1 ...

Posted by Rayne on Sun, 19 Apr 2020 15:02:31 +0200