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

Method and device for asynchronous update of data based on message queue

A technology of message queue and update method, which is applied in the field of asynchronous update of data based on message queue, can solve problems such as unfavorable data update efficiency, data update freeze, and database performance reduction, so as to improve data update efficiency, reduce read and write pressure, Reduce the effect of stuttering

Active Publication Date: 2022-07-19
GUANGZHOU KETENG INFORMATION TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in practice, it has been found that the process of data being written into the database is relatively slow, and related personnel use related terminals (such as modeling clients) to update data. In the process of caching, the database will be read and written frequently, which will reduce the performance of the database, and will further lead to the phenomenon of unsmooth operation during data update, which is not conducive to improving the efficiency of data update

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 and device for asynchronous update of data based on message queue
  • Method and device for asynchronous update of data based on message queue
  • Method and device for asynchronous update of data based on message queue

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0094] see figure 2 , figure 2 It is a schematic flowchart of a method for asynchronously updating data based on a message queue disclosed by an embodiment of the present invention. in, figure 2 The described method can be applied to an application server, and the application server can at least include a modeling service module, a message service module, a cache service module, and a library writing service module, which are not limited in this embodiment of the present invention. like figure 2 As shown, the message queue-based data asynchronous update method may include the following operations:

[0095] 201. The modeling service module receives the data update instruction, and determines the initial data to be updated according to the data update instruction.

[0096] In this embodiment of the present invention, the data update instruction may be specifically an editing device instruction, which is specifically generated after the user uses the modeling client to tr...

Embodiment 2

[0132] see image 3 , image 3 It is a schematic flowchart of a method for undoing and redoing based on a message queue disclosed by an embodiment of the present invention. in, image 3 The described method can be applied to an application server, and the application server can at least include an undo-redo service module, a message service module, a cache service module, and a library-writing service module, and further, it can also include a modeling service module and / or a fluency processing module, which is not limited in this embodiment of the present invention. like image 3 As shown, the message queue-based undo-redo method may include the following operations:

[0133] 301. The undo-redo service module receives the undo-redo instruction, reads the historically generated undo-reset data from the snapshot table according to the undo-redo instruction, and sends the undo-reset data to the message service module.

[0134] In this embodiment of the present invention, the...

Embodiment 3

[0148] see Figure 4 , Figure 4 It is a schematic flowchart of a method for completing a work order based on a message queue disclosed by an embodiment of the present invention. in, Figure 4 The described method can be applied to an application server, and the application server can at least include a work order completion service module, a message service module, a cache service module and a library writing service module, and further, can also include a modeling service module, At least one of the undo-redo service module and the fluency processing module is not limited in this embodiment of the present invention. like Figure 4 As shown, the message queue-based work order completion method may include the following operations:

[0149] 401. The work order completion service module receives the work order completion instruction sent by the external service, invokes the completion script operation database according to the work order completion instruction to complete t...

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 discloses a method and a device for asynchronously updating data based on a message queue, comprising: a modeling service module determines initial data to be updated according to a data update instruction; the message service module writes target data determined by the initial data into a first message queue; The cache service module reads the target data from the first message queue and loads it into the memory, and the data loaded into the memory is used for publishing; the write library service module writes the target data read from the first message queue into the database. It can be seen that the present invention can receive data through a message queue and store it locally in a persistent manner, avoiding the process of writing data to the database first, and also pushing the data to the cache service and publishing it by the cache service, reducing the process of directly reading data from the database. Finally, the write library service asynchronously writes the data to the database, reducing the amount of data written to the database, reducing the pressure on reading and writing the database, reducing the stall phenomenon during data update, and improving the efficiency of data update.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method and device for asynchronously updating data based on a message queue. Background technique [0002] At present, fields with a large number of users (such as the power grid field, etc.) generate a large amount of data every day. These data include but are not limited to submitted data, data that needs to be modified, and automatically collected data, and relevant personnel can also be based on actual needs. Actively access newly generated data or acquire newly generated data in real time through subscription. [0003] In practical applications, for newly generated data, it needs to be successfully written to the database and loaded into the cache before it can be retrieved. However, it has been found in practice that the process of data being written to the database is relatively slow, and relevant personnel use related terminals (such as modeling clients) to update the da...

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/23G06F16/2455G06F16/2457G06F16/27
CPCG06F16/2365G06F16/24552G06F16/24578G06F16/273
Inventor 夏伟蔡文婷雷伟刚刘阳罗剑白维贵吉堂书陈倩周海喻厅梁雷刘伟东周融湘
Owner GUANGZHOU KETENG INFORMATION TECH
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