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

Business data asynchronous storage method and system and medium

A business data, asynchronous technology, applied in electrical digital data processing, special data processing applications, digital data information retrieval, etc., can solve the problems of slow data processing, unable to obtain business data in time, not friendly enough, etc.

Pending Publication Date: 2021-08-13
苏州玩蜂软件科技有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The present invention mainly solves the problems of using the transaction rollback mechanism to process business data, resulting in slow data processing speed, affecting the response speed of the interface, not being friendly enough, and failing to obtain abnormal business data in time

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
  • Business data asynchronous storage method and system and medium
  • Business data asynchronous storage method and system and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] The present invention provides a method for asynchronous storage of business data, please refer to figure 1 , including the following steps:

[0057] S100, enabling a business data processing thread;

[0058] Step S100 specifically includes running the system business, caching the business data generated by the system business into the Redis cache queue, and enabling several business data processing threads:

[0059] Because all system services run on the CPU, before the CPU generates service data according to the system service and caches it in the Redis cache queue, the Redis cache queue uses CAS to divide the service data into several key segments, for example, the service data is [0:8 ], then divide it into three key segments, namely [0:2][3:5][6:8]. The key segments run in the CPU that generates business data according to the system business.

[0060]Because the business of the server operating system needs to be processed concurrently, multiple business data pro...

Embodiment 2

[0076] An embodiment of the present invention provides a system for asynchronously storing business data, please refer to figure 2 , including: system business module, Redis cache module, thread module, alarm module and database module;

[0077] The Redis cache module is connected to the system business module and the thread module respectively, and the thread module is connected to the alarm module and the database module respectively;

[0078] The system business module is used to run the system business and generate business data according to the system business. The system business module in this embodiment runs on the server.

[0079] The Redis cache module is used to cache the business data generated by the system business modules.

[0080] The thread module is used to enable business data processing threads.

[0081] The alarm module is used for performing alarm indication.

[0082] The database module is used to save the business data.

[0083] The business data p...

Embodiment 3

[0088] The present invention also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program for executing the above method when executed by a processor.

[0089] Finally, it should be noted that those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct relevant hardware to complete, and the program of the monitoring software method can be stored in a computer-readable In the storage medium, when the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM). The foregoing computer program embodiments can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.

[0090] In addition, the...

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 business data asynchronous storage method, which comprises the following steps of: starting business data processing threads: operating a system business, caching business data generated by the system business to a Redis cache queue, and starting a plurality of business data processing threads; carrying out thread lock acquisition: enabling the service data processing thread to acquire the carrying right of the thread lock according to the weight; carrying out service data acquisition: enabling the service data processing thread acquiring the carrying right of the thread lock to send the service data to a database; and carrying out service data storage: storing the service data in a database, and executing data correction operation or service data removal operation according to a storage result. In this way, the system service interface can be removed to process the service data, the service data can be processed in batches, the alarm indication is executed under the condition that the mapping relation is abnormal due to data offset of the server, and the alarm indication can also be executed when the service data storage fails.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a method, system and medium for asynchronously storing business data. Background technique [0002] During the operation of a high-concurrency system, some core business functions need to be able to carry dozens of times or even higher concurrent access than ordinary business functions. During this process, some core business data cannot be missing or inaccurate. [0003] CAS is a method to achieve synchronization between multiple threads. CAS (Compare and Swap) is a comparison and exchange. It is an atomic instruction provided by the CPU, also known as the CPU hardware synchronization primitive, which is used to avoid program lock deadlock. The situation, that is, the situation where two program locks compete for the same resource, and both parties are stagnant. [0004] In order to ensure that there are no errors or omissions in business data, the most commonly used metho...

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): G06F16/2455G06F16/2457G06F16/2458G06F9/54
CPCG06F9/546G06F2209/548G06F16/24552G06F16/24578G06F16/2471
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