CN112785209A - Processing method, device and system for online operation - Google Patents

Processing method, device and system for online operation Download PDF

Info

Publication number
CN112785209A
CN112785209A CN202110307221.3A CN202110307221A CN112785209A CN 112785209 A CN112785209 A CN 112785209A CN 202110307221 A CN202110307221 A CN 202110307221A CN 112785209 A CN112785209 A CN 112785209A
Authority
CN
China
Prior art keywords
online
request
processing
message
serial number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110307221.3A
Other languages
Chinese (zh)
Inventor
刘刚
徐忠民
胡文涛
罗秉安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110307221.3A priority Critical patent/CN112785209A/en
Publication of CN112785209A publication Critical patent/CN112785209A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method, a device and a system for processing online operation, which relate to the technical field of big data, wherein the method comprises the following steps 1 to 4 which are executed in sequence and in parallel: step 1, receiving an online operation request from an external system, and adding a serial number to the online operation request; step 2, preprocessing the online operation request added with the serial number; step 3, executing corresponding operation on the preprocessed online operation request according to the added serial number; and 4, returning the operation result to the external system. By the method and the device, the processing speed of the operation can be improved while the ordered processing of the online operation request is ensured.

Description

Processing method, device and system for online operation
Technical Field
The invention relates to the technical field of big data, in particular to a method, a device and a system for processing online operation.
Background
With the development of society, various application software is largely used in commercial establishments, and business exchange between each commercial establishment and other commercial establishments is more and more frequent. The situation prompts a large amount of application software among commercial institutions to be interconnected and communicated, and the application software is closely linked together to form a large interconnected and communicated network. The mutual communication between the application systems of the commercial institutions usually adopts a serial report sending mechanism, which ensures the logical order of business processing between the commercial institutions, such as transaction quotation message information, transaction request state change flow message information and the like, and the message information has logical order. The partner business typically sends the message information to the receiving business in a high-speed serial fashion in a logical order. In order to ensure the accuracy of the service, after receiving the message information serially sent by the online transaction processing system of the cooperative commercial institution, the online transaction processing system of the acceptance commercial institution must serially process the messages one by one according to the sequence. With the dramatic increase of the traffic among commercial institutions, the number of message information is increased explosively, the processing logic is increasingly complex, the efficiency of the online transaction processing system is seriously reduced by a serial processing mechanism, a large amount of message information is queued for processing, and the online transaction processing system of a business institution is possibly down in serious cases.
Disclosure of Invention
Accordingly, the present invention is directed to a method, an apparatus, and a system for processing an online job, which solve at least one of the above problems.
According to a first aspect of the present invention, there is provided a method for processing an online job, the method comprising the following steps 1 to 4 performed sequentially and in parallel:
step 1, receiving an online operation request from an external system, and adding a serial number to the online operation request;
step 2, preprocessing the online operation request added with the serial number;
step 3, executing corresponding operation on the preprocessed online operation request according to the added serial number;
and 4, returning the operation result to the external system.
According to a second aspect of the present invention, there is provided an apparatus for processing an online job, the apparatus comprising the following units executed in sequence and in parallel:
the request receiving unit is used for receiving an online job request from an external system and adding a serial number to the online job request;
the preprocessing unit is used for preprocessing the online operation request added with the serial number;
the execution unit is used for executing corresponding operation on the preprocessed online operation request according to the added serial number;
and the result returning unit is used for returning the operation result of the operation to the external system.
According to a third aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method when executing the program.
According to a fourth aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the technical scheme, the receiving, preprocessing, executing and result returning pipeline processing of the online operation request can be realized through the four steps which can be executed in parallel in sequence, and compared with a serial processing mechanism of the online operation request in the prior art, the processing speed of the operation can be improved while the ordered processing of the online operation request is ensured by adding the serial number to the online operation request.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method for online job processing according to an embodiment of the present invention;
FIG. 2 is a block diagram of an online job processing system according to an embodiment of the present invention;
fig. 3 is a block diagram of the structure of the online job processing apparatus 2 according to the embodiment of the present invention;
FIG. 4 is a diagram of an exemplary architecture of an online job processing system according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of message information pipeline processing according to an embodiment of the present invention;
FIG. 6 is a block diagram of an exemplary architecture of an online transaction parallel processing apparatus according to an embodiment of the invention;
FIG. 7 is a flow diagram of message information pipeline processing according to an embodiment of the invention;
FIG. 8 is a diagram illustrating a message format according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a format of a message after format conversion according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating a format of a discarded packet according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a message format for successful processing according to an embodiment of the present invention;
fig. 12 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in the cross-application system online transaction processing of the commercial establishment, in order to ensure the consistency and the orderliness of the business logic processing among systems, the application system (such as an agent bank) of the acceptance commercial establishment and the application system (such as a gold exchange) of the cooperation commercial establishment both adopt a mechanism of serially sending message information. The cooperative business mechanism application system serially transmits the message information with logical order to the application system of the acceptance business mechanism in sequence, and the online transaction processing system of the acceptance business mechanism also has to serially receive and process the message information one by one according to the transmission sequence. Due to a serial processing mechanism, the processing efficiency of the online transaction processing system of the acceptance commercial establishment is not high, when the application system of the cooperative commercial establishment sends a large amount of message information to the acceptance commercial establishment at a high speed, a large amount of message information can be queued in the online transaction processing system of the acceptance commercial establishment for processing, the message information can occupy resources of a memory and a communication link until the communication is overtime, and the online transaction processing system of the acceptance commercial establishment can be down in serious cases, so that the operation risk of the system is increased.
Based on this, the embodiment of the present invention provides an online job processing scheme, which can improve the processing speed of the cross-system online transaction data processing system while ensuring the ordering of the online transaction logic processing. Embodiments of the present invention are described in detail below with reference to the accompanying drawings.
FIG. 1 is a flowchart of an online job processing method according to an embodiment of the present invention, as shown in FIG. 1, the method includes the following steps 101 to 104, which are executed sequentially and in parallel:
step 101, receiving an online job request from an external system, and performing a sequence number adding process on the online job request.
By adding the sequence numbers in sequence, the online operation requests can be executed according to the sequence numbers in sequence, and the orderliness of the online transaction logic processing can be ensured.
And 102, preprocessing the online operation request added with the serial number.
The pretreatment here includes: carrying out format conversion operation on the online operation request added with the serial number; and carrying out validity verification on the on-line operation request after format conversion.
And 103, executing corresponding operation on the preprocessed online operation request according to the added serial number.
Specifically, whether the preprocessed online operation request is the current latest request or not can be judged according to the added serial number; and when the judgment result is yes, executing corresponding job operation on the preprocessed online job request, and when the judgment result is no, discarding the online job request and returning request processing failure information to the external system.
And step 104, returning the operation result of the operation to the external system.
Compared with a serial processing mechanism for the online operation request in the prior art, the method and the device for processing the online operation request can improve the processing speed of the operation while ensuring the ordered processing of the online operation request by adding the serial number to the online operation request.
In actual operation, a data buffer pool may also be preset, and the on-line job request after the serial number addition processing, the on-line job request after the preprocessing, and the job operation result are stored in the data buffer pool.
In the embodiment of the invention, the processing process of the online operation request is divided into five links of request receiving, request format conversion, request validity verification, request execution processing and request operation result returning, each link is processed according to a pipeline, and each link supports parallel processing of a plurality of online operation requests, so that the processing time of an average online operation request is only 1/5 of the original processing time, and the processing speed of the online transaction operation is greatly improved. By adding the sequence number to each request when the request is received, the checking is carried out according to the sequence number in the operation of executing the job, and the logical ordering of job processing is ensured.
Based on similar inventive concepts, the embodiment of the present invention further provides an online job processing system, as shown in fig. 2, the system includes: an external system 1 and an online work processing device 2, wherein the external system 1 is used for sending an online work request to the online work processing device 2 and receiving a work operation result returned by the online work processing device 2. The processing means of the on-line job can preferably be used to implement the processes in the above-described method embodiments.
Fig. 3 is a block diagram of the online job processing apparatus 2, and as shown in fig. 3, the online job processing apparatus 2 includes the following units executed sequentially and in parallel: a request receiving unit 21, a preprocessing unit 22, an execution unit 23, and a result returning unit 24, wherein:
the request receiving unit 21 is configured to receive an online job request from an external system, and perform a sequence number adding process on the online job request.
And the preprocessing unit 22 is used for preprocessing the online operation request added with the serial number.
Specifically, the preprocessing unit includes: a format conversion module and a validity verification module, wherein: the format conversion module is used for carrying out format conversion operation on the online operation request added with the serial number; and the legality verification module is used for carrying out legality verification on the online operation request after the format conversion.
And the execution unit 23 is configured to execute a corresponding job operation on the preprocessed online job request according to the added sequence number.
Specifically, the execution unit includes: judge module and execution module, wherein: the judging module is used for judging whether the preprocessed online operation request is the current latest request according to the added serial number; and the execution module is used for responding to the judgment result that the online job request after the preprocessing is yes and executing corresponding job operation.
A result returning unit 24 for returning the job operation result to the external system.
Through the request receiving unit 21, the preprocessing unit 22, the execution unit 23 and the result returning unit 24 which can be executed in parallel in sequence, pipeline processing of receiving, preprocessing, executing and result returning of online job requests can be achieved.
In one embodiment, the above apparatus further comprises: and the data buffer pool is used for storing the online job request after the serial number is added by the request receiving unit, the online job request after the preprocessing by the preprocessing unit and the job operation result of the result returning unit.
For specific execution processes of the units and the modules, reference may be made to the description in the foregoing method embodiments, and details are not described here again.
In practical operation, the units and the modules may be combined or may be singly arranged, and the present invention is not limited thereto.
For a better understanding of the present invention, an example is given below in conjunction with FIG. 4, an example block diagram of an online job processing system, as shown in FIG. 4, the example system including: a collaborative business and an acceptance business. Preferably, the external system 1 is located in a business establishment, the online job processing apparatus 2 is located in a receiving business establishment, and the online transaction parallel processing apparatus has a function of the online job processing apparatus 2. This example is described in detail below in conjunction with fig. 4.
Referring to fig. 4, the exemplary system specifically includes: a business processing module of the online application system of the cooperative business organization (the module preferably has the functions of the external system 1), an external gateway of the business organization, an online transaction parallel processing device and an online transaction core processing system. When the business processing module of the online application system of the cooperative business institution collects the transaction request information (corresponding to the online operation request, the transaction can also be called as operation), the business processing module initiates the transaction request and serially transmits the transaction information to the online transaction parallel processing device of the acceptance business institution through the external gateway of the business institution.
An online transaction parallel processing device for an acceptance business comprises: the device comprises a message receiving unit, a message conversion unit, a message checking unit, a message logic processing unit and a message result returning unit, wherein message information is processed among the units according to a pipeline mode, and 5 units support parallel mechanism processing. The serial transaction information is converted into parallel transaction information through the online transaction parallel processing device, and the parallel transaction information is processed by the online transaction core processing system and then returned to the cooperative commercial establishment. The message information pipeline process will be described in detail in figure 5.
Referring to fig. 5, assuming that the online transaction parallel processing device of the business establishment takes 5t to process a message, the i-pen message takes 5i t to complete according to the serial processing mechanism. The embodiment of the invention divides the message processing flow into 5 units of message receiving, message conversion, message verification, message logic processing and message result returning, wherein each unit is an independent transaction processing unit and supports multithreading concurrent processing, and thus, the average time consumption of each unit is 1 t. After the message receiving unit finishes processing the 1 st message, the message receiving unit can receive the 2 nd message for processing immediately, and the 1 st message enters the message conversion unit for processing at this time. In this way, the processing is completed at 5t for the 1 st message, and at 6t for the 2 nd message, and so on, i +4t is consumed for the i messages. With the increase of the message quantity i, the time consumed by the pipeline processing mechanism is only 1/5 of the time consumed by the original serial processing mechanism. Therefore, the message processing speed is greatly improved, and the resources of the system are more effectively utilized.
Fig. 6 is a block diagram of an exemplary structure of an online transaction parallel processing apparatus, as shown in fig. 6, 5 units implement an online transaction parallel processing function based on a data buffer pool, and the apparatus mainly includes: the message data buffer pool is divided into a message receiving buffer pool, a message conversion buffer pool, a message logic processing buffer pool and a message result buffer pool.
The message receiving unit is responsible for receiving message information sent by the cooperative business mechanism, distributing a message sequence number to each piece of message information, and then storing the message information (including the message sequence number, transaction information and the like) in a message receiving buffer pool. The message conversion unit reads message information from the message receiving buffer pool concurrently, converts the message information into a message format which can be identified by the acceptance business mechanism, and then stores the message format in the message conversion buffer pool. The message checking unit reads message information from the message conversion buffer pool concurrently, carries out validity check on transaction information, and stores the checked message information in the message logic processing buffer pool. The message logic processing unit reads message information from the message logic processing buffer pool in parallel, compares the message sequence number with the sequence number of the last message information, if the new message sequence number is smaller than the sequence number of the last message, the received message information is invalid message information, discards the message information, otherwise, the message logic processing unit performs service logic processing according to transaction information, and the processing result is stored in the message result buffer pool. And the message result returning unit reads the message result information from the message result buffer pool and returns the message result information to the cooperative business mechanism through the external gateway of the acceptance business mechanism.
In the following, taking receiving a client order state change pipeline message as an example, a message information pipeline processing flow is described with reference to fig. 7, as shown in fig. 7, the flow includes the following steps:
step 701: the online transaction parallel processing device receives a client order state change request message sent by a cooperative business mechanism (such as a gold exchange).
Step 702: the message receiving unit of the online transaction parallel processing device distributes message serial numbers for the request messages, the message serial numbers are increased progressively according to the sequence, and the request messages are stored in a message receiving buffer pool. As shown in fig. 8, the message information in the message receiving buffer pool includes: message serial number, gold client serial number, order serial number, buying and selling direction, order price, order quantity, order state, residual quantity and other information. Wherein, the message sequence number is newly added information.
Step 703: the message conversion unit of the online transaction parallel processing device reads the request message from the message receiving buffer pool, performs format conversion according to the message type, converts the request message into a message format which can be identified by an online system of the acceptance commercial institution, and stores the converted request message in the message conversion buffer pool. As shown in fig. 9, the converted message information includes: message serial number, transaction code, operation type, gold client number, order serial number, buying and selling direction, order price, order quantity, order state, residual quantity and the like. The transaction code and the operation type are newly added information, and format conversion is carried out on the buying and selling direction, the entrusting price and the entrusting order state.
Step 704: and a message checking unit of the online transaction parallel processing device reads the request message from the message conversion buffer pool and analyzes the message information item according to a new message format.
Step 705: and the message checking unit of the online transaction parallel processing device performs message validity check. Such as whether the gold client number is not 0, whether the remaining number is less than or equal to the commitment number, etc.
Step 706: if the message validity check is not passed, the request message is discarded, and message processing failure information is returned to the cooperative business mechanism. As shown in FIG. 10, the return code-1 indicates that the message failed to be processed.
Step 707: if the message validity check is passed, the request message is stored in a message logic processing buffer pool.
Step 708: and the message logic processing unit of the online transaction parallel processing device reads the request message from the message logic processing buffer pool and analyzes the message information item according to the new message format. And reading the client order in the local database according to the gold client number and the order number to obtain the message serial number of the last request message.
Step 709: the message logic processing unit of the online transaction parallel processing device judges whether the message serial number in the current request message is larger than the message serial number in the database. If the number is smaller than the message number in the database, it indicates that the current request message is not the latest message, and then discards the request message and jumps to step 706.
Step 710: if the message serial number in the current request message is larger than the message serial number in the database, the current request message is the latest request message, the processing is carried out according to certain service logic, and the message serial number is updated to the database.
Step 711: and the message logic processing unit of the online transaction parallel processing device stores the service logic processing result into a message result buffer pool.
Step 712: and a message result returning unit of the online transaction parallel processing device reads the processing result from the message result buffer pool and returns the result to the cooperative business organization. As shown in fig. 11, a return code of 0 indicates that the request message is successfully processed.
As can be seen from the above description, the embodiment of the present invention provides an online transaction parallel processing scheme based on a data buffer pool, which has the following advantages compared with the conventional serial processing mode:
high processing speed
In general, an online transaction processing system of a business across application systems processes transactions in a serial manner to ensure logical ordering of the transactions. If the traditional serial processing mode is adopted, the online application system of the acceptance commercial institution can continue to process the next transaction information after completely processing one transaction information, so that the processing efficiency is low. The embodiment of the invention adopts an online transaction parallel processing scheme realized based on a data buffer pool, the online application system of the acceptance commercial institution divides the transaction into 5 links for pipeline processing, except for serial processing in a message receiving link, the other 4 links can support parallel processing, thus the processing time of average transaction information is only 1/5 of the original one, and the processing speed of the online transaction processing system is greatly improved.
(II) high in safety
Due to the influence of traffic fluctuation, a cooperative business organization usually sends a large amount of transaction information to an accepting business organization in a high-speed serial manner, and an online transaction processing system of the accepting business organization needs to perform complex logic processing, so that the processing speed of one transaction information is usually higher, a large amount of transaction information is queued in the online transaction processing system of the accepting business organization for processing, the transaction information always occupies resources of a memory and a communication link until the communication is overtime, and the online transaction processing system of the accepting business organization is down seriously, so that the operation risk of the system is increased. The scheme of realizing the parallel processing of the online transaction based on the data buffer pool is adopted, the original serial processing mode is changed into the parallel processing mode, the processing speed is improved, the pressure on the online application system of the acceptance commercial mechanism when the application system of the cooperative commercial mechanism sends a large amount of transaction information is effectively isolated, the normal operation of the online application system of the acceptance commercial mechanism is ensured, and the operation safety of the commercial mechanism system is maintained.
The present embodiment also provides an electronic device, which may be a desktop computer, a tablet computer, a mobile terminal, and the like, but is not limited thereto. In this embodiment, the electronic device may be implemented by referring to the above method embodiment and the embodiment of the online job processing apparatus/system, and the contents thereof are incorporated herein, and repeated descriptions thereof are omitted.
Fig. 12 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention. As shown in fig. 12, the electronic device 600 may include a central processor 100 and a memory 140; the memory 140 is coupled to the central processor 100. Notably, this diagram is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the online job processing function may be integrated into the cpu 100. The central processing unit 100 may be configured to perform the following sequential and parallel control:
step 1, receiving an online operation request from an external system, and adding a serial number to the online operation request;
step 2, preprocessing the online operation request added with the serial number;
step 3, executing corresponding operation on the preprocessed online operation request according to the added serial number;
and 4, returning the operation result to the external system.
As can be seen from the above description, the electronic device provided in the embodiment of the present invention can implement pipeline processing of receiving, preprocessing, executing, and returning a result of an online job request through the four steps that can be executed in parallel in sequence, and compared with a serial processing mechanism for an online job request in the prior art, by adding a serial number to an online job request in the embodiment of the present invention, it is possible to improve a processing speed of a job while ensuring ordered processing of an online job request.
In another embodiment, the on-line job processing apparatus/system may be configured separately from the cpu 100, for example, the on-line job processing apparatus/system may be configured as a chip connected to the cpu 100, and the on-line job processing function is realized by the control of the cpu.
As shown in fig. 12, the electronic device 600 may further include: communication module 110, input unit 120, audio processing unit 130, display 160, power supply 170. It is noted that the electronic device 600 does not necessarily include all of the components shown in fig. 12; furthermore, the electronic device 600 may also comprise components not shown in fig. 12, which may be referred to in the prior art.
As shown in fig. 12, the central processor 100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, the central processor 100 receiving input and controlling the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 100 may execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides input to the cpu 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display an object to be displayed, such as an image or a character. The display may be, for example, an LCD display, but is not limited thereto.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 140 may also be some other type of device. Memory 140 includes buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage section 142, and the application/function storage section 142 is used to store application programs and function programs or a flow for executing the operation of the electronic device 600 by the central processing unit 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging application, address book application, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. The communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132 to implement general telecommunications functions. Audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, an audio processor 130 is also coupled to the central processor 100, so that recording on the local can be enabled through a microphone 132, and so that sound stored on the local can be played through a speaker 131.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the online job processing method.
In summary, embodiments of the present invention provide a cross-system online job processing scheme, which is used to improve the processing speed of a receiving business entity for message information under the condition that a cooperative business entity sends message information serially at a high speed, so as to avoid a large amount of message information queues in an online transaction processing system of the receiving business entity, and ensure the logical ordering of message information processing.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments which fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A method for processing online jobs, the method comprising the following steps 1 to 4 executed in sequence and in parallel:
step 1, receiving an online operation request from an external system, and adding a serial number to the online operation request;
step 2, preprocessing the online operation request added with the serial number;
step 3, executing corresponding operation on the preprocessed online operation request according to the added serial number;
and 4, returning the operation result to the external system.
2. The method of claim 1, wherein preprocessing the serialized online job request comprises:
carrying out format conversion operation on the online operation request added with the serial number;
and carrying out validity verification on the on-line operation request after format conversion.
3. The method of claim 1, wherein performing the corresponding job operation on the preprocessed online job request according to the added sequence number comprises:
judging whether the preprocessed online operation request is the current latest request or not according to the added serial number;
and responding to the judgment result that the online job request is yes, and executing corresponding job operation on the preprocessed online job request.
4. The method of claim 1, further comprising:
presetting a data buffer pool;
and storing the online operation request after the serial number is added in the step 1, the online operation request after the preprocessing in the step 2 and the operation result in the step 4 in the data buffer pool.
5. An apparatus for processing online jobs, the apparatus comprising the following units executed in sequence and in parallel:
the request receiving unit is used for receiving an online job request from an external system and adding a serial number to the online job request;
the preprocessing unit is used for preprocessing the online operation request added with the serial number;
the execution unit is used for executing corresponding operation on the preprocessed online operation request according to the added serial number;
and the result returning unit is used for returning the operation result of the operation to the external system.
6. The apparatus of claim 5, wherein the pre-processing unit comprises:
the format conversion module is used for carrying out format conversion operation on the online operation request added with the serial number;
and the legality verification module is used for carrying out legality verification on the online operation request after the format conversion.
7. The apparatus of claim 5, wherein the execution unit comprises:
the judging module is used for judging whether the preprocessed online operation request is the current latest request according to the added serial number;
and the execution module is used for responding to the judgment result that the online job request after the preprocessing is yes and executing corresponding job operation.
8. The apparatus of claim 5, further comprising:
and the data buffer pool is used for storing the online job request after the serial number is added by the request receiving unit, the online job request after the preprocessing by the preprocessing unit and the job operation result of the result returning unit.
9. An on-line processing system, comprising: the apparatus for processing an online job according to any one of claims 5 to 8, and an external system for sending an online job request and receiving a job operation result.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the processor executes the program.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202110307221.3A 2021-03-23 2021-03-23 Processing method, device and system for online operation Pending CN112785209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110307221.3A CN112785209A (en) 2021-03-23 2021-03-23 Processing method, device and system for online operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110307221.3A CN112785209A (en) 2021-03-23 2021-03-23 Processing method, device and system for online operation

Publications (1)

Publication Number Publication Date
CN112785209A true CN112785209A (en) 2021-05-11

Family

ID=75762891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110307221.3A Pending CN112785209A (en) 2021-03-23 2021-03-23 Processing method, device and system for online operation

Country Status (1)

Country Link
CN (1) CN112785209A (en)

Similar Documents

Publication Publication Date Title
CN111031058A (en) Websocket-based distributed server cluster interaction method and device
CN111563820B (en) Intelligent contract parallel execution method and device
CN110764881A (en) Distributed system background retry method and device
CN111445331A (en) Transaction matching method and device
CN113592473A (en) Inter-bank fund clearing processing method and device
CN111222869A (en) Transaction data processing method, device, computer equipment and medium
CN112785209A (en) Processing method, device and system for online operation
CN111709753A (en) Online payment method and device
CN111147358A (en) Security authentication method and device based on instant messaging software
CN112785201B (en) Heterogeneous system quasi-real-time high-reliability interaction system and method
CN114529398A (en) Multi-bank payment processing method and node
CN115562898A (en) Distributed payment system exception handling method and device
CN115099930A (en) Financial business data processing method and device
CN112669158B (en) Transaction system and control method and device of transaction service thereof
CN111930624B (en) Test link message data processing method and device
CN113434423A (en) Interface test method and device
CN112783633A (en) Data updating system and method based on resource mutual exclusion scheduling model
CN113159752A (en) Method and device for generating account transfer transaction certificate
CN112333262A (en) Data updating prompting method and device, computer equipment and readable storage medium
CN111679930B (en) Single-point rollback method and system for CICS online transaction
CN113052691A (en) Distributed account checking system service balancing method, node and cluster
CN113269631A (en) Job processing method, device and system
CN111563816B (en) System and method for separating accounts and messages under bank cross-bank payment service
CN110336847B (en) Payment message transmission system and method
CN115278555A (en) Online transaction method and device based on 5G message

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination