Redis pipeline communication-based message passing method and system

A message passing and pipeline technology, applied in the computer field, can solve the problems of non-separation of reading and writing, low efficiency of reading and writing, and slow reading of the database, and achieve the effect of ensuring continuous and stable transmission, separation of reading and writing, and efficient transmission

Inactive Publication Date: 2016-06-01
FUJIAN XINGHAI COMM TECH
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. The reading and writing of the database are not separated. Mutex locks will lead to low reading and writing efficiency. The more servers the business processing platform load balances, the more frequent the data access and the slower the reading;
[0006] 2. The business data is stored and retrieved in bulk, and the business processing platform will fetch more redundant data, which increases the data processing pressure of the business processing platform

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
  • Redis pipeline communication-based message passing method and system
  • Redis pipeline communication-based message passing method and system
  • Redis pipeline communication-based message passing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the present invention more comprehensible, a preferred embodiment is described in detail below with accompanying drawings.

[0040] Such as figure 1 with figure 2 As shown, a kind of messaging method based on Redis pipeline communication of the present invention, comprises the steps:

[0041]Step 1. Start the receiving server, receive the data message and read the basic data. The basic data refers to some data that is public, commonly used, and infrequently modified. Encapsulate the data message, its interface and the basic data, and the data message Encapsulate as a json format string, and encapsulate its interface as a json serialization interface; and classify the data message after the encapsulation, the type of the data message includes the latest position information type (msg_Pos), alarm information type (msg_Alarm), Picture information type (msg_Pic), peripheral information type (msg_Device), response information and other business data types...

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 provides a Redis pipeline communication-based message passing method. The method comprises the following steps: 1, receiving data messages, reading basic data, packaging the basic data, calling an issue instruction, issuing the data messages into different channels of a Redis server according to the types of the data messages, and storing the packaged basic data in the Redis server; 2, calling a subscription instruction by a business processing platform to obtain the data messages in corresponding channels; 3, filtering the subscribed data messages by the business processing platform; 4, carrying out format conversion on the filtered data messages by the business processing platform through using a packaged interface, and analyzing the filtered data messages according to the packaged basic data messages; and 5, obtaining the analyzed data messages by the business processing platform, and transmitting the data messages to user software to display. The invention furthermore provides a Redis pipeline communication-based message passing system through which the messages can be rapidly and effectively transmitted and the failover can be carried out automatically.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a message delivery method and system based on Redis pipeline communication. Background technique [0002] Redis is an open source, network-enabled, memory-based key-value pair storage database that supports multiple data types and operations, and has powerful data management functions. The emergence of Redis largely compensates for the lack of key / value storage such as memcached, and can play a very good supplementary role in relational databases in some occasions. It provides clients such as Java, C / C++, C#, PHP, JavaScript, Perl, Object-C, Python, Ruby, Erlang, etc., which are very convenient to use. Due to its high performance and simple operation commands, Redis can be used as a buffer between software and traditional databases, ensuring high performance while ensuring data validity. [0003] Redis supports master-slave synchronization. Data can be synchronized f...

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 Applications(China)
IPC IPC(8): G06F17/30G06F11/07G06F9/54
CPCG06F16/27G06F9/544G06F11/0793G06F16/2471G06F2209/544
Inventor 邹山青陈建灵徐品
Owner FUJIAN XINGHAI COMM TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products