Method, device, readable medium and electronic device for asynchronously processing messages

An asynchronous processing and message technology, applied in the direction of electrical digital data processing, special data processing applications, digital data information retrieval, etc., can solve the problems that hinder the reading performance of NoSQL database, solve the problem of statelessness, improve query efficiency, Avoid unsuitable effects

Active Publication Date: 2020-09-15
镁佳(北京)科技有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage is that the introduction of secondary index, and the secondary index is a drag on the read performance of NoSQL database

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
  • Method, device, readable medium and electronic device for asynchronously processing messages
  • Method, device, readable medium and electronic device for asynchronously processing messages
  • Method, device, readable medium and electronic device for asynchronously processing messages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

[0041] see figure 1 , is a flowchart of a method for asynchronously processing messages provided by an embodiment of the present disclosure. Such as figure 1 As shown, the method for asynchronously processing messages includes the following steps:

[0042] Step S11 , acquiring a primary key set whose insertion time meets a preset condition in the target query set, where the primary key and insertion time of the message are stored in the target query set.

[0043] When a message is received, the primary key and insertion time of the message are stored in the target query set. In order to avoid or reduce repeated queries, meaningless queries caused by incom...

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 an asynchronous message processing method and device, a readable medium and an electronic device. According to the technical scheme provided by the invention, an NoSQL database is adopted, compared with a MySQL database, the NoSQL data writing and reading speed is relatively higher, and the problem of inapplicability caused by no partition key is avoided. Meanwhile, the data reading performance is assisted and optimized by establishing an independent target query set instead of adopting a secondary index established on the NoSQL service table, and the target query setonly comprises a primary key and the insertion time of the NoSQL service table, so that the redundant data is limited. During query, the primary key sets of which the insertion time meets the preset condition are sequentially queried in the target query set, so that the stateless problem during NoSQL database query is solved, and the query efficiency is improved.

Description

technical field [0001] The present disclosure relates to the technical field of asynchronous processing, and in particular, to a method, device, readable medium, and electronic device for asynchronously processing messages. Background technique [0002] In a high-concurrency environment, you can process messages asynchronously to ease the pressure on the system. In related technologies, a MySQL database sub-database and table scheme based on a partition key and a NoSQL database data redundancy scheme based on a secondary index are generally used to realize asynchronous processing. Among them, the MySQL database is a relational database, and the NoSQL database is a non-relational database. [0003] Among them, the main disadvantages of the MySQL database sub-database sub-table solution are: the performance of the MySQL database is too poor, and the data writing and reading speed is slow. Even if the log flushing optimization is set, the improvement is limited, and more serve...

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/22G06F16/23G06F16/245
CPCG06F16/2282G06F16/23G06F16/245
Inventor 李耕勇
Owner 镁佳(北京)科技有限公司
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