Specific embodiment
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to this specification embodiment
Technical solution be described in detail, it should be understood that the specific features in this specification embodiment and embodiment are to this explanation
The detailed description of book embodiment technical solution, rather than the restriction to this specification technical solution, in the absence of conflict,
Technical characteristic in this specification embodiment and embodiment can be combined with each other.
In a first aspect, this specification embodiment provides a kind of task processing system, referring to FIG. 1, including task processing dress
Set 101 and multiple application servers 102, in which:
Task Processing Unit 101 is used to obtain the mission bit stream of waiting task, and user's mark in task based access control information
Know, mission bit stream is distributed to the first application server corresponding with user identifier, wherein the first application server belongs to multiple
Application server, the server identification of the second application server comprising creation waiting task in mission bit stream and to be processed
The corresponding user identifier of task is provided with the processing module for handling waiting task in the second application server;
First application server receives mission bit stream, and task based access control information generates to-be-processed task list, and will be to be processed
Task list is broadcasted to multiple application servers, carries server identification in to-be-processed task list;
Each application server in multiple application servers receives to-be-processed task list, and in confirmation waiting task
After server identification and local server in list identify unanimously, waiting task is handled.
Wherein, task processing system further includes control centre 103, and control centre 103 is for periodically triggering asynchronous
Business, notice Task Processing Unit 101 handle preset task list in waiting task so that Task Processing Unit 101 from
The mission bit stream of waiting task is obtained in preset task list.
Task processing system further includes communication device, and communication device is used to obtain waiting task in Task Processing Unit
Before mission bit stream, the service request that user terminal is sent is received, and notify the second application server corresponding with service request
Create waiting task corresponding with service request.
Wherein, the second application server creates corresponding with service request wait locate after receiving the notice of communication device
Reason task adds server identification into the mission bit stream of waiting task.
Specifically, in the present embodiment, receiving the service request that user terminal is sent by communication device first, and notify
Corresponding second application server creates waiting task corresponding with service request, specifically, user terminal sends some industry
Business request, system are distributed to corresponding second application server, and the second application server is created for the service request of user
Waiting task is built, leads to task processing failure to solve the problems, such as that each application server code logic is inconsistent, second
When application server creates service request corresponding waiting task, second server has the processing for handling the waiting task
Module (code logic), the server identification of oneself is added in the mission bit stream of waiting task, and by waiting task
It stores with mission bit stream into preset task table.
Then, control centre 103 periodically triggers asynchronous task, and notice Task Processing Unit 103 handles preset task
The waiting task of default number of branches in table.Such as: 1000 waiting tasks of scheduling every time.It notifies at Task Processing Unit 103
Manage the waiting task for the default number of branches specified in preset task table.
In turn, Task Processing Unit 103, after the mission bit stream for receiving the waiting task that control centre 103 is sent, into
Three layers of distribution of row task.Firstly, carrying out first layer distribution, the user identifier in task based access control information distributes mission bit stream
To the first application server corresponding with the user identifier.Then, second layer distribution is carried out, the first application server is based on distribution
The mission bit stream arrived reads corresponding waiting task by preset strategy, generates to-be-processed task list, waiting task is arranged
Table is broadcasted to all application servers.Finally, third layer distribution is carried out, each application server processes waiting task in system
Consistent waiting task is identified with local server in list, abandons and identifies inconsistent to be processed with local server
Business.In this manner it is possible to which task list to be treated is broadcast to all application servers, the application clothes of task list are received
Business device only handles the task of oneself creation, other tasks is abandoned, to guarantee the consistency of logic, it is ensured that the success of task processing
Rate.
Task processing system in the present embodiment can be a service system of opening an account, and waiting task is task of opening an account,
Specifically, the present embodiment is mainly carried out in detail with opening an account scene to the task processes of the task processing system in the present embodiment
Description.
Referring to FIG. 2, the task processing system of the present embodiment is applied to schematic diagram of a scenario of opening an account.Positioned at the user of user side
Terminal 1,2 ... n are all sent to task processing system (that is: service system of opening an account), by opening an account when initiating account opening request
Service system is converted to asynchronous task, and the concurrent quantity of control task initiates account opening request business to financial institution server.User
Terminal 1, the quantity of 2 ... n can be mass users in the concentration account opening request of same period, can synchronize the service of being opened an account
System receives, and can also be received in real time with all the period of time.Service system of opening an account mainly includes control centre 103 and task processing dress
It sets, for handling the account opening request of these user terminals 1,2 ... n, by asynchronous thread by each user terminal 1,2 ... n
Account opening request be stored in preset task table.Then it the time cycle configured according to control centre 103, periodically triggers different
Step task transfers to Task Processing Unit to be successively distributed to the application in platform to transfer the account opening request saved in preset task table
Server is obviously improved and is on the one hand can distribute task balance into platform and go to execute on all application servers
On the other hand the ability for disposed of in its entirety of uniting controls to financial institution server and initiates the task quantity of business of opening an account, alleviate gold
Melt the processing load of authority server.
Firstly, communication device receives the account opening request information that user terminal is sent.
Wherein, initiating the quantity of the user terminal of account opening request may be thousands of or even hundreds of millions grades of mass users,
The time that user terminal initiates account opening request simultaneously is also accurately to estimate, and in one embodiment, can be reception
The account opening request that multiple user terminals are sent respectively, specifically, wherein can receive simultaneously or in a period of time
It concentrates and receives a large amount of account opening request information, furthermore it is also possible to receive in the same user terminal due to user misoperation, network
Multiple account opening request information are initiated in the factors such as delay or unstable networks, repetition.Magnanimity is opened in such situation natural zone
Synchronizing for family request is accepted and high concurrent processing.
At this point it is possible to retransmit limitation by payment APP setting in subscriber terminal side, when monitoring that user sends out in a short time
When playing multiple account opening request (such as: multiple account opening requests are initiated in repetition), limitation account opening request information is sent out, and page prompts are used
Family operation is excessively frequent, postpones attempting to open an account.Thus it can also mitigate the clothes of opening an account of financial institution server and application this method
The request of business system is born, while also having been prevented some criminals or malicious user and having been made by way of flow storm to system
At request congestive collapse or system is damaged.
Then, account opening request is distributed to corresponding second application server, the second application server is directed to account opening request
Task of opening an account is created, the server identification of oneself is added in the mission bit stream of the task of opening an account, the task of opening an account is stored in
In preset task table.
Wherein it is possible to first verify to the account opening request information received, the parameter transaction in account opening request is verified
The corresponding task of opening an account of account opening request information that verification passes through is stored in preset task table by legitimacy.
Further, verification may include the proof of identity to solicited message of opening an account, such as: to user identity card number, identity card
The information such as photo, passport No., passport photograph, user's recent photograph, bank's card number and/or date of birth carry out basic verification core
It looks into.Specifically such as: identification card number digit/rule, passport No. digit/rule, date of birth and identification card number matching degree pass through figure
Piece means of identification detects identity card picture/passport photograph true and false, and whether user's recent photograph is face front elevation piece etc..To
Guarantee that fictitious users open up system financial risks caused by finance account, further prevented also from issuing financial institution server
False account opening request information overflow.
Still further, verification can also include security verification, such as: to opening an account, solicited message carries out necessary data peace
Full inspection is surveyed, and to prevent being tampered by special field in information or reserved extended field, causes to carry malicious code, to system safety
Cause very big hidden danger.
Wherein, preset task table only saves the corresponding task of opening an account of account opening request information that verification passes through.Into one
Step, abandons unverified account opening request information, and corresponding user terminal account opening request verification is notified not pass through,
Please user whether verify fill message of opening an account again accurate.
Furthermore it is possible to carry out blackening list processing for the account opening request for verifying failure repeatedly information, extraction is unsuccessfully opened an account
The corresponding UID of solicited message and fill message deposit blacklist log information of opening an account, simultaneity factor side issues control message, limits
The use of APP is paid on the user terminal.
Further, it verifies the corresponding task of opening an account of account opening request information passed through to be stored in after preset task table, lead to
T unit returns to the message informing that user terminal account opening request has successfully been accepted.User can be opened an account with timely learning and be asked as a result,
The no message successfully accepted of Seeking Truth will not cause under user experience because of the handling duration of financial institution server is uncertain
Drop.
Still further, the corresponding task of opening an account of account opening request information is saved in preset task table by asynchronous thread
In.Make the account opening request that may largely synchronize the mass users terminal sent all be converted to asynchronous task in this way, waits subsequent
Handled again after triggering so that time point compare concentration open an account business application without any confusion periodically by batch at
Reason guarantees that whole system task processing load balancing is stablized, and the influence to financial institution server business burden is unlikely to aggravate.
Then, control centre 103 periodically triggers asynchronous task, extracts the task of opening an account in preset task table.
Wherein, it is responsible for periodically triggering asynchronous task by control centre 103, asynchronous task is stored in default for processing
Task of opening an account in task list, realize account opening request synchronize accept, asynchronous process.
Further, the CRON expression formula configured according to control centre 103, periodically triggering asynchronous task.Specific ratio
Such as, there is configuration file in control centre 103, based on the CRON expression formula in configuration file, comes according to the time cycle of agreement
Execute the transmission of asynchronous task triggering message.Asynchronous task triggering message is sent to Task Processing Unit 103, corresponding preset task
Task of opening an account in table.
Still further, the asynchronous task quantity of each periodicity sending is arranged according to configuration file by control centre 103.
Asynchronous task can correspond to the processing of an account opening request information, can also correspond to the processing of a plurality of account opening request information.Every time
The asynchronous task quantity of transmission may be set to be one or certain amount of more than one piece.It is mentioned according to the configuration requirement in asynchronous task
The account opening request for taking respective numbers in preset task table transfers to Task Processing Unit 103 to be distributed processing.
Wherein, Task Processing Unit 103 includes receiving unit, the first sub-unit, the second Dispatching Unit, third distribution list
Member.Further, according to the expansion of business scale, business model extension more diversity etc. considers, Task Processing Unit 103 can be with
The processing unit of the four, 5th or more layers is expanded to, is appointed so that each application server in Task Processing Unit 103 is in
Business distribution is balanced, the state of load stabilization.Further, Task Processing Unit 103 can be the application server of multilayered structure
Cluster.
By taking above-mentioned three layers of Dispatching Unit as an example, first layer is 100 that Task Processing Unit 101 indicates control centre 103
A task of opening an account is split by user identifier.Specifically, according to the numberical range of UID in mission bit stream of opening an account by account opening request
Information is split, and the account opening request information after fractionation is distributed in multiple application servers according to UID.
Such as: the data of opening an account of user are according to the dimension of user identifier UID, and inverse two, three are respectively stored into 100 numbers
According in 100 tables in library.Assuming that system provides finauth_rz_00~finauth_rz_99 100 databases in total, it is corresponding
There are fa_task_00~fa_task_99 100 task lists in total.If the user identifier 208800000190 of active user, by
It is 19 in two or three reciprocal, so the related data of the corresponding task of opening an account of the user is stored to finauth_rz_19 database
Fa_task_19 table in.The corresponding user identifier UID=2088000001 of 100 tasks of opening an account that control centre 103 is dispatched
To 2088000991, according to UID inverse 23 two, 100 parts can be split as.
It is answered specifically, can be distributed the mission bit stream of opening an account for the task of opening an account to specified first according to values match mode
Use server.The range of the manageable user of every application server is controlled by a unit configuration center,
If the process range of application server A is 00, then the mission bit stream of opening an account that user identifier UID 23 two reciprocal are 00 divides
Dispensing server A.
It is, of course, also possible to using random ways of distribution.Such as: including 200 application servers, random selection 100 the
One application server, the number of a 00-99 is randomly assigned for each first application server, and receive the number first answers
The corresponding task of opening an account of matched user identifier can be handled with server.If application server B is assigned to number 01, indicate to answer
It is UID=that user identifier, which can be read, from the fa_task_01 table of finauth_rz_01 database with server B
2088000011 task data of opening an account carries out task processing.
Then second layer distribution is carried out.The mission bit stream of opening an account that each first application server is just assigned to, reads use
Family mark, the database for determining that carry out task is fished for according to inverse 23 two of user identifier, it is assumed that mission bit stream of opening an account
Inverse 23 two of user identifier be 03, which can be from the fa_task_03 of finauth_rz_03 database
The task of opening an account is carried out in table to fish for, and can read the task of opening an account of preset quantity (such as: 5,10) every time.For what is read
It opens an account task, generation is opened an account task list, and all application servers of the whole network are broadcasted to.In the specific implementation process, in advance
If quantity can be set according to actual needs, here, the application is with no restrictions.
Before being broadcasted, the first application server needs to judge current environment, if current environment is to develop under line
Environment is developed in environment due to lower online, and developer can be according to also according to business demand application deployment server, each application
The processing function of server is not reciprocity.As shown in schematic diagram 3, if three business branch codes are deployed in A, B, C tri- respectively
Platform application server creates the two class family of A bank that task ID is 1 on tri- servers of A, B, C respectively and opens an account, and task ID is
2 two class family of A bank inquiry, the two class family of B bank that task ID is 3 are opened an account task, the task that three layers of task will be fished for when distributing
It is randomly assigned, if task ID 2 is assigned to application server C, task ID 3 is assigned to application server A, due to A bank and B
The logic of opening an account of bank is inconsistent, therefore the processor of application server A and application server C are also different, and can be led in this way
The application server A and application server C that receive task is caused not to have suitable processor to handle task, due to creating task
Application server be deploy handle the task processing routine.Therefore, it in online lower exploitation environment, just needs task point
Dispensing creates the application server of the task.In the present embodiment, distributed broadcast mode can be used, task list is sent
Extremely multiple host nodes, then multiple application servers are broadcasted to by each host node.If current environment is to develop ring under line
The corresponding task list of task of opening an account read is sent to all application servers of the whole network by border, the first application server.
Finally, third layer distribution is carried out, if online lower exploitation environment, each application server are receiving task column
After table, each task in the task list is looped through, judges whether task is created by oneself, i.e., if waiting task arranges
Server identification and local server mark in table in the mission bit stream of waiting task is consistent, shows that the task is by itself
Creation, obtains the corresponding task data of the task and is handled.It is abandoned if task is not by itself creation, by this wide
Broadcast mode realizes that the task of various creations is respectively handled.
Fig. 4 is please referred to, in original task mould after using the system in the present embodiment for the example in earlier figures 3
Host field is increased on the basis of type, for recording server identification, which is created by which platform server
It builds, three tasks before can be packaged as task list and be sent to host node application server, then host node application service
Device can realize the broadcast of corresponding range interior application server so that each application server can get full dose 1,2,
3 three tasks, each server judge whether the Host of task is consistent with the Host of current server, handle if consistent,
It is inconsistent, it abandons, executes task to realize by the server of creation task.Solves different server code flow not
Unanimously, receiving for task does not handle or handles the incorrect problem of logic.
If current environment is not to develop environment under line, can be random again by remote method call by reading for task
It distributes in application server, application server carries out different message assemblings according to different task types, passes through gateway
The task for result queries of opening an account or open an account is sent to financial institution server.
Further, the result that can also will open an account returns to user terminal.Wherein, open an account result information can with active push to
Corresponding user terminal, can also wait user terminal initiation open an account result queries request when, then the result that will open an account returns to use
Family terminal.The situation of system data flow load imbalance is effectively prevented in this way.
Fig. 5 is the system flow chart that should use a specific example.As shown, finsignweb is user terminal
APP is paid, finauth is the application server in the service system of opening an account in above-described embodiment two, and major responsibility includes: face
Signing to mechanism;Flow services layout relevant to institutional capacity in curstomer-oriented class authentication, core body and subscription request, packet
Include: four element of mechanism authentication, three elements authentication, the verification of the more certificate checking features of mechanism, mechanism short message, mechanism exempt from the abilities such as label and compile
Row brings together.Service system of opening an account is made of the finauth device clusters of three layers of distribution mechanisms.User passes through first
Finsignweb will fill in the solicited message that the applications such as bank card information, identity information are opened an account and be sent to three layers of distribution mechanisms
The service system of opening an account of finauth application server cluster.By system check information legitimacy, the account opening request letter passed through is verified
Breath saves account opening request information into preset task table by asynchronous thread.Asynchronous of 103 clocked flip of control centre in system
Business, handles asynchronous task of opening an account by Task Processing Unit 103, calls three layers of distribution mechanisms processing asynchronous task, asks for opening an account
It asks and is packaged into message bank is sent to by gateway, bank, which can feed back, accepts result.
Further, service system of opening an account when receiving account opening request can by account opening request information by asynchronous thread by its
Asynchronous task is converted to, asynchronous task contains task type, traffic ID, type of service, task status, task priority, touching
Time, number of retries, the parameter informations such as end time are sent out, while the parameter information in asynchronous task is converted into JOSN format and is deposited
It stores up in extension information (as shown in Figure 6), therefore this Task Scheduling Model can be abstracted as general asynchronous task, without
Need to be concerned about specific business meaning, when control centre 103 triggers the processing of three layers of task, the fishing for of the task can be according to
Task type finds suitable task processor and carrys out processing business, has had application of opening an account in the project at two class family of bank,
It opens an account the task of inquiry.Future can also expand other more asynchronous task processors according to the needs of business, at task
Mutually isolated between reason device, newly-increased business will not impact original business.So that asynchronous task has good expansion
Exhibition ability.
It is the scheme one specific asynchronous task scheduling exemplary diagram of this specification shown in Fig. 7.Control centre 103 is according to matching
The CRON expression formula set, periodically sends a message to message center, and message center is by message dilivery to finauth application service
Device cluster, in first layer distribution, Task Processing Unit 101 is according to the UID process range of current application deployment unit to opening an account
Solicited message is split, and the account opening request information of fractionation distributes other of this application deployment unit by remote method call
On finauth application server.The equipment component being arranged in cluster is only that a certain range of user terminal is serviced, example
Such as: user terminal UID=2088000001 to 2088000991, it is 23 two reciprocal according to UID, 100 parts can be split as, often
The range of the manageable user of platform equipment is controlled by a unit configuration center, if current finauth is answered
It is 00-19 with the process range of server A, then meet condition just refers to that user UID 23 two reciprocal are to meet 00-19
Section.
In second layer distribution, the finauth application service of the account opening request information of Task Processing Unit transmission is received
Device, according in account opening request information UID and status information the task of the condition that meets is extracted from corresponding database, generate and appoint
Business list, task list are broadcasted to each application server.
In third layer distribution, each application server is further according to the extracting oneself creation from the task list of the task
It is handled.Specifically, application server carries out message assembling according to task, result of opening an account or open an account is sent by gateway
The task of inquiry is to financial institution server.
Successful task is accepted for opening an account, system can execute asking for result queries of opening an account in next task schedule
It asks, updates task status after getting result of explicitly opening an account, and the result information that will open an account is written back in traffic table, specifically
Ground is possibly stored in a table of a database, which can be used for storing user and take to banking institution as traffic table
Business device application is opened an account result information, such as: account is stored after opening an account successfully.
System in through this embodiment can be wide by task list to be treated when carrying out three layers of task distribution
All application servers are multicast to, the application server for receiving task list only handles the task of oneself creation, abandons other
Business, to guarantee the consistency of logic, it is ensured that the success rate of task processing.
Second aspect, based on the same inventive concept, this specification embodiment provide a kind of task processing method, are applied to appoint
In processing system of being engaged in, the task processing system includes Task Processing Unit and multiple application servers, referring to FIG. 8, described
Task processing method includes the following steps:
S801: the Task Processing Unit obtains the mission bit stream of waiting task, and based in the mission bit stream
The mission bit stream is distributed to the first application server corresponding with the user identifier, wherein described first by user identifier
Application server belongs to the multiple application server, answers in the mission bit stream comprising creating the second of the waiting task
With the server identification and the corresponding user identifier of the waiting task of server, it is arranged in second application server
There is the processing module for handling the waiting task;
S802: first application server receives the mission bit stream, generates to be processed based on the mission bit stream
It is engaged in list, and the to-be-processed task list is broadcasted to the multiple application server, taken in the to-be-processed task list
With the server identification;
S803: each application server reception to-be-processed task list in the multiple application server, and
After confirming that the server identification and local server in the to-be-processed task list identify unanimously, to described to be processed
Business is handled.
In a kind of optional way, the task processing system further includes control centre, the method also includes:
The control centre periodically triggers asynchronous task, notifies the Task Processing Unit processing preset task list
In waiting task so that the Task Processing Unit obtains the task of waiting task from the preset task list
Information.
In a kind of optional way, the task processing system further includes communication device, is obtained in the Task Processing Unit
Before taking the mission bit stream of waiting task, the method also includes:
The communication device receives the service request that user terminal is sent, and notifies corresponding with the service request described
Second application server creates waiting task corresponding with the service request;
Second application server creates waiting task corresponding with the service request, adds the server mark
Know into the mission bit stream of the waiting task.
In a kind of optional way, the control centre periodically triggers asynchronous task, comprising: control centre's root
According to the CRON expression formula of configuration, the asynchronous task is periodically triggered.
In a kind of optional way, the Task Processing Unit, will be described based on the user identifier in the mission bit stream
Mission bit stream is distributed to the first application server corresponding with the user identifier, comprising:
The Task Processing Unit splits the mission bit stream according to the numberical range of the user identifier, will tear open
Mission bit stream after point is distributed in corresponding first application server.
In a kind of optional way, first application server receives the mission bit stream, is based on the mission bit stream
Generate to-be-processed task list, comprising:
First application server reads the waiting task from the database that the mission bit stream indicates, is based on
The waiting task read generates to-be-processed task list.
In a kind of optional way, first application server broadcasts the to-be-processed task list to the multiple
Application server, comprising:
First application server determines current environment, judges whether the current environment is that environment is developed under line, such as
Fruit is to broadcast the to-be-processed task list to the multiple application server.
In a kind of optional way, first application server judges whether the current environment is to open under line described
After hair ring border, the method also includes:
First application server determines the current environment not and is and develop under ambient conditions under line, will read to
Processing task is distributed to the multiple application server at random.
In a kind of optional way, the waiting task is task of opening an account.
The detailed process of task processing in the present embodiment elaborates in aforementioned first aspect embodiment, specifically may be used
Referring to corresponding content in first aspect embodiment, here, the application does not repeat them here.
Second aspect, based on the same inventive concept, this specification embodiment provide a kind of task processing method, please refer to figure
8, include the following steps:
S801: receiving the mission bit stream for the waiting task that control centre is sent, and includes creation pair in each mission bit stream
Answer the server identification of waiting task;
S802: based on the user identifier in each mission bit stream, the mission bit stream is distributed to multiple application servers;
S803: controlling in the multiple application server that each application server is based on the mission bit stream being assigned to, by
Two preset strategies read corresponding waiting task, generate to-be-processed task list, by the to-be-processed task list broadcast to
All application servers;
S804: one is identified with local server in to-be-processed task list described in each application server processes of control
The waiting task of cause.
In a kind of optional way, the user identifier based in each mission bit stream distributes the mission bit stream
To multiple application servers, comprising:
The mission bit stream is split according to the numberical range of the user identifier;
Mission bit stream after fractionation is distributed in corresponding application server.
In a kind of optional way, each application server is based on being assigned in the multiple application server of control
Mission bit stream, read corresponding waiting task by the second preset strategy, comprising:
Control the database that each application server is indicated from the mission bit stream being assigned in the multiple application server
The middle waiting task for reading preset quantity.
It is described to broadcast the to-be-processed task list to all application servers in a kind of optional way, comprising:
Determine current environment;
Judge whether the current environment is to develop environment under line;
If so, broadcasting the to-be-processed task list to all application servers.
In a kind of optional way, it is described judge whether the current environment is to develop environment under line after, the side
Method further include:
If the current environment is not to develop environment under line, each application server will in the multiple application server
The waiting task read is distributed to multiple application servers at random.
In a kind of optional way, the waiting task is task of opening an account, and the task of opening an account is stored in preset task
In table, the control centre periodically triggers asynchronous task, extracts the task in the task of opening an account in the preset task table
Information.
The detailed process of task processing in the present embodiment elaborates in aforementioned first aspect embodiment, specifically may be used
Referring to corresponding content in first aspect embodiment, here, the application does not repeat them here.
The third aspect, based on the same inventive concept, this specification embodiment provide a kind of task processing method, applied to answering
With server, referring to FIG. 9, including the following steps:
S901: the server identification of the application server is added to the target and waited for by creation target waiting task
In the mission bit stream of processing task;
S902: receiving to-be-processed task list, and appointing for each waiting task is stored in the to-be-processed task list
Business information;
S903: the mission bit stream of each waiting task in the to-be-processed task list is traversed, is determined in mission bit stream
The consistent target waiting task of server identification of server identification and the application server;
S904: the target waiting task is handled.
Specifically, the content as described in aforementioned first embodiment, application server needs are asked in the business for receiving appointment
When asking, after creating target waiting task, the server identification of the application server is added to the target waiting task
Mission bit stream in, show the target waiting task for oneself creation.The target waiting task can be distributed to one
One application server carries out task and fishes for, when the task that first application server is fished for includes the target waiting task
Afterwards, a to-be-processed task list is generated, the mission bit stream of the target waiting task is carried in the to-be-processed task list,
The server identification for creating the application server of the target waiting task, the first application service are just contained in the mission bit stream
Device can broadcast to-be-processed task list to all application servers.In turn, it is received in current application server and includes
After the to-be-processed task list of the target waiting task, it can be believed by extracting the task of each waiting task in task list
Breath matches and identifies consistent target waiting task with local server, handles the target waiting task.It abandons
Other are not the tasks of oneself creation, to guarantee the consistency of logic, it is ensured that the success rate of task processing.
Further, if the application server in the present embodiment is chosen to be the first server that carry out task is fished for,
The mission bit stream that Task Processing Unit distribution can be received goes to generate to-be-processed task list based on the mission bit stream.Specifically,
The waiting task that preset quantity can be fished for from the database that mission bit stream indicates generates to-be-processed task list, to be processed
Each waiting task carries mission bit stream in task list, and the application service for creating the task is contained in the mission bit stream
The server identification of device.Then, which can be broadcasted the application server all to the whole network by application server,
Each application server can handle in to-be-processed task list and identify consistent waiting task with local server, abandon with
Local server identifies inconsistent waiting task.
Fourth aspect, based on the same inventive concept, this specification embodiment provide a kind of application server, please refer to figure
10, including such as lower unit:
Creating unit 1001 adds the server identification of the application server for creating target waiting task
Into the mission bit stream of the target waiting task;
Receiving unit 1002, for receiving to-be-processed task list, be stored in the to-be-processed task list it is each to
The mission bit stream of processing task;
Determination unit 1003, for traversing the mission bit stream of each waiting task in the to-be-processed task list, really
Determine the consistent target waiting task of server identification of server identification and the application server in mission bit stream;
Processing unit 1004, for handling the target waiting task.
The detailed process of application server progress task processing in the present embodiment is in aforementioned third aspect embodiment
It is discussed in detail, here, the application does not repeat them here.
5th aspect, is based on inventive concept same as task processing method in previous embodiment, the present invention also provides one
Kind of Task Processing Unit as shown in figure 11, including memory 1104, processor 1102 and is stored on memory 1104 and can be
The computer program run on processor 1102, processor 1102 realize either task processing method above when executing program
The step of method.
Wherein, in Figure 11, bus architecture (is represented) with bus 1100, and bus 1100 may include any number of mutual
The bus and bridge of connection, bus 1100 will include that the one or more processors represented by processor 1102 and memory 1104 represent
The various circuits of memory link together.Bus 1100 can also will such as peripheral equipment, voltage-stablizer and power management electricity
Various other circuits on road or the like link together, and these are all it is known in the art, therefore, the method in the present embodiment
No longer it is described further.Bus interface 1106 provides between bus 1100 and receiver 1101 and transmitter 1103
Interface.Receiver 1101 and transmitter 1103 can be the same element, i.e. transceiver, provide for over a transmission medium and respectively
The unit of kind other devices communication.Processor 1102 is responsible for management bus 1100 and common processing, and memory 1104 can be with
It is used for the used data when executing operation of storage processor 1102.
6th aspect, based on the inventive concept with task processing method in previous embodiment, the present invention also provides a kind of meters
Calculation machine readable storage medium storing program for executing, is stored thereon with computer program, and task processing side above is realized when which is executed by processor
The step of either method method.
This specification is referring to the method, equipment (system) and computer program product according to this specification embodiment
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute
In setting for the function that realization is specified in one or more flows of the flowchart and/or one or more blocks of the block diagram
It is standby.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of equipment, the commander equipment realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of this specification has been described, once a person skilled in the art knows basic wounds
The property made concept, then additional changes and modifications may be made to these embodiments.So the following claims are intended to be interpreted as includes
Preferred embodiment and all change and modification for falling into this specification range.
Obviously, those skilled in the art can carry out various modification and variations without departing from this specification to this specification
Spirit and scope.In this way, if these modifications and variations of this specification belong to this specification claim and its equivalent skill
Within the scope of art, then this specification is also intended to include these modifications and variations.