CN107832134A - multi-task processing method, application server and storage medium - Google Patents

multi-task processing method, application server and storage medium Download PDF

Info

Publication number
CN107832134A
CN107832134A CN201711188624.0A CN201711188624A CN107832134A CN 107832134 A CN107832134 A CN 107832134A CN 201711188624 A CN201711188624 A CN 201711188624A CN 107832134 A CN107832134 A CN 107832134A
Authority
CN
China
Prior art keywords
task
service class
transaction details
transferred account
processing method
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.)
Granted
Application number
CN201711188624.0A
Other languages
Chinese (zh)
Other versions
CN107832134B (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201711188624.0A priority Critical patent/CN107832134B/en
Publication of CN107832134A publication Critical patent/CN107832134A/en
Priority to PCT/CN2018/083933 priority patent/WO2019100654A1/en
Application granted granted Critical
Publication of CN107832134B publication Critical patent/CN107832134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a kind of multi-task processing method, application server and storage medium, wherein, the multi-task processing method is by when finding multitask, will find and transferred account service class and transaction details service class are divided into task;Then transferred account service class is screened first, only retain one for carrying same account number to remove other iterative tasks, transaction details service class is screened to choose the task of the first predetermined number according to preset rules again, finally choosing for task is sent to enterprise's front end processor, to be sent by enterprise's front end processor to banking system, so as to reduce the quantity for the iterative task for being sent to banking system, avoid and reach banking system concurrency, improve the reaction speed of banking system.

Description

Multi-task processing method, application server and storage medium
Technical field
The present invention relates to technical field of data processing, and in particular to multi-task processing method, application server and storage are situated between Matter.
Background technology
In financial system, it is often necessary to by application server scan task, and lead to task after scanning to task Know enterprise's front end processor to the task, then will be sent by enterprise's front end processor corresponding to task to bank pre-machine, with to bank System initiates transactional operation.However, current banking system generally existing concurrency limitation, and what application server scanned appoints More same task is there may be in business, and when same task is sent to bank pre-machine by enterprise's front end processor, it is described identical Task may exceed the concurrent processing amount of banking system, and take banking system ample resources, cause banking system reaction speed Degree is slow, and then influences application server task response speed.
Therefore, prior art has yet to be improved and developed.
The content of the invention
In view of in place of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of multi-task processing method, answer With server and storage medium, by controlling application server to send to enterprise's front end processor the quantity of same task, to avoid phase Exceed the concurrency of bank pre-machine with task, so as to improve the response speed of application server.
In order to achieve the above object, this invention takes following technical scheme:
A kind of multi-task processing method, it comprises the following steps:
When being divided into two according to its affiliated type of service to multitask during multitask, will be found according to preset task identifier lookup Individual service class, wherein, described two service class include transferred account service class and transaction details service class;
The account number that transferred account service class carries according to task is subjected to duplicate removal screening, and to transaction details service class according to default Rule is screened, to choose the task of the first predetermined number;
Choosing for task is sent to enterprise's front end processor corresponding to the task identification.
It is described, to during multitask, to be found when according to preset task identifier lookup in the multi-task processing method The step of multitask is divided into two service class according to its affiliated type of service includes:
When to during multitask, obtaining the service identification of multitask respectively according to preset task identifier lookup, and according to the business Mark determines the type of service residing for the task, wherein, the type of service includes transferred account service class and transaction details business Class;
When the service identification belongs to transferred account service class, the task is divided to transferred account service class;
When the service identification belongs to transaction details service class, the task is divided to transaction details service class.
In the multi-task processing method, the account number that transferred account service class is carried according to task carries out duplicate removal Screening, and transaction details service class is screened according to preset rules, specifically included with choosing the task of the first predetermined number:
The account number that transferred account service class is carried according to task carries out duplicate removal screening, and obtains the of transferred account service class after screening One task quantity;
The second task quantity according to corresponding to first predetermined number and first task quantity determine transaction details service class;
Transaction details service class is screened according to preset rules to obtain the task of the second task quantity.
In the multi-task processing method, the account number that transferred account service class is carried according to task carries out duplicate removal Screening, and the first task quantity of transferred account service class specifically includes after obtaining screening:
All tasks in the transferred account service class are divided at least one packet according to its account number carried, and respectively At least one packet is ranked up according to preset order;
The task of each packet sequencing first is chosen successively with the transferred account service class after being screened, and obtains the industry of transferring accounts after screening The first task quantity for class of being engaged in.
In the multi-task processing method, first task for choosing each packet successively is to turn after being screened Account service class, and obtain screening after transferred account service class first task quantity the step of after also include:
By the first task quantity and the second predetermined number, wherein, the second predetermined number is the half of the first predetermined number;
If the first task quantity is more than the second predetermined number, according in transferred account service class of the priority orders after screening The task of the second predetermined number is chosen, and using the second predetermined number renewal first task quantity.
It is described that transaction details service class is screened to obtain according to preset rules in the multi-task processing method The step of task of second task quantity is specially:
Transaction details service class is screened according to priority to obtain the task of the second task quantity.
It is described to send choosing for task to enterprise corresponding to the task identification in the multi-task processing method The step of front end processor is:
Getting for task is sent to enterprise's front end processor corresponding to the task identification one by one, wherein, two neighboring task The preset time of transmission time interval first.
It is described to send choosing for task to enterprise corresponding to the task identification in the multi-task processing method Also include before the step of front end processor:
Bank's coding that each task carries is detected, and whether there is really according to bank coding and belong to appointing for default bank Business;
Accordingly, described send choosing for task to after corresponding to the task identification the step of enterprise's front end processor is wrapped Include:
When the belonging to default bank of the task be present, the preset time of dormancy second;
When not storing the belonging to default bank of the task, the preset time of dormancy the 3rd.
A kind of computer-readable recording medium, wherein, the computer-readable recording medium storage has one or more Program, one or more of programs can be by one or more computing devices, to realize as above any described more Step in processing method of being engaged in.
A kind of application server, it includes:Processor, memory and communication bus;Being stored with the memory can quilt The computer-readable program of the computing device;
The communication bus realizes the connection communication between processor and memory;
The step in as above any described multi-task processing method is realized described in the computing device during computer-readable program Suddenly.
It is described in multi-task processing method provided by the invention, application server and storage medium compared to prior art Multi-task processing method is by when finding multitask, will find and transferred account service class and transaction details are divided into task Service class;Then transferred account service class is screened first, only retains one for carrying same account number to remove other Iterative task, then transaction details service class is screened to choose the task of the first predetermined number, finally according to preset rules Choosing for task is sent to enterprise's front end processor, to be sent by enterprise's front end processor to banking system, so as to reduce hair Toward the quantity of the iterative task of banking system, avoid and reach banking system concurrency, improve the reaction speed of banking system.
Brief description of the drawings
Fig. 1 is the application environment schematic diagram of multi-task processing method provided by the invention.
Fig. 2 is the flow chart of multitasking provided by the invention.
Fig. 3 is the flow chart of step S10 in multitasking provided by the invention.
Fig. 4 is the flow chart of step S20 in multitasking provided by the invention.
Fig. 5 is the flow chart of step S21 in multitasking provided by the invention.
Fig. 6 is to include in the method provided by the invention for changing table structure automatically based on source database after step S212 The flow chart of postsearch screening.
Fig. 7 is the running environment schematic diagram of the preferred embodiment of multitasking application server provided by the invention.
Fig. 8 is the functional block diagram of the preferred embodiment of the application server of present invention installation multitasking.
Embodiment
In view of in existing financial system, number of the application server by enterprise's front end processor to banking system same task be present Amount is excessive, causes banking system resource largely to be taken and cause the slow-footed problem of application server responses, mesh of the invention Be a kind of multi-task processing method, application server and storage medium are provided, by controlling application server to before enterprise The quantity that machine sends same task is put, the quantity for avoiding the same task that banking system receives reaches its concurrency, so as to Reduce the occupancy to banking system resource, improve the processing speed of banking system, and then improve the sound of background server Answer speed.
To make the purpose of the present invention, technical scheme and effect clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings The present invention is further described.It should be appreciated that specific embodiment described herein is not used to only to explain the present invention Limit the present invention.
Referring to Fig. 1, it is the application environment schematic diagram of multi-task processing method provided by the invention.In figure, before enterprise Machine is put mutually to communicate with bank pre-machine with application server for terminal device, enterprise's front end processor corresponding to enterprise's mark, Enterprise's front end processor receives the task of application server transmission, and message corresponding to received task is sent into bank preposing Machine, one or more application programs can be installed to handle related data in application server.In the present embodiment, application can be passed through Server receives the transaction request for the carrying task identification for coming front end, and has application server receiving lookup transaction request When, the task corresponding to scan task mark in the database of its storage, and working as according to preset task identifier lookup to more During business, multitask will be found and be divided into transferred account service class and transaction details service class according to its affiliated type of service;And it will turn The account number that account service class carries according to task carries out duplicate removal screening, and transaction details service class is carried out according to preset rules Screening, to choose the task of the first predetermined number, finally choosing for task is sent to enterprise corresponding to the task identification again Industry front end processor;So as to control application server to reduce and provided to banking system to the quantity of the identical message of bank pre-machine transmission The occupancy in source, improves the processing speed of banking system, and then improves the response speed of background server.
Referring to Fig. 2, multi-task processing method provided by the invention comprises the following steps:
S10, when being divided according to preset task identifier lookup to multitask during multitask, will be found according to its affiliated type of service For two service class, wherein, described two service class include transferred account service class and transaction details service class.
Specifically, the task identification be application server receive, its can be user input or with institute State what the headend equipment that application server is connected was sent.Preferably, the task identification is what headend equipment was sent, to cause Application server carries out task lookup according to the task identification.In addition, querying condition can also be included in the task identification, For example, trade date etc..
In the present embodiment, the multitask is is pre-stored within presetting database, i.e., according to preset task mark simultaneously Knowledge finds multitask and refers to finding multitask in presetting database according to preset task mark.Wherein, it is described default Database can be oracle database(Oracle database also known as Oracle RDBMS, or abbreviation Oracle, it is inscriptions on bones or tortoise shells public affairs A relational database management system of department), MySQL(MySQL is the small-sized correlation data base administration system of an open source code System)Database or PostgreSQL(PostgreSQL is a free Object-relational Database server)Database, this A little databases are common and easily operated data base management system and instrument, are easy in the present embodiment in database The inquiry of task.
In addition, the multitask is being performed by banking system for task, the type of service can be to transfer accounts, transfer accounts and look into Inquiry, remaining sum and flowing water etc., and the task carries its corresponding service identification(For example, operation code), the business mark Know for determining the type of service belonging to the task, people's task that so can be according to service identification determines multitask is divided Class, for example, transferred account service class and transaction details service class etc..Accordingly, in the present embodiment, as shown in figure 3, described work as root According to preset task identifier lookup two service class are divided into multitask during multitask, will be found according to its affiliated type of service The step of can include:
S11, when to during multitask, obtaining the service identification of multitask respectively according to preset task identifier lookup, and according to described Service identification determines the type of service residing for the task, wherein, the type of service includes transferred account service class and transaction details Service class;
S12, when the service identification belongs to transferred account service class, the task is divided to transferred account service class;
S13, when the service identification belongs to transaction details service class, the task is divided to transaction details service class.
Preferably, each type of service is each equipped with a service identification set, and the service identification set, which is stored with, belongs to it All service identifications of corresponding type of service, can be according to belonging to the service identification so when getting service identification Service identification set and determine all types of service of the task.In the present embodiment, the transferred account service class can wrap Inquiry of transferring accounts and transfer accounts is included, i.e., includes the service identification of transferred account service corresponding to described transferred account service class in service identification set And the service identification for inquiry business of transferring accounts.Accordingly, the obvious class of the transaction can include inquiry into balance, flowing water inquiry and History flowing water is inquired about, i.e., includes the business mark of inquiry into balance business corresponding to the described obvious class of transaction in service identification set The service identification of knowledge, the service identification of flowing water inquiry business and history flowing water inquiry business.
S20, the account number progress duplicate removal screening for carrying transferred account service class according to task, and to transaction details service class Screened according to preset rules, to choose the task of the first predetermined number.
After the multitask found is divided into transferred account service class and transaction details service class by application server, it will Start the task screening sequence pre-set, transferred account service class and transaction details service class are screened successively.Specifically, Screening is carried out to transferred account service class first and has determined that the first task that transferred account service class includes;Transaction details service class is carried out again Screening is to determine the second task that transaction details service class includes.And in actual applications, due to corresponding to each enterprise mark Database is configured with the quantity of a calling task, is designated as the predetermined number of task, and is identified in each enterprise corresponding There may be the task more than predetermined number in several databases, therefore can be to transferred account service class and transaction details business While class is screened, it is ensured that screen the task quantity of obtained first task and the second task respectively and less than or equal to pre- If quantity.
Exemplary, as shown in figure 3, the account number that transferred account service class is carried according to task carries out duplicate removal sieve Choosing, and transaction details business is screened according to preset rules, specifically included with choosing the task of the first predetermined number:
S21, the account number progress duplicate removal screening for carrying transferred account service class according to task, and obtain transferred account service class after screening First task quantity;
S22, the second task according to corresponding to first predetermined number and first task quantity determine transaction details service class Quantity;
S23, transaction details service class is screened to obtain the task of the second task quantity according to preset rules.
Specifically, the account number carries for task, the preferably business account bizAccountNo of paying party, this Sample can avoid the business of the same race of same account from being frequently conveyed to bank pre-machine and trigger the concurrent upper limit of banking system.Namely Say, the account number that task in transferred account service class carries is removed into screening refers to that identical will be carried in transferred account service class The multiple tasks of account number retain one, and remove other identical tasks, and identical is sent to enterprise's front end processor to reduce The quantity of business.
Exemplary, as shown in figure 5, the account number that transferred account service class is carried according to task carries out duplicate removal sieve Choosing, and the first task quantity of transferred account service class specifically includes after obtaining screening:
S211, all tasks in the transferred account service class are divided at least one packet according to its account number carried, And at least one packet is ranked up according to preset order respectively;
S212, the task of each packet sequencing first is chosen successively with the transferred account service class after being screened, and after obtaining screening The first task quantity of transferred account service class.
Specifically, in the step S211, the preset order can be priority descending, task creation time ascending order Or task ID ascending order etc..Wherein, the priority is that task is distributed automatically when generating, for determining that the tasks carrying is suitable The mark of sequence, and when finding each task, the priority that each task carries can be got.And in actual applications, it is Cause the corresponding unique serial number of every group of including for task, the preset order is preferably:It is first according to priority Descending arranges task, and detects whether clooating sequence identical task be present;If in the presence of the identical task that puts in order(It is i.e. preferential Level identical task), then the identical task that will put in order is ranked up according to task creation time ascending order and updates all The sequence of business;Detect whether clooating sequence identical task be present again, if clooating sequence identical task be present(That is priority Task creation time all same), then clooating sequence identical task is chosen according to task ID ascending order and updated all again The sequence of task, it can so ensure not choose duplicate data.Certainly, can as still having clooating sequence identical task To be randomly provided the order of clooating sequence identical task, uniquely sorted with corresponding one of the task ensured in each packet suitable Sequence, i.e., the serial number of the task in each packet can be from 1-n increasing sequences.
Further, in the step S212, after being ranked up to each packet, it is only necessary to choose in each packet and sort First task simultaneously excludes other tasks, and this completes the screening of each packet.After to each packet screening, obtain Transferred account service class includes the first task quantity of task after screening, and first task quantity and default second quantity are compared Compared with to cause the quantity of task that transferred account service class includes to meet the configuration needs of enterprise's front end processor, avoiding once sending and transfer accounts The task process of service class, and influence processing speed of enterprise's front end processor with its banking system associated.Referring to Fig. 6, it is The flow chart of the postsearch screening included in multi-task processing method provided by the invention after step 212.
As shown in fig. 6, include after the step S212:
S213, by the first task quantity and the second predetermined number, wherein, the second predetermined number be the first predetermined number one Half;
If S214, the first task quantity are more than the second predetermined number, according to transfer accounts industry of the priority orders after screening The task of the second predetermined number is chosen in business class, and using the second predetermined number renewal first task quantity.
Database corresponding to enterprise's mark has been pre-configured with the first present count of can inquiring every time for task, Yi Jicha Second predetermined number of the transferred account service class included in asking for task, and the second predetermined number is the one of the first predetermined number Half, after the first task quantity after screening is got, by first task quantity compared with the second predetermined number, and When first task quantity is more than the second predetermined number, it is pre- to obtain second that postsearch screening is carried out to the transferred account service class after screening If the task of quantity.
Further, in the step S22, the first predetermined number of can inquiring for task is provided with due to presetting, Follow up the first predetermined number and first task quantity is calculated the second task data, i.e. the present count of the second task quantity=first Amount-first task quantity.In actual applications, when first task quantity is more than or equal to the second predetermined number, by first task Quantity and the second task quantity are disposed as the second predetermined number;When first task quantity is less than the second predetermined number, calculate First predetermined number and the difference of first task quantity, and using the difference being calculated as the second task quantity.
Further, in the step S23, it is to choose the second task quantity that screening is carried out to transaction details service class Task, but the quantity of task that transaction details service class includes is possibly less than the second task quantity, thus is performing step It can also include before S23:Obtain the 3rd task quantity of task that transaction details service class includes, and by the 3rd task quantity Compared with the second task quantity;It is bright to merchandising according to preset rules if the 3rd task quantity is more than the second task quantity Thin service class is screened;If the 3rd task quantity is less than or equal to the second task quantity, the step S23 is not performed.
It is described screening is carried out to transaction details service class to be screened according to priority ascending order.In addition, in order to accurate Screening obtains the task of the second task quantity, and screening is carried out to transaction details service class can be first according to priority descending, equal Priority presses the rule that task ID ascending order is chosen according to task creation time ascending order, priority and task creation time identical Then.
S30, choosing for task sent to enterprise's front end processor corresponding to the task identification.
After screening obtains need to sending to enterprise's front end processor for task, the task that screening obtains is sent to enterprise one by one Machine, and the transmission time interval preset time of two tasks of phase are put, for example, 10ms.In addition, the transmission for the task that screening obtains Order can be sent according to the sequencing found, can also be according to order of priority of task etc..
In addition, also including detecting bank's coding that each task carries before the step S30, and compiled according to the bank Code is really with the presence or absence of the belonging to default bank of the task.The default bank is sets the bank concurrently limited, for example, described pre- If Bank of China of bank, Bank of China, which is provided with, concurrently to be limited.
Also include after the step S30 simultaneously:When the belonging to default bank of the task be present, when dormancy second is preset Between;When not storing the belonging to default bank of the task, the preset time of dormancy the 3rd.Second preset time is that default bank sets The concurrently limitation time put, the 3rd preset time are the concurrent dormancy time of application server configuration, wherein, the second preset time Can be 10000ms, the 3rd preset time can be 5000ms.For example, in a preferred embodiment of the invention, the step S30 can specifically include:
Whether the quantity for the task that detection screening obtains is equal to 0;
If equal to 0, dormancy gives tacit consent to 1000 milliseconds;
If not equal to 0, Bank of China being present of the task is detected whether;
When in the absence of the task of Bank of China, send every task one by one, and it is every sent a task when dormancy give tacit consent to 10 milliseconds, and after all tasks are sent, 5000 milliseconds of dormancy;
When the task of Bank of China be present, send every task one by one, and it is every sent a task when dormancy acquiescence 10 Millisecond, and after all tasks are sent, 10000 milliseconds of dormancy.
As shown in fig. 7, being based on above-mentioned multi-task processing method, the present invention further correspondingly provides a kind of application server.Institute Application server is stated to interact with front end and enterprise's front end processor, for example, the request for the query task that receiving front-end is sent, and The mission bit stream inquired is fed back into front end;Meanwhile corresponding task is searched according to request, and task is sent to enterprise Terminal, banking system is sent to by enterprise's front end machine, to obtain bank transaction information corresponding to task;And looked into according to request Ask in corresponding task process, the multitask inquired is screened and starves task to remove the identical function of identical account, with The quantity sent to the same task of enterprise's front end processor is controlled, realizes the number that same task is sent to bank pre-machine The control of amount.
The application server can be the meter such as server group that desktop PC, large scale computer, multiple servers are formed Calculate equipment.The application server is include but not limited to, processor 10, memory 20 and display 30.Fig. 7 illustrate only should With the members of server, it should be understood that being not required for implementing all components shown, the implementation that can be substituted is more More or less components.
The memory 20 can be the internal storage unit of the application server in certain embodiments, such as should answer With the hard disk or internal memory of server.The memory 20 can also be the outside of the application server in further embodiments The plug-in type hard disk being equipped with storage device, such as the application server, intelligent memory card(Smart Media Card, SMC), secure digital(Secure Digital, SD)Card, flash card(Flash Card)Deng.Further, the memory 20 can also both include the internal storage unit of the application server or including External memory equipment.The memory 20 is used for Storage is installed on the application software and Various types of data of the application server, such as the program code of the installation concurrency control Deng.The memory 20 can be also used for temporarily storing the data that has exported or will export.In one embodiment, deposit The program 40 of concurrency control is stored with reservoir 20, the concurrency control program 40 can be performed by processor 10, so as to real The multi-task processing method of each embodiment of existing the application.
The processor 10 can be a central processing unit in certain embodiments(Central Processing Unit, CPU), microprocessor or other data processing chips, for running the program code stored in the memory 20 or processing number According to, such as perform described purview certification method etc..
The display 30 can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display in certain embodiments And OLED(Organic Light-Emitting Diode, Organic Light Emitting Diode)Touch device etc..The display 30 is used In being shown in the information that is handled in the application server and for showing visual user interface.The application server Part 10-30 be in communication with each other by system bus.
In one embodiment, following walk is realized when processor 10 performs concurrency control program 40 in the memory 20 Suddenly:
When being divided into two according to its affiliated type of service to multitask during multitask, will be found according to preset task identifier lookup Individual service class, wherein, described two service class include transferred account service class and transaction details service class;
The account number that transferred account service class carries according to task is subjected to duplicate removal screening, and to transaction details business according to default rule Then screened, to choose the task of the first predetermined number;
Choosing for task is sent to enterprise's front end processor corresponding to the task identification.
It is described when according to preset task identifier lookup, to during multitask, more will be found in the application server The step of business is divided into two service class according to its affiliated type of service includes:
When to during multitask, obtaining the service identification of multitask respectively according to preset task identifier lookup, and according to the business Mark determines the type of service residing for the task, wherein, the type of service includes transferred account service class and transaction details business Class;
When the service identification belongs to transferred account service class, the task is divided to transferred account service class;
When the service identification belongs to transaction details service class, the task is divided to transaction details service class.
Further, in the application server, the account number that transferred account service class is carried according to task is carried out Duplicate removal is screened, and transaction details business is screened according to preset rules, to choose the task step bag of the first predetermined number Include:
The account number that transferred account service class is carried according to task carries out duplicate removal screening, and obtains the of transferred account service class after screening One task quantity;
The second task quantity according to corresponding to first predetermined number and first task quantity determine transaction details service class;
Transaction details service class is screened according to preset rules to obtain the task of the second task quantity.
Further, in the application server, the account number that transferred account service class is carried according to task is carried out Duplicate removal screen, and obtain screening after transferred account service class first task quantity the step of include:
All tasks in the transferred account service class are divided at least one packet according to its account number carried, and respectively At least one packet is ranked up according to preset order;
The task of each packet sequencing first is chosen successively with the transferred account service class after being screened, and obtains the industry of transferring accounts after screening The first task quantity for class of being engaged in.
Further, in the application server, after first task for choosing each packet successively is to obtain screening Transferred account service class, and obtain screening after transferred account service class first task quantity the step of after also include:
By the first task quantity and the second predetermined number, wherein, the second predetermined number is the half of the first predetermined number;
If the first task quantity is more than the second predetermined number, according in transferred account service class of the priority orders after screening The task of the second predetermined number is chosen, and using the second predetermined number renewal first task quantity.
Further, in the application server, it is described transaction details service class is screened according to preset rules with The step of obtaining the task of the second task quantity be specially:
Transaction details service class is screened according to priority to obtain the task of the second task quantity.
Further, it is described to send choosing for task to corresponding to the task identification in the application server The step of enterprise's front end processor is:
Getting for task is sent to enterprise's front end processor corresponding to the task identification one by one, wherein, two neighboring task The preset time of transmission time interval first.
Further, it is described to send choosing for task to corresponding to the task identification in the application server Also include before the step of enterprise's front end processor:
Bank's coding that each task carries is detected, and whether there is really according to bank coding and belong to appointing for default bank Business;
Accordingly, described send choosing for task to after corresponding to the task identification the step of enterprise's front end processor is wrapped Include:
When the belonging to default bank of the task be present, the preset time of dormancy second;
When not storing the belonging to default bank of the task, the preset time of dormancy the 3rd.
Referring to Fig. 8, it is the functional block diagram of application server of the present invention.In the present embodiment, application server The program of memory storage can be divided into one or more modules, and one or more of modules are by one or more Manage device(The present embodiment is the processor 10)It is performed, to complete the present invention.For example, in fig. 8, the storage of application server The program of device storage can be divided into receiving module 21, obtain analysis module 22 and feedback module 23.Mould alleged by the present invention Block is the series of computation machine programmed instruction section for referring to complete specific function, than program more suitable for describing the concurrency control Implementation procedure of the program of method processed in the application server.Describe specifically to introduce the work(of the module 21-23 below Energy.
Division module 21, for when according to preset task identifier lookup to multitask during multitask, will be found according to it Affiliated type of service is divided into two service class, wherein, described two service class include transferred account service class and transaction details business Class;
Analysis module 22 is screened, the account number for transferred account service class to be carried according to task carries out duplicate removal screening, and to handing over Easy detailed business is screened according to preset rules, to choose the task of the first predetermined number;
Sending module 23, for choosing for task to be sent to enterprise's front end processor corresponding to the task identification.
In summary, in multi-task processing method provided by the invention, application server and storage medium, the multitask Processing method is by when finding multitask, will find and transferred account service class and transaction details business are divided into task Class;Then transferred account service class is screened first, only retains one for carrying same account number to remove other repetitions Task, then transaction details service class is screened to choose the task of the first predetermined number according to preset rules, finally will choosing Getting for task is sent to enterprise's front end processor, and to be sent by enterprise's front end processor to banking system, silver is sent to so as to reduce The quantity of the iterative task of row system, avoid and reach banking system concurrency, improve the reaction speed of banking system.
Certainly, one of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, It is that related hardware can be instructed by computer program(Such as processor, controller etc.)To complete, described program can store In a computer-readable storage medium, the program may include such as the flow of above-mentioned each method embodiment upon execution.Its Described in storage medium can be memory, magnetic disc, CD etc..
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention Protect scope.

Claims (10)

1. a kind of multi-task processing method, it is characterised in that it comprises the following steps:
, to during multitask, the multitask found is divided into according to its affiliated type of service when according to preset task identifier lookup Two service class, wherein, described two service class include transferred account service class and transaction details service class;
The account number that transferred account service class carries according to task is subjected to duplicate removal screening, and to transaction details service class according to default Rule is screened, to choose the task of the first predetermined number;
Choosing for task is sent to enterprise's front end processor corresponding to the task identification.
2. multi-task processing method according to claim 1, it is characterised in that described to be arrived according to preset task identifier lookup During multitask, the step of multitask found is divided into two service class according to its affiliated type of service, includes:
When to during multitask, obtaining the service identification of multitask respectively according to preset task identifier lookup, and according to the business Mark determines the type of service residing for the task, wherein, the type of service includes transferred account service class and transaction details business Class;
When the service identification belongs to transferred account service class, the task is divided to transferred account service class;
When the service identification belongs to transaction details service class, the task is divided to transaction details service class.
3. multi-task processing method according to claim 1, it is characterised in that described to carry transferred account service class according to task Account number carry out duplicate removal screening, and transaction details service class is screened according to preset rules, it is default to choose first The step of task of quantity, includes:
The account number that transferred account service class is carried according to task carries out duplicate removal screening, and obtains the of transferred account service class after screening One task quantity;
The second task quantity according to corresponding to first predetermined number and first task quantity determine transaction details service class;
Transaction details service class is screened according to preset rules to obtain the task of the second task quantity.
4. multi-task processing method according to claim 3, it is characterised in that described to carry transferred account service class according to task Account number carry out duplicate removal screening, and obtain screening after transferred account service class first task quantity the step of include:
All tasks in the transferred account service class are divided at least one packet according to its account number carried, and respectively At least one packet is ranked up according to preset order;
The task of each packet sequencing first is chosen successively with the transferred account service class after being screened, and obtains the industry of transferring accounts after screening The first task quantity for class of being engaged in.
5. multi-task processing method according to claim 4, it is characterised in that choose each packet successively first appoints Business with the transferred account service class after screen, and the step of obtain the first task quantity of the transferred account service class after screening after and also Including:
By the first task quantity compared with the second predetermined number, wherein, the second predetermined number is the first predetermined number Half;
If the first task quantity is more than the second predetermined number, according in transferred account service class of the priority orders after screening The task of the second predetermined number is chosen, and using the second predetermined number renewal first task quantity.
6. multi-task processing method according to claim 3, it is characterised in that it is described according to preset rules to transaction details industry Business class is screened to be specially the step of obtaining the task of the second task quantity:
Transaction details service class is screened according to priority to obtain the task of the second task quantity.
7. multi-task processing method according to claim 1, it is characterised in that described to send choosing for task to described It is the step of enterprise's front end processor corresponding to task identification:
Getting for task is sent to enterprise's front end processor corresponding to the task identification one by one, wherein, two neighboring task The preset time of transmission time interval first.
8. according to the multi-task processing method of claim 1 or 7, it is characterised in that it is described by choosing for task send to Also include before the step of enterprise's front end processor corresponding to the task identification:
Bank's coding that each task carries is detected, and whether there is really according to bank coding and belong to appointing for default bank Business;
Accordingly, described send choosing for task to after corresponding to the task identification the step of enterprise's front end processor is wrapped Include:
When the belonging to default bank of the task be present, the preset time of dormancy second;
When not storing the belonging to default bank of the task, the preset time of dormancy the 3rd.
A kind of 9. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing devices, to realize such as claim 1~8 The step in multi-task processing method described in any one.
A kind of 10. application server, it is characterised in that including:Processor, memory and communication bus;Deposited on the memory Containing can be by the computer-readable program of the computing device;
The communication bus realizes the connection communication between processor and memory;
Realized described in the computing device during computer-readable program at the multitask as described in claim 1-8 any one Step in reason method.
CN201711188624.0A 2017-11-24 2017-11-24 Multitasking method, application server and storage medium Active CN107832134B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711188624.0A CN107832134B (en) 2017-11-24 2017-11-24 Multitasking method, application server and storage medium
PCT/CN2018/083933 WO2019100654A1 (en) 2017-11-24 2018-04-20 Method and device for processing multiple tasks, application server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711188624.0A CN107832134B (en) 2017-11-24 2017-11-24 Multitasking method, application server and storage medium

Publications (2)

Publication Number Publication Date
CN107832134A true CN107832134A (en) 2018-03-23
CN107832134B CN107832134B (en) 2021-07-20

Family

ID=61653565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711188624.0A Active CN107832134B (en) 2017-11-24 2017-11-24 Multitasking method, application server and storage medium

Country Status (2)

Country Link
CN (1) CN107832134B (en)
WO (1) WO2019100654A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108614864A (en) * 2018-04-04 2018-10-02 中国银行股份有限公司 Bank transaction information processing method and processing device
CN108961039A (en) * 2018-07-02 2018-12-07 阿里巴巴集团控股有限公司 Transaction processing method, apparatus and system
CN108965424A (en) * 2018-07-10 2018-12-07 中国银行股份有限公司 A kind of method and device for business processing
WO2019100654A1 (en) * 2017-11-24 2019-05-31 平安科技(深圳)有限公司 Method and device for processing multiple tasks, application server and storage medium
CN112312482A (en) * 2020-10-23 2021-02-02 珠海格力电器股份有限公司 Building data management method, management device, building management system and storage medium

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017546A (en) * 2007-03-12 2007-08-15 中国建设银行股份有限公司 Method and device for categorical data batch processing
CN101093572A (en) * 2007-07-20 2007-12-26 中国建设银行股份有限公司 A preposition system and a centralized data processing system
CN102521925A (en) * 2011-12-08 2012-06-27 中国工商银行股份有限公司 Load balancing method and system of bank terminal device
CN103078911A (en) * 2012-12-27 2013-05-01 中国建设银行股份有限公司 Communication system for directly connecting bank and enterprise and communication method of communication system
CN103345423A (en) * 2013-07-03 2013-10-09 北京京东尚科信息技术有限公司 Method and system for processing asynchronous task
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN104461710A (en) * 2014-12-12 2015-03-25 北京国双科技有限公司 Method and device for processing tasks
CN104657212A (en) * 2015-02-13 2015-05-27 北京亚信数据有限公司 Task scheduling method and system
CN105224289A (en) * 2014-07-03 2016-01-06 阿里巴巴集团控股有限公司 A kind of action message matching process and equipment
CN105426240A (en) * 2015-11-13 2016-03-23 上海东方传媒技术有限公司 Service scheduling system and method
CN106095554A (en) * 2016-06-17 2016-11-09 中国银行股份有限公司 The method and device of batch data process is carried out in the most online stage
US20160364817A1 (en) * 2015-06-12 2016-12-15 Glenn Barber System, Method, and Apparatus for Utilizing Multi-Processing to Optimize Calculations of Licensable Properties
US20160364265A1 (en) * 2015-06-15 2016-12-15 International Business Machines Corporation Managed services coordinator
US20170004010A1 (en) * 2013-11-25 2017-01-05 Google Inc. File operation task optimization
CN106484524A (en) * 2015-08-28 2017-03-08 阿里巴巴集团控股有限公司 A kind of task processing method and device
CN106557363A (en) * 2016-12-05 2017-04-05 广发证券股份有限公司 A kind of system and method for big data task scheduling
CN106921515A (en) * 2016-06-29 2017-07-04 阿里巴巴集团控股有限公司 Business operation data processing method, device, electronic equipment, server and system
CN107038069A (en) * 2017-03-24 2017-08-11 北京工业大学 Dynamic labels match DLMS dispatching methods under Hadoop platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832134B (en) * 2017-11-24 2021-07-20 平安科技(深圳)有限公司 Multitasking method, application server and storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101017546A (en) * 2007-03-12 2007-08-15 中国建设银行股份有限公司 Method and device for categorical data batch processing
CN101093572A (en) * 2007-07-20 2007-12-26 中国建设银行股份有限公司 A preposition system and a centralized data processing system
CN102521925A (en) * 2011-12-08 2012-06-27 中国工商银行股份有限公司 Load balancing method and system of bank terminal device
CN103078911A (en) * 2012-12-27 2013-05-01 中国建设银行股份有限公司 Communication system for directly connecting bank and enterprise and communication method of communication system
CN103345423A (en) * 2013-07-03 2013-10-09 北京京东尚科信息技术有限公司 Method and system for processing asynchronous task
US20170004010A1 (en) * 2013-11-25 2017-01-05 Google Inc. File operation task optimization
CN105224289A (en) * 2014-07-03 2016-01-06 阿里巴巴集团控股有限公司 A kind of action message matching process and equipment
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN104461710A (en) * 2014-12-12 2015-03-25 北京国双科技有限公司 Method and device for processing tasks
CN104657212A (en) * 2015-02-13 2015-05-27 北京亚信数据有限公司 Task scheduling method and system
US20160364817A1 (en) * 2015-06-12 2016-12-15 Glenn Barber System, Method, and Apparatus for Utilizing Multi-Processing to Optimize Calculations of Licensable Properties
US20160364265A1 (en) * 2015-06-15 2016-12-15 International Business Machines Corporation Managed services coordinator
CN106484524A (en) * 2015-08-28 2017-03-08 阿里巴巴集团控股有限公司 A kind of task processing method and device
CN105426240A (en) * 2015-11-13 2016-03-23 上海东方传媒技术有限公司 Service scheduling system and method
CN106095554A (en) * 2016-06-17 2016-11-09 中国银行股份有限公司 The method and device of batch data process is carried out in the most online stage
CN106921515A (en) * 2016-06-29 2017-07-04 阿里巴巴集团控股有限公司 Business operation data processing method, device, electronic equipment, server and system
CN106557363A (en) * 2016-12-05 2017-04-05 广发证券股份有限公司 A kind of system and method for big data task scheduling
CN107038069A (en) * 2017-03-24 2017-08-11 北京工业大学 Dynamic labels match DLMS dispatching methods under Hadoop platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZIRAN PENG 等: "An optimal energy-saving real-time task-scheduling algorithm for mobile terminals", 《INTERNATIONAL JOURNAL OF DISTRIBUTED SENSOR NETWORKS》 *
曹仰杰 等: "众核处理器系统核资源动态分组的自适应调度算法", 《软件学报》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019100654A1 (en) * 2017-11-24 2019-05-31 平安科技(深圳)有限公司 Method and device for processing multiple tasks, application server and storage medium
CN108614864A (en) * 2018-04-04 2018-10-02 中国银行股份有限公司 Bank transaction information processing method and processing device
CN108961039A (en) * 2018-07-02 2018-12-07 阿里巴巴集团控股有限公司 Transaction processing method, apparatus and system
CN108961039B (en) * 2018-07-02 2023-03-31 创新先进技术有限公司 Transaction processing method, device and system
CN108965424A (en) * 2018-07-10 2018-12-07 中国银行股份有限公司 A kind of method and device for business processing
CN108965424B (en) * 2018-07-10 2021-02-26 中国银行股份有限公司 Service processing method and device
CN112312482A (en) * 2020-10-23 2021-02-02 珠海格力电器股份有限公司 Building data management method, management device, building management system and storage medium
CN112312482B (en) * 2020-10-23 2023-02-28 珠海格力电器股份有限公司 Building data management method, management device, building management system and storage medium

Also Published As

Publication number Publication date
WO2019100654A1 (en) 2019-05-31
CN107832134B (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN107832134A (en) multi-task processing method, application server and storage medium
CN100465900C (en) information system, load control method, load control program, and recording medium
US9262138B2 (en) Adding directives for JavaScript files directly into source code in a multi-tenant database environment
CN101151593B (en) Autonomic computing: management agent utilizing action policy for operation
US8423950B2 (en) Method and apparatus for optimizing performance and network traffic in distributed workflow processing
CN105556475A (en) Request processing techniques
CN101535944A (en) Scalable user clustering based on set similarity
CN108846632A (en) Thread processing method and device
CN109669776A (en) Processing method, the device and system of Detection task
US7302681B2 (en) Method and system for customized information handling system support updates
JPH05505263A (en) Routing transaction commands
CN107819825A (en) A kind of service scheduling method, device and electronic equipment
CN112417503A (en) Method and device for authorizing post authority, electronic equipment and storage medium
CN110555019A (en) Data cleaning method based on service end
CN105872082B (en) Fine granularity resource response system based on container cluster load-balancing algorithm
JP4641506B2 (en) Session management program, session management method, and session management apparatus
CN113377817A (en) Data processing method, system, device and storage medium
CN101065732A (en) Computer system and information processing method
CN106257520A (en) Resolve answer method and system
US10339037B1 (en) Recommendation engine for recommending prioritized performance test workloads based on release risk profiles
CN113642836A (en) Callback event processing method and device, computer equipment and storage medium
CN111343101B (en) Server current limiting method, device, electronic equipment and readable storage medium
CN1647037A (en) System and method for client-side locale specific numeric format handling in a web environment
CN113542387B (en) System release method and device, electronic equipment and storage medium
CN112000945B (en) Authorization method, device, equipment and medium based on artificial intelligence

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
GR01 Patent grant
GR01 Patent grant