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

A message processing method and device realized by Redis and MySQL

A message processing and message technology, applied in the field of data processing, can solve problems such as performance gap, complex system complexity, data security and reliability are not practical, etc., to achieve improved security, high data storage performance, and high security Effect

Active Publication Date: 2019-03-08
北京明朝万达科技股份有限公司
View PDF9 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] It can be seen that the implementation scheme of the prior art is suitable for most systems that do not process messages and are only used for intermediate storage. Kafka has no problem with the processing performance of intermediate messages, but it is not good for systems with high data security and reliability. Very practical, ActiveMQ and RabbitMq have high data security and reliability, but there is a certain gap in performance compared with Kafka, and the implementation of existing technologies needs to add independent third-party software applications to the system, making the system more complex complex

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
  • A message processing method and device realized by Redis and MySQL
  • A message processing method and device realized by Redis and MySQL
  • A message processing method and device realized by Redis and MySQL

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and through specific implementation methods.

[0035]In order to better illustrate the present invention and facilitate understanding of the technical solutions of the present invention, typical but non-limiting examples of the present invention are as follows: What needs to be particularly explained here is that the implementations listed in the description of the present invention are only for the convenience of illustrating the problem. The given exemplary implementation method should not be interpreted as the only correct implementation of the present invention, nor should it be interpreted as a limiting description of the protection scope of the present invention.

[0036] In the field of data processing, the most common operation is the table query operation, which generally adopts a "request-response" mechanism. Therefore, the response spe...

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 method for asynchronously processing messages based on two databases, namely Redis and MySQL and an electronic device. The method comprises the following steps of storing thegenerated message in a message queue of a Redis database; using the Redis database to preprocess the message queue; using the application system to extract a message from a message queue of the Redisdatabase, wherein the extracted message is stored in a MySQL database; using the application system to call a message processing interface to process the message; and if the message processing is completed, deleting the extracted message stored in the MySQL. The method not only can provide higher message response speed, but also has higher data stability and safety.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a message processing method and device based on only two databases, Redis and MySQL. Background technique [0002] In open source data systems, Redis, Memcached, etc. are commonly used. Among them, Redis is a key-value storage system. Compared with the distributed cache system Memcached, it supports relatively more value types, including string (string), list (linked list), set (collection), zset (sorted set--ordered collection) and hash (hash type). These data types support push / pop, add / remove, intersection, union, difference and richer operations, and these operations are atomic. On this basis, Redis supports sorting in various ways. Like Memcached, data is cached in memory to ensure efficiency. But the difference is that Redis will periodically write updated data to disk or write modification operations to additional record files, and on this basis, master-slave (master-sla...

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): G06F9/54G06F16/25G06F16/28
CPCG06F9/546
Inventor 付少波喻波王志海董爱华安鹏董晓斌
Owner 北京明朝万达科技股份有限公司
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