CN111415262A - Service processing method and device - Google Patents

Service processing method and device Download PDF

Info

Publication number
CN111415262A
CN111415262A CN202010251462.6A CN202010251462A CN111415262A CN 111415262 A CN111415262 A CN 111415262A CN 202010251462 A CN202010251462 A CN 202010251462A CN 111415262 A CN111415262 A CN 111415262A
Authority
CN
China
Prior art keywords
service
transaction
processing
transaction service
storage device
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
CN202010251462.6A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010251462.6A priority Critical patent/CN111415262A/en
Publication of CN111415262A publication Critical patent/CN111415262A/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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention discloses a service processing method and a service processing device, and relates to the technical field of computers. One embodiment of the method comprises: based on a transaction service request initiated by an online system, creating a transaction service, and storing the transaction service in a storage device; the control service processing program acquires the transaction service from the storage device for batch processing; and acquiring a batch processing result, and updating the transaction service information corresponding to the transaction service according to the batch processing result. The method and the device can realize batch processing of the services, improve service processing efficiency, reduce system resource occupation, improve user experience, and reduce system accident rate, and meanwhile, the processing method has universality.

Description

Service processing method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a service.
Background
In the micro-service architecture of a computer software system, a plurality of subsystems are generally involved, and one service data exchange between every two subsystems is an online transaction. Generally, the response time required for online transactions is short, but for some specific transactions, in order to improve the business processing efficiency, the business data needs to be processed in batches, such as business operations like batch reading or generation.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the existing online transaction service batch processing process, due to the reasons of large service data volume, large occupied resource and the like, the time required for calculation processing is long, so that the problems of interaction interface timeout, large occupied system resource, poor user experience and the like are easily caused, and meanwhile, system accidents are easily caused.
Disclosure of Invention
In view of this, embodiments of the present invention provide a service processing method and apparatus, which can implement batch processing of services, improve service processing efficiency, reduce occupied amount of system resources, improve user experience, and reduce occurrence rate of system accidents, and the processing method also has universality.
In order to achieve the above object, according to a first aspect of the embodiments of the present invention, there is provided a service processing method, including:
based on a transaction service request initiated by an online system, creating a transaction service, and storing the transaction service in a storage device;
the control service processing program acquires the transaction service from the storage device for batch processing;
and acquiring a batch processing result, and updating the transaction service information corresponding to the transaction service according to the batch processing result.
Further, the step of storing the transaction in the storage device comprises: and controlling the storage equipment to create a business table, storing the transaction business into the business table, and configuring transaction business information corresponding to the transaction business.
Further, the transaction service information includes service status information and at least one of the following information: service number information, service description information, processing priority information, processing type information, processing method information, and processing parameter information.
Further, after the step of storing the transaction service in the storage device, the service processing method further includes: and sending the storage result to an initiating end of the transaction service request.
Further, before the step of controlling the service processing program to obtain the transaction services from the storage device for batch processing, the service processing method further includes: and determining the batch processing quantity of the service processing programs according to the server resources.
Further, the step of controlling the service processing program to acquire the transaction service from the storage device for batch processing includes: and controlling the service processing program to asynchronously acquire the corresponding amount of transaction services from the storage device for batch processing according to the batch processing amount of the service processing program.
Further, the service processing method further includes: and setting a cycle processing period, and controlling a service processing program to asynchronously acquire transaction services from the storage device according to the cycle processing period to perform batch processing.
Further, the service processing method further includes: based on the inquiry request initiated by the initiating terminal of the transaction service request, the transaction service information of the corresponding transaction service is sent to the initiating terminal of the transaction service request, and the transaction service information indicates the state information corresponding to the transaction service.
Further, the service processing program performs batch processing on the transaction service to generate an export file, and the service processing method further includes: and sending an export file to the initiating terminal of the transaction service request based on the acquisition request initiated by the initiating terminal of the transaction service request.
According to a second aspect of the embodiments of the present invention, there is provided a service processing apparatus, including:
the storage module is used for creating transaction service based on a transaction service request initiated by the online system and storing the transaction service into the storage device;
the batch processing module is used for controlling the business processing program to acquire the transaction business from the storage equipment for batch processing;
and the updating module is used for acquiring the batch processing result and updating the transaction service information corresponding to the transaction service according to the batch processing result.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
one or more processors;
a storage device for storing one or more programs,
when executed by one or more processors, cause the one or more processors to implement any of the business processing methods described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements any of the service processing methods described above.
One embodiment of the above invention has the following advantages or benefits: because a transaction service request initiated based on an online system is adopted, a transaction service is created and stored in a storage device; the control service processing program acquires the transaction service from the storage device for batch processing; the technical means of obtaining the batch processing result and updating the transaction service information corresponding to the transaction service according to the batch processing result overcomes the technical problems of low processing efficiency, long time consumption of an interactive interface, more occupied system resources, poor user experience and easy system accident in the existing service processing process, further achieves the technical effects of realizing batch processing of the service, improving the service processing efficiency, reducing the occupation amount of the system resources, improving the user experience, reducing the occurrence rate of the system accident and enabling the processing method to have universality.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a service processing method provided according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a main flow of a service processing method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of main modules of a service processing apparatus provided according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a service processing method provided according to a first embodiment of the present invention; as shown in fig. 1, the service processing method provided in the embodiment of the present invention mainly includes:
step S101, based on the transaction service request initiated by the online system, creating the transaction service, and storing the transaction service in the storage device.
An online system: refers to a subsystem in an online transaction (in the micro service architecture of a computer software system, a plurality of subsystems are generally involved, and one service data exchange between every two subsystems is an online transaction), and is more commonly a client system.
A subsystem (online system) of online transaction initiates a transaction service request, a newly added transaction service is constructed in a service creation program, and then the transaction service is stored in a storage device, so that batch transaction services are asynchronously obtained from the storage device for processing through a service processing program, the service processing efficiency is improved, and the system resource occupation is reduced.
According to an embodiment of the present invention, the step of storing the transaction service in the storage device includes: and controlling the storage equipment to create a business table, storing the transaction business into the business table, and configuring transaction business information corresponding to the transaction business.
Through the setting, a service table is established in the storage device, the transaction service stored in the storage device is marked (for example, new service is added), and meanwhile, the transaction service information is configured, so that a service processing program can conveniently inquire and obtain unprocessed transaction services.
Specifically, according to the embodiment of the present invention, the transaction service information includes service status information and at least one of the following information: service number information, service description information, processing priority information, processing type information, processing method information, and processing parameter information.
Further, according to an embodiment of the present invention, after the step of storing the transaction service in the storage device, the service processing method further includes: and sending the storage result to an initiating end of the transaction service request.
And sending the storage result to an initiating end of the transaction service, so that a user of the initiating end can select to wait for service processing or select to leave, thereby carrying out subsequent query.
And step S102, controlling the service processing program to acquire the transaction service from the storage device for batch processing.
Specifically, according to the embodiment of the present invention, before the step of controlling the service processing program to obtain the transaction services from the storage device for batch processing, the service processing method further includes: and determining the batch processing quantity of the service processing programs according to the server resources.
The server resources include resources such as a Central Processing Unit (CPU) and a memory of the current server. Through the setting, the appropriate processing amount can be determined, so that the service processing efficiency is improved, and the occupation amount of system resources is reduced.
According to the embodiment of the invention, the step of controlling the service processing program to acquire the transaction service from the storage device for batch processing comprises the following steps: and controlling the service processing program to asynchronously acquire the corresponding amount of transaction services from the storage device for batch processing according to the batch processing amount of the service processing program.
Through the processing, the transaction quantity of the corresponding quantity is acquired from the storage device in an asynchronous processing mode to be processed in batch, so that the transaction service creating module (such as a transaction service creating program) and the service processing module (such as a service processing program) are decoupled, the occupation amount of system resources can be further reduced, the accident rate of the system is reduced, and the universality of the service processing method is improved.
Further, according to the embodiment of the present invention, the service processing method further includes: and setting a cycle processing period, and controlling a service processing program to asynchronously acquire transaction services from the storage device according to the cycle processing period to perform batch processing.
By setting the cycle processing period, the processing efficiency of the service processing program is convenient to control, and it should be noted that the specific period value of the cycle processing period is not necessarily fixed, and may be adaptively adjusted according to the batch processing quantity of each time and the current server resource.
And step S103, acquiring a batch processing result, and updating the transaction service information corresponding to the transaction service according to the batch processing result.
Specifically, according to the embodiment of the present invention, in the step of updating the transaction service information, the processing state of the transaction service is mainly updated, so that an initiating end of a subsequent transaction service can timely obtain a processing result of the transaction service, and a subsequent operation flow is selected.
According to the embodiment of the present invention, the service processing method further includes: based on the inquiry request initiated by the initiating terminal of the transaction service request, the transaction service information of the corresponding transaction service is sent to the initiating terminal of the transaction service request, and the transaction service information indicates the state information corresponding to the transaction service.
Through the setting, the initiating end of the transaction service can acquire the service processing state of the corresponding transaction service at any time.
Further, according to the embodiment of the present invention, the service processing program performs batch processing on the transaction service and then generates an export file, and the service processing method further includes: and sending an export file to the initiating terminal of the transaction service request based on the acquisition request initiated by the initiating terminal of the transaction service request.
According to the technical scheme of the embodiment of the invention, the transaction service is created by adopting the transaction service request initiated based on the online system, and the transaction service is stored in the storage device; the control service processing program acquires the transaction service from the storage device for batch processing; the technical means of obtaining the batch processing result and updating the transaction service information corresponding to the transaction service according to the batch processing result overcomes the technical problems of low processing efficiency, long time consumption of an interactive interface, more occupied system resources, poor user experience and easy system accident in the existing service processing process, further achieves the technical effects of realizing batch processing of the service, improving the service processing efficiency, reducing the occupation amount of the system resources, improving the user experience, reducing the occurrence rate of the system accident and enabling the processing method to have universality.
Fig. 2 is a schematic diagram of a main flow of a service processing method according to a second embodiment of the present invention; an application scenario of the embodiment of the present invention is a service processing between a client and a server in an online system, and as shown in fig. 2, a service processing method provided by the embodiment of the present invention mainly includes:
step S201, creating a transaction service based on a transaction service request initiated by the online system.
Specifically, according to the embodiment of the present invention, a user initiates a transaction service request through a user interface of a client, and according to a specific implementation manner of the embodiment of the present invention, the user can select a service record to be processed in the user interface and initiate the transaction service request by clicking a "export" button.
Step S202, the storage device is controlled to create a business table, the transaction business is stored in the business table, and the transaction business information corresponding to the transaction business is configured.
Through the setting, a service table is established in the storage device, the transaction service stored in the storage device is marked (for example, new service is added), and meanwhile, the transaction service information is configured, so that a service processing program can conveniently inquire and obtain unprocessed transaction services.
According to a specific implementation manner of the embodiment of the invention, after a user initiates a transaction service request by clicking a lead-out button, a back-end server receives the lead-out requirement of the user, constructs a transaction service, marks the state information of the transaction service as new, stores the new transaction service into a service table in a database, and configures corresponding transaction service information for each transaction service.
Specifically, according to the embodiment of the present invention, the transaction service information includes service status information and at least one of the following information: service number information, service description information, processing priority information, processing type information, processing method information, and processing parameter information.
Wherein, the service number information: the storage device configures a number for each transaction service as a unique identifier of the transaction service;
service description information: the description of the content of the transaction service, the creation time, the processing start time, the processing end time and the like of the transaction service are referred to;
processing the priority information: indicating a priority level at which the transaction traffic is processed;
processing type information: indicating a specific processing class of the transaction service so as to facilitate subsequent batch processing according to the type;
processing method information: indicating a processing method corresponding to the transaction service processing type, and finding a corresponding processing method in the processing type according to the field by the service processing program and calling the processing method to process the transaction task;
processing the parameter information: the parameters that the business handler enters when the processing method is called are indicated.
Step S203, sending the storage result to the initiating end of the transaction service request.
Specifically, according to a specific implementation manner of the embodiment of the present invention, after the storage result is obtained, the user may click the service table in the service management interface to query all newly added transaction tasks, and view corresponding transaction service information.
And step S204, determining the batch processing quantity of the service processing programs according to the server resources.
The server resources include resources such as a Central Processing Unit (CPU) and a memory of the current server. Through the setting, the appropriate processing amount can be determined, so that the service processing efficiency is improved, and the occupation amount of system resources is reduced.
In step S205, a loop processing cycle is set.
By setting the cycle processing period, the processing efficiency of the service processing program is convenient to control, and it should be noted that the specific period value of the cycle processing period is not necessarily fixed, and may be adaptively adjusted according to the batch processing quantity of each time and the current server resource.
Specifically, according to a specific implementation manner of the embodiment of the present invention, the service processing program may periodically (or according to the cycle processing period) query the service table, and obtain all transaction services whose status is "new" from the service table, so as to perform subsequent batch processing.
Step S206, according to the batch processing quantity and the cycle processing period of the business processing program, controlling the business processing program to asynchronously obtain the corresponding quantity of transaction business from the storage device for batch processing, and generating an export file.
Through the processing, the transaction quantity of the corresponding quantity is acquired from the storage device in an asynchronous processing mode to be processed in batch, so that the transaction service creating module (such as a transaction service creating program) and the service processing module (such as a service processing program) are decoupled, the occupation amount of system resources can be further reduced, the accident rate of the system is reduced, and the universality of the service processing method is improved.
Step S207, obtaining a batch processing result, and updating the transaction service information corresponding to the transaction service according to the batch processing result.
Specifically, according to the embodiment of the present invention, in the step of updating the transaction service information, the processing state of the transaction service is mainly updated, so that an initiating end of a subsequent transaction service can timely obtain a processing result of the transaction service, and a subsequent operation flow is selected.
Step S208, based on the query request initiated by the initiating end of the transaction service request, the transaction service information of the corresponding transaction service is sent to the initiating end of the transaction service request, and the transaction service information indicates the state information corresponding to the transaction service.
Through the setting, the initiating end of the transaction service can acquire the service processing state of the corresponding transaction service at any time.
Step S209, when the state information corresponding to the transaction service is that the processing is completed, sending an export file to the initiating end of the transaction service request based on the acquisition request initiated by the initiating end of the transaction service request.
According to the technical scheme of the embodiment of the invention, the transaction service is created by adopting the transaction service request initiated based on the online system, and the transaction service is stored in the storage device; the control service processing program acquires the transaction service from the storage device for batch processing; the technical means of obtaining the batch processing result and updating the transaction service information corresponding to the transaction service according to the batch processing result overcomes the technical problems of low processing efficiency, long time consumption of an interactive interface, more occupied system resources, poor user experience and easy system accident in the existing service processing process, further achieves the technical effects of realizing batch processing of the service, improving the service processing efficiency, reducing the occupation amount of the system resources, improving the user experience, reducing the occurrence rate of the system accident and enabling the processing method to have universality.
Fig. 3 is a schematic diagram of main modules of a service processing apparatus provided according to an embodiment of the present invention; as shown in fig. 3, a service processing apparatus 300 according to an embodiment of the present invention mainly includes:
the storage module 301 is configured to create a transaction service based on a transaction service request initiated by the online system, and store the transaction service in the storage device.
An online system: refers to a subsystem in an online transaction (in the micro service architecture of a computer software system, a plurality of subsystems are generally involved, and one service data exchange between every two subsystems is an online transaction), and is more commonly a client system.
A subsystem (online system) of online transaction initiates a transaction service request, a newly added transaction service is constructed in a service creation program, and then the transaction service is stored in a storage device, so that batch transaction services are asynchronously obtained from the storage device for processing through a service processing program, the service processing efficiency is improved, and the system resource occupation is reduced.
According to an embodiment of the present invention, the storage module 301 is further configured to: and controlling the storage equipment to create a business table, storing the transaction business into the business table, and configuring transaction business information corresponding to the transaction business.
Through the setting, a service table is established in the storage device, the transaction service stored in the storage device is marked (for example, new service is added), and meanwhile, the transaction service information is configured, so that a service processing program can conveniently inquire and obtain unprocessed transaction services.
Specifically, according to the embodiment of the present invention, the transaction service information includes service status information and at least one of the following information: service number information, service description information, processing priority information, processing type information, processing method information, and processing parameter information.
Further, according to the embodiment of the present invention, the service processing apparatus 300 further includes a storage result sending module, and after the step of storing the transaction service in the storage device, the storage result sending module is configured to: and sending the storage result to an initiating end of the transaction service request.
And sending the storage result to an initiating end of the transaction service, so that a user of the initiating end can select to wait for service processing or select to leave, thereby carrying out subsequent query.
And the batch processing module 302 is configured to control the service processing program to acquire the transaction service from the storage device for batch processing.
Specifically, according to the embodiment of the present invention, the service processing apparatus 300 further includes a batch processing quantity determining module, and before the step of controlling the service processing program to obtain the transaction service from the storage device for batch processing, the batch processing quantity determining module is configured to determine the batch processing quantity of the service processing program according to the server resource.
The server resources include resources such as a Central Processing Unit (CPU) and a memory of the current server. Through the setting, the appropriate processing amount can be determined, so that the service processing efficiency is improved, and the occupation amount of system resources is reduced.
According to an embodiment of the present invention, the batch processing module 302 is further configured to: and controlling the service processing program to asynchronously acquire the corresponding amount of transaction services from the storage device for batch processing according to the batch processing amount of the service processing program.
Through the processing, the transaction quantity of the corresponding quantity is acquired from the storage device in an asynchronous processing mode to be processed in batch, so that the transaction service creating module (such as a transaction service creating program) and the service processing module (such as a service processing program) are decoupled, the occupation amount of system resources can be further reduced, the accident rate of the system is reduced, and the universality of the service processing method is improved.
Further, according to the embodiment of the present invention, the service processing apparatus 300 further includes a cycle processing period setting module, configured to: and controlling the service processing program to asynchronously acquire transaction services from the storage device according to the cycle processing period to perform batch processing.
By setting the cycle processing period, the processing efficiency of the service processing program is convenient to control, and it should be noted that the specific period value of the cycle processing period is not necessarily fixed, and may be adaptively adjusted according to the batch processing quantity of each time and the current server resource.
The updating module 303 is configured to obtain a batch processing result, and update transaction service information corresponding to the transaction service according to the batch processing result.
Specifically, according to the embodiment of the present invention, in the step of updating the transaction service information, the processing state of the transaction service is mainly updated, so that an initiating end of a subsequent transaction service can timely obtain a processing result of the transaction service, and a subsequent operation flow is selected.
According to the embodiment of the present invention, the service processing apparatus 300 further includes a query module, configured to: based on the inquiry request initiated by the initiating terminal of the transaction service request, the transaction service information of the corresponding transaction service is sent to the initiating terminal of the transaction service request, and the transaction service information indicates the state information corresponding to the transaction service.
Through the setting, the initiating end of the transaction service can acquire the service processing state of the corresponding transaction service at any time.
Further, according to an embodiment of the present invention, the service processing program performs batch processing on the transaction service to generate an export file, and the service processing apparatus 300 further includes an export file sending module, where in a case that the state information corresponding to the transaction service is processing completion, the export file sending module is configured to: and sending an export file to the initiating terminal of the transaction service request based on the acquisition request initiated by the initiating terminal of the transaction service request.
According to the technical scheme of the embodiment of the invention, the transaction service is created by adopting the transaction service request initiated based on the online system, and the transaction service is stored in the storage device; the control service processing program acquires the transaction service from the storage device for batch processing; the technical means of obtaining the batch processing result and updating the transaction service information corresponding to the transaction service according to the batch processing result overcomes the technical problems of low processing efficiency, long time consumption of an interactive interface, more occupied system resources, poor user experience and easy system accident in the existing service processing process, further achieves the technical effects of realizing batch processing of the service, improving the service processing efficiency, reducing the occupation amount of the system resources, improving the user experience, reducing the occurrence rate of the system accident and enabling the processing method to have universality.
Fig. 4 shows an exemplary system architecture 400 of a service processing method or service processing apparatus to which embodiments of the present invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 (this architecture is merely an example, and the components included in a particular architecture may be adapted according to application specific circumstances). The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 401, 402, 403. The background management server may analyze and process the received data such as the transaction service request, and feed back a processing result (for example, a transaction service, a batch processing result-just an example) to the terminal device.
It should be noted that the service processing method provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the service processing apparatus is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
To the I/O interface 505, AN input section 506 including a keyboard, a mouse, and the like, AN output section 507 including a keyboard such as a Cathode Ray Tube (CRT), a liquid crystal display (L CD), and the like, a speaker, and the like, a storage section 508 including a hard disk and the like, and a communication section 509 including a network interface card such as a L AN card, a modem, and the like, the communication section 509 performs communication processing via a network such as the internet, a drive 510 is also connected to the I/O interface 505 as necessary, a removable medium 511 such as a magnetic disk, AN optical disk, a magneto-optical disk, a semiconductor memory, and the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a storage module, a batch processing module, and an update module. Where the names of these modules do not in some cases constitute a limitation of the modules themselves, for example, a storage module may also be described as a "module for creating a transaction service based on a transaction service request initiated by an online system, storing the transaction service in a storage device".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: based on a transaction service request initiated by an online system, creating a transaction service, and storing the transaction service in a storage device; the control service processing program acquires the transaction service from the storage device for batch processing; and acquiring a batch processing result, and updating the transaction service information corresponding to the transaction service according to the batch processing result.
According to the technical scheme of the embodiment of the invention, the transaction service is created by adopting the transaction service request initiated based on the online system, and the transaction service is stored in the storage device; the control service processing program acquires the transaction service from the storage device for batch processing; the technical means of obtaining the batch processing result and updating the transaction service information corresponding to the transaction service according to the batch processing result overcomes the technical problems of low processing efficiency, long time consumption of an interactive interface, more occupied system resources, poor user experience and easy system accident in the existing service processing process, further achieves the technical effects of realizing batch processing of the service, improving the service processing efficiency, reducing the occupation amount of the system resources, improving the user experience, reducing the occurrence rate of the system accident and enabling the processing method to have universality.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for processing a service, comprising:
based on a transaction service request initiated by an online system, creating a transaction service, and storing the transaction service in a storage device;
the control service processing program acquires the transaction service from the storage device for batch processing;
and acquiring a batch processing result, and updating the transaction service information corresponding to the transaction service according to the batch processing result.
2. The transaction processing method of claim 1, wherein the step of storing the transaction in a storage device comprises: and controlling the storage equipment to create a service table, storing the transaction service into the service table, and configuring transaction service information corresponding to the transaction service.
3. The transaction processing method of claim 1, wherein the transaction information comprises at least one of service status information and the following information: service number information, service description information, processing priority information, processing type information, processing method information, and processing parameter information.
4. The transaction processing method according to claim 1, wherein after the step of storing the transaction into a storage device, the transaction processing method further comprises: and sending the storage result to an initiating end of the transaction service request.
5. The transaction processing method according to claim 1, wherein before the step of the control transaction handler obtaining the transaction from the storage device for batch processing, the transaction processing method further comprises: and determining the batch processing quantity of the service processing programs according to the server resources.
6. The transaction processing method according to claim 5, wherein the step of controlling the transaction handler to obtain the transaction service from the storage device for batch processing comprises: and controlling the service processing program to asynchronously acquire a corresponding amount of transaction services from the storage device for batch processing according to the batch processing amount of the service processing program.
7. The traffic processing method according to claim 5, wherein the traffic processing method further comprises: and setting a cycle processing period, and controlling the service processing program to asynchronously acquire transaction services from the storage device according to the cycle processing period to perform batch processing.
8. The service processing method according to claim 1, wherein the service processing method further comprises: based on the inquiry request initiated by the initiating terminal of the transaction service request, the transaction service information of the corresponding transaction service is sent to the initiating terminal of the transaction service request, and the transaction service information indicates the state information corresponding to the transaction service.
9. The service processing method according to claim 8, wherein the service processing program performs batch processing on the transaction service and then generates an export file, and when the state information corresponding to the transaction service is processing completion, the service processing method further includes: and sending the export file to the initiating end of the transaction service request based on the acquisition request initiated by the initiating end of the transaction service request.
10. A traffic processing apparatus, comprising:
the storage module is used for creating a transaction service based on a transaction service request initiated by an online system and storing the transaction service into storage equipment;
the batch processing module is used for controlling the business processing program to acquire the transaction business from the storage equipment for batch processing;
and the updating module is used for acquiring a batch processing result and updating the transaction service information corresponding to the transaction service according to the batch processing result.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-9.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-9.
CN202010251462.6A 2020-04-01 2020-04-01 Service processing method and device Pending CN111415262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010251462.6A CN111415262A (en) 2020-04-01 2020-04-01 Service processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010251462.6A CN111415262A (en) 2020-04-01 2020-04-01 Service processing method and device

Publications (1)

Publication Number Publication Date
CN111415262A true CN111415262A (en) 2020-07-14

Family

ID=71494745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010251462.6A Pending CN111415262A (en) 2020-04-01 2020-04-01 Service processing method and device

Country Status (1)

Country Link
CN (1) CN111415262A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107437222A (en) * 2017-08-03 2017-12-05 中国银行股份有限公司 The processing method and system of online business data based on bank counter front end
CN107943584A (en) * 2017-11-15 2018-04-20 中国银行股份有限公司 The processing method and processing device of batch transaction request
WO2019100991A1 (en) * 2017-11-27 2019-05-31 北京京东金融科技控股有限公司 Information processing method, device and system, storage medium, and electronic device
CN110442608A (en) * 2019-07-31 2019-11-12 中国工商银行股份有限公司 Information processing method, device, electronic equipment, medium and system
CN110489195A (en) * 2019-08-19 2019-11-22 中国工商银行股份有限公司 Method for processing business, device, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107437222A (en) * 2017-08-03 2017-12-05 中国银行股份有限公司 The processing method and system of online business data based on bank counter front end
CN107943584A (en) * 2017-11-15 2018-04-20 中国银行股份有限公司 The processing method and processing device of batch transaction request
WO2019100991A1 (en) * 2017-11-27 2019-05-31 北京京东金融科技控股有限公司 Information processing method, device and system, storage medium, and electronic device
CN110442608A (en) * 2019-07-31 2019-11-12 中国工商银行股份有限公司 Information processing method, device, electronic equipment, medium and system
CN110489195A (en) * 2019-08-19 2019-11-22 中国工商银行股份有限公司 Method for processing business, device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110795147A (en) Interface protocol file management method and device
CN112612467A (en) Method and device for processing micro front-end architecture based on qiankun
CN110764770A (en) Method and device for conversion and assignment between objects
CN111984234A (en) Method and device for processing work order
CN113190558A (en) Data processing method and system
CN113742389A (en) Service processing method and device
CN112884181A (en) Quota information processing method and device
CN113535420A (en) Message processing method and device
CN112948138A (en) Method and device for processing message
CN112685481A (en) Data processing method and device
CN112667368A (en) Task data processing method and device
CN112398669A (en) Hadoop deployment method and device
CN113760487B (en) Service processing method and device
CN111415262A (en) Service processing method and device
CN114417318A (en) Third-party page jumping method and device and electronic equipment
CN113779122A (en) Method and apparatus for exporting data
CN109213815B (en) Method, device, server terminal and readable medium for controlling execution times
CN109087097B (en) Method and device for updating same identifier of chain code
CN113741796B (en) Data persistence method and device for terminal application
CN111062682B (en) Work order processing method and device
CN116010122A (en) Message processing method and device
CN117131002A (en) Service data migration method and device
CN113761405A (en) Task list processing method and system
CN117131302A (en) Service page generation method and device
CN113703933A (en) Task processing method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20221010

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right