Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data Transmission Method Based on Distributed Cache

A data transmission method and distributed cache technology, applied in the field of distributed cache data transmission, can solve the problems of cumbersome system configuration, node failure, and many computer resources, so as to optimize network communication efficiency, simplify update operations, and improve response speed. Effect

Active Publication Date: 2020-09-29
SICHUAN XW BANK CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 2. If more than half of the nodes in the cluster fail to detect, all nodes will fail
[0005] 3. There is no proxy layer between the client and server of the redis database, and the client directly connects to any node in the cluster
[0012] The codis solution needs to rely on redis sentinel (the high-availability solution officially recommended by redis) to switch the master / slave database of redis, and codis is divided into multiple systems, each system is cumbersome to configure and has a lot of parameter adjustment data
Due to too many components, too many computer resources are required to deploy a codis cluster
At the same time, due to the modification of the source code of the redis database at the bottom layer of codis, the redis database cannot be synchronized with the open source environment of the open source software

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data Transmission Method Based on Distributed Cache
  • Data Transmission Method Based on Distributed Cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Such as figure 1 with figure 2 The data transmission method based on the distributed cache of the present invention shown includes:

[0047] A. Use the processor to start the master process in the Master-Slave architecture mode in the distributed cache, and then make the master process obtain the redis cluster database information by reading the configuration file information or manually adding it.

[0048] B. The master process creates a Hash table representing the consistency of all redis databases according to the redis cluster database information, and creates a plurality of worker processes that are almost the same as the master process through the fork function of the Linux system, so that the Hash table can be used in the master Processes and worker processes are shared, and the events handled by the master process and each worker process are distinguished by setting control variables in the master process and each worker process. And each worker process can c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a data transmission method based on a distributed cache. The method comprises the following steps: A, a main process is started in the distributed cache in a master-slave architecture mode to make the main process acquire cluster database information; B, the master process creates a hash table representing the consistency of all databases, creates a plurality of slave processes, and enables each slave process to correspond to one master database; c, when a client sends an instruction to the master database, the client sends information containing a key-value to be connected to the slave process, and the slave process determines the corresponding slave process and the master database through the hash table; and D, client instruction is forwarded to the correspondingmaster database by one selected slave process through a multiplexing technology. Database source codes do not need to be modified, all databases do not communicate with one another, and communicationof the databases can be achieved through simple configuration.

Description

technical field [0001] The invention relates to the field of computer data transmission, and relates to a data transmission method of a distributed cache, specifically a data transmission method based on a Master-Slave distributed cache. Background technique [0002] In the current distributed cache, redis-cluster is an official cluster implementation supported by redis (an in-memory database). Its structural features are: [0003] 1. The cluster data communicates in pairs, and the internal protocol is used to transmit data to improve performance. [0004] 2. If more than half of the nodes in the cluster fail to detect, all nodes will fail. [0005] 3. There is no proxy layer between the client and server of the redis database, and the client directly connects to any node in the cluster. [0006] 4. redis-cluster maps nodes to [0-16383] slots, and cluster is responsible for maintaining the relationship between nodes, slots, and values. [0007] 5. The redis database clust...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/27G06F16/21G06F9/54
CPCG06F9/54G06F16/214G06F16/27
Inventor 李靖谢延泽周勇
Owner SICHUAN XW BANK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products