Distribution type dispatching method and system for asynchronous business

A business distribution and business system technology, applied in the field of asynchronous business distribution methods and systems, can solve problems such as uncheckable data and unsatisfactory business scenarios, and achieve high concurrency effects

Active Publication Date: 2018-07-13
宝付网络科技(上海)有限公司
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004]Existing message distribution systems such as Kafka and RabbitMQ, the message is only distributed to the lower layer, there is no r

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
  • Distribution type dispatching method and system for asynchronous business
  • Distribution type dispatching method and system for asynchronous business
  • Distribution type dispatching method and system for asynchronous business

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] Such as figure 2 As shown, the structure of the distributed asynchronous service distribution system in this embodiment includes producer A1, producer A2...producer An, database B, consumer C1, consumer C2...consumer Cn. Among them, the producer is the data writing unit, which writes tasks into the database; the consumer is the data acquisition and distribution unit, which acquires tasks from the database, sends them to the subsequent business system for execution, and updates the database task status.

Embodiment 2

[0078] Such as image 3 As shown, the flow of the distributed asynchronous service distribution method of this embodiment is implemented based on the system of Embodiment 1, including the following steps (consumer part):

[0079] Step 1: Preprocessing. Include the following steps:

[0080] Step 1-1: Determine whether the program is started for the first time, if so, initialize the task database table information, and then initialize the system parameters, if otherwise, enter step 1-2;

[0081] Step 1-2: Determine whether there are remaining tasks to be processed, if so, process the remaining tasks to be processed first, and then initialize the system parameters, if not, initialize the system parameters directly. Start a batch commit asynchronous thread.

[0082] Step 2: Consumer C1, consumer C2...consumer Cn acquires tasks from database B asynchronously in a distributed manner, and updates the status of the tasks as being in progress. Include the following steps:

[0083]...

Embodiment 3

[0091] Such as Figure 4 As shown, the flow of the distributed asynchronous service distribution method of this embodiment is implemented based on the system of Embodiment 1, including the following steps (consumer part):

[0092] Step 1: Preprocessing. Include the following steps:

[0093] Step 1-1: Determine whether the program is started for the first time, if so, initialize the task database table information, and then initialize the system parameters, if otherwise, enter step 1-2;

[0094] Step 1-2: Determine whether there are remaining tasks to be processed, if so, process the remaining tasks to be processed first, and then initialize the system parameters, if not, initialize the system parameters directly. Start a batch commit asynchronous thread.

[0095] Step 2: Consumer C1, consumer C2...consumer Cn acquires tasks from database B asynchronously in a distributed manner, and updates the status of the tasks as being in progress. Include the following steps:

[0096...

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 distribution type dispatching method for asynchronous business. The method is used for dispatching the business to be processed for a business system. The method includes thesteps that S10, tasks are stored in a database, and set to be in a to-be-processed state; S20, the tasks are asynchronously obtained with distribution from the database, and the state of the tasks isupdated to be in processing; S30, the obtained tasks are dispatched to the business system to be processed; S40, the processed tasks are put into a processing finishing queue; 350, based on the processing finishing queue, the tasks in the database is updated to be in a finished-processing state. In addition, the invention discloses a corresponding system. Data can be traced and checked, a complete uniform guarantee mechanism is realized, and business influences caused by abnormity of all factors are eliminated; the method and the system have the advantages of being high in performance, concurrency and stability and the like, and can meet the scenes of existing business such as payment business.

Description

technical field [0001] The present invention relates to a service distribution method and system, in particular to an asynchronous service distribution method and system. Background technique [0002] Kafka is a high-throughput distributed publish-subscribe messaging system that can handle all action streaming data in consumer-scale websites. Such actions, such as web browsing, searching and other user actions are a key factor in many social functions on the modern web. The purpose of Kafka is to unify online and offline message processing through Hadoop's parallel loading mechanism, and to provide real-time consumption through clusters. [0003] RabbitMQ is a reusable enterprise messaging system. MQ (Message Queue, message queue) is an application-to-application communication method. Applications communicate by reading and writing messages (application-specific data) to and from queues, without the need for dedicated connections linking them. Messaging refers to program...

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
IPC IPC(8): G06F17/30G06F9/48H04L12/863
CPCH04L47/50G06F9/4881G06F16/27Y02D10/00
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