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.
CN113254482APending Publication Date: 2021-08-13苏州玩蜂软件科技有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
苏州玩蜂软件科技有限公司
Publication Date
2021-08-13

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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