CN109120706A - Business scheduling method and system - Google Patents
Business scheduling method and system Download PDFInfo
- Publication number
- CN109120706A CN109120706A CN201810992919.1A CN201810992919A CN109120706A CN 109120706 A CN109120706 A CN 109120706A CN 201810992919 A CN201810992919 A CN 201810992919A CN 109120706 A CN109120706 A CN 109120706A
- Authority
- CN
- China
- Prior art keywords
- service
- information
- subtask
- sub
- service information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000007246 mechanism Effects 0.000 claims description 17
- 238000012545 processing Methods 0.000 abstract description 37
- 230000003993 interaction Effects 0.000 abstract description 6
- 230000005540 biological transmission Effects 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 12
- 230000002159 abnormal effect Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 238000010168 coupling process Methods 0.000 description 5
- 238000005859 coupling reaction Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000009826 distribution Methods 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005194 fractionation Methods 0.000 description 2
- 239000012634 fragment Substances 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 206010019233 Headaches Diseases 0.000 description 1
- 235000019580 granularity Nutrition 0.000 description 1
- 231100000869 headache Toxicity 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of business scheduling method and systems.Wherein, this method comprises: receiving first service information;It determines corresponding first service sub-system of first service information, and first service information is sent to the first service sub-system;Wherein, the first service sub-system is the first subtask for realizing the corresponding service of first service information for executing corresponding first subtask, the first subtask.The present invention solves data interaction complexity between service dispatch system and Service Processing Unit, the technical problem that data transmission efficiency is lower and business processing efficiency is lower caused by processing data are more.
Description
Technical field
This application involves computer fields, in particular to a kind of business scheduling method and system.
Background technique
In the prior art, generally existing such as to lack that distributed treatment ability, tool degree be low, operation management is not united
One, asynchronous transaction ability is poor, only supports the problems such as single backstage.In service dispatch and business procession, when a service is adjusted
When degree module needs to dispatch the service request that multiple Service Processing Modules receive service dispatch module and handles, need to
Each business module sends related data, so that corresponding Service Processing Module handles data.And each business module
When needing to be implemented the related service of multiple service dispatch, need to receive the service request that each service dispatch module is sent.Work as number
When according to measuring larger, it is easy to appear data jamming, situations such as surge situation of trading, data exception, the processed efficiency of service request
It is lower.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the present application provides a kind of business scheduling method and system, at least to solve service dispatch system and business
Data interaction is complicated between processing unit, data transmission efficiency caused by processing data are more is lower and business processing efficiency compared with
Low technical problem.
According to the one aspect of the embodiment of the present application, a kind of business scheduling method is provided, this method is by being arranged extremely
Service routing between a few service dispatch system and service sub-system is realized, comprising: is received and is adjusted from least one service
The first service information of degree system;It determines corresponding first service sub-system of first service information, and first service information is sent out
It send to the first service sub-system;Wherein, the first service sub-system is real for executing corresponding first subtask, the first subtask
The subtask of the existing corresponding service of first service information.
Further, it is determined that corresponding first service sub-system of first service information, comprising: according to preset rules determine with
Corresponding first service sub-system of first service information, preset rules are at least one of: industry belonging to first service information
Service type;Realize the functional module of first service information;The realization mechanism of first service information.
Further, the first service sub-system includes the identical node of multiple functions;First service information is sent to
One service sub-system includes: that first service information is sent to the node that surplus resources are most in the first service sub-system.
Further, the first subtask determines in the following manner, and the first service sub-system determines first from subtask
Service sub-system supports the first subtask executed;For the subtask that the first service sub-system refusal executes, the first business
The corresponding second service information in subtask that first service sub-system refusal executes is sent to service routing by system.
Further, the first service sub-system executes the first subtask and whether judges the corresponding service of first service information
It is performed and finishes, if having not been executed, it is determined that second service information, and second service information is sent to service routing,
In, the corresponding service of second service information is the corresponding remaining service not being performed of first service information.
Further, service routing receives second service information, according to the determination of second service information and second service information
Corresponding second service sub-system, and second service information is sent to the second service sub-system;Wherein, the second service sub-system
For executing corresponding second subtask, the second subtask is the subtask for realizing the corresponding service of second service information.
Further, the abnormal subtask for executing node of the corresponding service of first service information is obtained;To service dispatch
System sends real-time compensation request, and real-time compensation request is for requesting all execution of the corresponding service of cancellation first service information
The subtask crossed.
Further, the compensation result of real-time compensation is monitored, if real-time compensation fails, to service dispatch system
Send asynchronous compensation request, wherein asynchronous compensation are as follows: mend service subtask periodically corresponding to first service information
It repays.
Further, if real-time compensation fails, asynchronous compensation request is sent to service dispatch system, comprising: if in real time
The frequency of failure of compensation is more than preset times, then sends asynchronous compensation request to service dispatch system.
Further, after service dispatch system receives asynchronous compensation request, compensating instruction is sent to service routing,
In, the compensation sequence of preset asynchronous compensation is carried in compensating instruction.
According to the other side of the embodiment of the present application, a kind of service scheduling system is provided, comprising: service dispatch system
System determines database corresponding with first service information, leads to for obtaining first service information, and according to first service information
It crosses the database and first service information is sent to service routing;Service routing comes from least one service dispatch for receiving
The first service information of system determines corresponding first service sub-system of first service information, and first service information is sent
To the first service sub-system, wherein the first service sub-system is to realize for executing corresponding first subtask, the first subtask
First subtask of the corresponding service of first service information;First service sub-system receives first service information, and executes corresponding
Subtask.
Further, above system further include: the second service sub-system, for obtaining the second service of service routing transmission
Information, and corresponding second subtask is executed, wherein the corresponding service of first service information includes that second service information is corresponding
Service.
Further, the first service sub-system includes: one or more child nodes, and multiple child nodes are mutually backups.
The application also provides a kind of storage medium, and storage medium includes the program of storage, wherein controls in program operation
Business scheduling method where storage medium more than equipment execution.
The application also provides a kind of processor, and processor is for running program, wherein the industry more than executing when program is run
Business dispatching method method.
Service routing provided by the present application by being arranged between at least one service dispatch system and service sub-system
Receive the first service information from least one service dispatch system;Determine the corresponding first business subsystem of first service information
System, and first service information is sent to the first service sub-system;Wherein, the first service sub-system is for executing corresponding first
Subtask, the first subtask are the subtask for realizing the corresponding service of first service information.It realizes and reduces service dispatch system
The data volume of processing, the effect of improve data transfer efficiency solve data between service dispatch system and Service Processing Unit
Interaction is complicated, the technical problem that data transmission efficiency is lower and business processing efficiency is lower caused by processing data are more.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the flow chart according to a kind of business scheduling method of the embodiment of the present application;
Fig. 2 is the structural schematic diagram according to a kind of service scheduling system of the embodiment of the present application;
Fig. 3 is the structural schematic diagram according to another service scheduling system of the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Above-described embodiment in order to better understand below explains the meaning of technical term involved in the embodiment of the present application
It is as follows:
Distributed system (distributed system) is built upon the software systems on network.Exactly because software
Characteristic, so distributed system have height cohesion and the transparency.Therefore, the difference between network and distributed system
More it is high layer software (especially operating system), rather than hardware.Cohesion refers to each database distribution node
High degree of autonomy has local data base management system.The transparency refers to that each database distribution node carrys out the application of user
It says it is all transparent, does not see local or long-range.In distributed data base system, the imperceptible data of user are distributions
, i.e. user requires no knowledge about whether relationship is divided, is stored in which website and affairs whether there is or not copy, data on which website
Execute etc..
According to the thought of distributed system, on the basis of existing distributed structure/architecture, the application is created according to SOA frame
Property devise service flow mechanism, realize that business processing flow can be customized according to service function.
A kind of platform provided by the embodiments of the present application, by communications interface subsystem, service dispatch subsystem, business processing
System is formed using Monitor And Control Subsystem and Integrated Development IDE, is to be suitble to Postal Savings bank special while meeting technology standardization
Point, it can support the tool of business rapid build, the application development platform of modularization.In communication interface, management and monitoring, parameter
Configuration aspect provides visual development interface;Emphasis has been done in terms of distributed caching, distributed file system, distributed information log
Research.
A kind of platform provided by the embodiments of the present application is based on distributed structure/architecture design philosophy, according to " using fragment, data
Business processing flow is carried out fractionation as detailed as possible by the demand in point library ", and being formed can be with the service mould of complete independently task
Block.For the complete process for guaranteeing operation flow, the present invention proposes to realize by the way of based on the service flow of SOA frame complete
The processing of operation flow.In actual application, the present invention realizes service flow according to asynchronous service stream Scheduling Design thinking
Distributed treatment, to guarantee application system high concurrent process performance;When abnormal conditions occur, by compensation mechanism, guarantee
The requirement of distributed system affairs final consistency.
In the related technology, service dispatch system and transaction processing system directly carry out data interaction, by service dispatch system
According to the service request got, the corresponding transaction processing system of the service request is determined, and send to the transaction processing system
Business processing request.The case where data of service dispatch system processing are more, are easy to appear data and block, business surge, business
The efficiency of processing is lower.In view of the above-mentioned problems, the embodiment of the present application provides corresponding solution, carry out below specifically
It is bright.
Fig. 1 is according to a kind of flow chart of business scheduling method of the embodiment of the present application, as shown in Figure 1, this method includes
Following steps:
Step S102 receives the first service information from least one service dispatch system.
Service dispatch system, for obtaining the service request of user.Wherein, service dispatch system can be according to service request class
Type classifies in advance to database, and specific classification method can classify for deposit-type or the relevant company of business.
Such as: database A is that user deposits database, and database B is the database that user pays the fees to China Mobile, database C
The database paid the fees for user to China Unicom Corporation;Database D is the database that user pays the fees to insurance company.When service is adjusted
After degree system obtains the service request of user, a point library is carried out to business according to the type of service request and is handled, and according to industry
Business request request access corresponding with service in correspondence database, and the service dispatch code of the service request is converted to computer can
With the field of identification.Wherein, service dispatch code is the relevant code of business corresponding to service request.Service dispatch code is turned
After alternatively, determination services the service request, which corresponds to first service information.In addition, service dispatch system can obtain
Multiple service requests at family are taken, are independent of each other between each service request, service dispatch system is without synchronizing to each business
Request sync response.
By API, (Application Programming Interface, application programming connect service dispatch system
Mouthful) to service routing send first service information.Service dispatch system can be one or more, and service routing is received from extremely
The first service information of a few service dispatch system.
Step S104 determines corresponding first service sub-system of first service information, and first service information is sent to
First service sub-system.
It, will be corresponding with to first service information according to preset rules determination after service routing receives first service information
First service sub-system.Preset rules are at least one of: type of service belonging to first service information;Realize first service
The functional module of information;The realization mechanism of first service information.
In an alternative embodiment, first service information can buy financial product class information on services, institute for user
The type of service of category can be with are as follows: fund, financing, stock etc..The functional module for realizing first service information can be sorting, clearing
Deng.The realization mechanism of first service information can be common for individual feature module complete independently or the multiple functional modules of needs
It completes.
First service sub-system includes the identical node of multiple functions, and each node can be mutually backups, by first service
It includes: that first service information is sent to surplus resources in the first service sub-system is most that information, which is sent to the first service sub-system,
Node.In an optional example in real time, before service routing sends service information to the first service sub-system every time, need
Which node, which records, is sent to the information on services, to send other information on services to the first service sub-system in next time
When, the quantity of information on services was received according to each node of local record, and/or the information on services quantity being carrying out, it will
Other above-mentioned information on services are sent to the most node of surplus resources, to reach the load balancing of each node.
First subtask can determine in the following manner: the first subsystem determines the first service sub-system from subtask
Support the first subtask executed;For the subtask that the first service sub-system refusal executes, the first service sub-system is by first
The corresponding second service information in subtask that service sub-system refusal executes is sent to service routing.
It is corresponding with second service information according to the determination of second service information after service routing obtains second service information
Second service sub-system, and second service information is sent to the second service sub-system;Wherein, the second service sub-system is for holding
Corresponding second subtask of row, the second subtask are the subtask for realizing the corresponding service of second service information.
Determine corresponding second service sub-system of second service information, comprising: according to preset rules determination and second service
Corresponding second service sub-system of information, preset rules are at least one of: type of service belonging to second service information;It is real
The functional module of existing second service information;Realize the mechanism of second service information.
In another alternative embodiment, the data that the first service sub-system sends service routing are monitored, if
First service information has been listened to, then has received first service information, and after receiving first service information, has been executed corresponding
First subtask, the first subtask are the subtask for realizing the corresponding service of first service information.First subtask may include more
A step.When the corresponding service of the first service information that the first subtask executes in the first service sub-system, may not by
The corresponding service execution of first business service information finishes.
First service sub-system executes the first subtask, and judges whether the corresponding service of first service information is executed
Finish, if having not been executed, it is determined that second service information, and second service information is sent to service routing, wherein the second clothes
The corresponding service of information of being engaged in is the corresponding remaining service not being performed of first service information.
Wherein, the first service sub-system is after determining second service information, the first service sub-system need by API to
Service routing sends second service information.
It is corresponding with second service information according to the determination of second service information after service routing obtains second service information
Second service sub-system, and second service information is sent to the second service sub-system;Wherein, the second service sub-system is for holding
Corresponding second subtask of row, the second subtask are the subtask for realizing the corresponding service of second service information.
Determine corresponding second service sub-system of second service information, comprising: according to preset rules determination and second service
Corresponding second service sub-system of information, preset rules are at least one of: type of service belonging to second service information;It is real
The functional module of existing second service information;Realize the mechanism of second service information.
It wherein, can be to the number of service dispatch system, business routing, the processing of the first service sub-system, the second service sub-system
It is limited according to amount, such as service dispatch system, business routing, the first service sub-system, the second service sub-system is handled
Different threshold values is respectively set in data volume, to guarantee service dispatch system, business routing, the first service sub-system, the second business
Subsystem can operate normally, and prevent data volume excessive, influence processing speed or cause equipment fault, to improve business processing
Validity.Furthermore it is also possible to by control within a preset period of time service dispatch system, business routing, the first service sub-system,
Second service sub-system allows the data volume handled to be limited, and avoids the malicious access of other systems.
When the subtask of the corresponding all services of first service information is finished by one or more service sub-systems
Afterwards, the service sub-system for executing the final step of the corresponding service of first service information will send the to service routing by API
The corresponding service execution of one information on services finishes signal.Service routing receives the service execution and finishes signal, and the service is held
Row finishes signal and is sent to service dispatch system.The service execution that service dispatch system sends service routing finishes signal progress
It monitors, after having listened to service execution and finishing signal, obtains the service execution and finish signal, and the signal transmission that will be finished
Response queue outside to service dispatch system.Wherein, it may be service execution pass signal that service execution, which finishes signal, can also
Think service execution failure signal.If it is service execution failure signal, service dispatch subsystem pair that service execution, which finishes signal,
The service is handled again.Wherein, response queue is for storing whether each service runs succeeded.
Each service sub-system can the execution state to the subtask respectively executed monitor.Such as: the first business
System can the execution state to the first subtask monitor, if listening to the first subtask executes exception, the first business subsystem
System then sends the first subtask to service routing and executes abnormal subtask information and real-time compensation request.First subtask
Execute it is abnormal can be because Network Abnormal causes the first subtask to execute exception, or the due to caused by user balance deficiency
One subtask executes exception.
After service routing receives real-time compensation request, real-time compensation request is sent to service dispatch system, is mended in real time
Request is repaid for requesting all subtasks executed of the corresponding service of cancellation first service information.Service dispatch system according to
Real-time compensation request generates real-time compensation instruction, cancels all subtasks executed of the corresponding service of first service information.
Such as: if the first service sub-system when executing the first subtask, exception occurs, then real-time compensation instruction is for controlling
First service sub-system cancels all execution of the corresponding service of related first service information executed in the first service sub-system
The subtask crossed.The above process belongs to real-time compensation.
Service routing monitors the compensation result of real-time compensation, if real-time compensation fails, to service dispatch system
Send asynchronous compensation request, wherein asynchronous compensation are as follows: periodically mend to the subtask of the corresponding service of first service information
It repays.
If real-time compensation fails, asynchronous compensation request is sent to service dispatch system, reality can be carried out in the following manner
It is existing: if the frequency of failure of real-time compensation is more than preset times, to send asynchronous compensation request to service dispatch system.
In an alternative embodiment, if exception occurs in a certain step of the first subtask in the first service sub-system
When, after the step is by real-time compensation success or failure, real-time compensation result is sent to service routing by the first service sub-system,
Service routing determines whether to carry out asynchronous compensation to first service information according to real-time compensation result.Settable reality in service routing
When compensating coefficient table, if real-time compensation fails, automatic trigger service routing sends asynchronous compensation to service dispatch system and requests.
In another optional example in real time, real-time compensation state table is storable in service dispatch system, and service routing connects
Receive real-time compensation result after, to service dispatch system send real-time compensation as a result, service dispatch system according to real-time compensation as a result,
By compensation way, asynchronous compensation is automatically switched to.
After service dispatch system receives asynchronous compensation request, compensating instruction is sent to service routing, wherein compensating instruction
In carry preset asynchronous compensation compensation sequence.Wherein asynchronous compensation sequence can be set by administrator, or
The sequence that subtask is performed.
Wherein, it is stored with real-time compensation state table in service dispatch system, real-time compensation state table is for showing: mends in real time
Repay beginning, real-time compensation terminates, in real-time compensation, real-time compensation success and real-time compensation failure compensating coefficient.It mends in real time
At the end of repaying, real-time compensation state table is updated.
Service routing provided by the present application by being arranged between at least one service dispatch system and service sub-system
Receive the first service information from least one service dispatch system;Determine the corresponding first business subsystem of first service information
System, and first service information is sent to the first service sub-system;Wherein, the first service sub-system is for executing corresponding first
Subtask, the first subtask are the first subtask for realizing the corresponding service of first service information.Pass through the introducing of service routing
Reduce the degree of coupling in distributed structure/architecture between service dispatch system and service process subsystem.In distributed structure/architecture, clothes
Business scheduling system, service process subsystem are all that multinode deployment, especially service process subsystem are even more to pass through to collect on a large scale
Group realizes the decentralized processing of business scenario.So certainly will be due to needing between service dispatch system and service process subsystem
It communicates and establishes complicated connection relationship.How to simplify connection relationship, not only operation maintenance personnel most concerned about and the problem of headache,
Complicated interactive connection can also reduce the efficiency of interaction between subsystem.In this application, it creatively proposes in service dispatch
Service routing is set up between system and service process subsystem, the service dispatch system and service process subsystem of original complexity
As long as the mapping relations of N:M are reduced to service dispatch system and service-Engine (service routing) node (N:1), business processing between
The simple connection relationship of (M:1) between system and service-Engine node.To enormously simplify the complexity of system connection deployment
Property, it improves and communicates interactive performance between system.The data volume for reducing the processing of service dispatch system is realized, data is improved and passes
The effect of defeated efficiency, it is complicated to solve between service dispatch system and Service Processing Unit data interaction, and data are more leads for processing
The technical problem that the data transmission efficiency of cause is lower and business processing efficiency is lower.
In addition, by determining the first service sub-system corresponding with first service information, preset rules according to preset rules
For at least one of: type of service belonging to first service information;Realize the functional module of first service information;First service
The realization mechanism of information.More granularities fractionation in service level is realized, identical function is merged, different function
It can be carried out scientific and effective removing, realize the design master of " the servicing internal high cohesion, lower coupling between service " of service level
Purport.
The scheduling of asynchronous service stream realizes in distributed structure/architecture the design philosophy of " using fragment, data divide library ".Business
Type is concluded according to service product characteristic, is arranged, by type of service or subsystem function module according to different classification with
Dispersing mode is deployed to different nodes.Each business processing transaction is conspired to create by multiple service for being dispersed in different nodes
Service flow realize: the service of each corresponding node can mention immediately when the corresponding database processing of this node finishes
It hands over, the service flow then entirely stringed together is exactly the asynchronous service stream that a multi-step carries out issued transaction.Asynchronous service stream tune
Degree greatly improves the asynchronous transaction processing capacity under Distributed Architecture.
Fig. 2 is according to a kind of structural schematic diagram of service scheduling system of the embodiment of the present application, as shown in Fig. 2, the system
It include: service dispatch system 22, service routing 24, the first service sub-system 26, in which:
Service dispatch system 22, for obtaining first service information, and according to first service information, determining and first service
First service information is sent to service routing 24 by the database by the corresponding database of information.
Service dispatch system 22, for obtaining the service request of user.Wherein, service dispatch system 22 can be asked according to business
Ask type to classify database in advance, specific classification method can according to deposit-type classify, or according to business
The relevant corporate business of corresponding business is requested to be classified.Such as: database A is that user deposits database, and database B is to use
The database that family is paid the fees to China Mobile, database C are the database that user pays the fees to China Unicom Corporation;Database D
The database paid the fees for user to insurance company.After service dispatch system 22 obtains the service request of user, according to business
The type of request carries out a point library to business and handles, and requests access corresponding with service in correspondence database according to service request,
And the service dispatch code of the service request is converted into the field that computer can identify.Wherein, service dispatch code is and business
Request the relevant code of corresponding business.After service dispatch code is converted, determination services the service request, the clothes
It is engaged in corresponding to first service information.
Service routing 24 determines first for receiving the first service information from least one service dispatch system 22
Corresponding first service sub-system of information on services, and first service information is sent to the first service sub-system.Service dispatch system
System 22 is sent by API (Application Programming Interface, application programming interface) to service routing
First service information.Service dispatch system 22 can be one or more, and service routing 24 is received to be adjusted from least one service
The first service information of degree system 22.
It, will be corresponding with to first service information according to preset rules determination after service routing 24 receives first service information
The first service sub-system.Preset rules are at least one of: type of service belonging to first service information;Realize the first clothes
The functional module for information of being engaged in;The realization mechanism of first service information.
In an alternative embodiment, first service information can buy financial product class information on services, institute for user
The type of service of category can be with are as follows: fund, financing, stock etc..The functional module for realizing first service information can be sorting, clearing
Deng.The realization mechanism of first service information can independently execute the corresponding service of first service information for the single subsystem of needs,
Still multiple subsystems is needed to execute jointly.Different subsystems can also be carried out according to the realization mechanism of first service information
Grouping.
First service sub-system 26 receives first service information, and executes corresponding first subtask.
The data that first service sub-system 26 sends service routing 24 are monitored, if having listened to first service letter
Breath, then receive first service information, and after receiving first service information, executes corresponding first subtask, the first son
Task is to realize the subtask of the corresponding service of first service information.First subtask may include multiple steps.
It should be noted that the preferred embodiment of embodiment illustrated in fig. 2, may refer to the associated description about Fig. 1, this
Place repeats no more.
Fig. 3 is according to the structural schematic diagram of another service scheduling system of the embodiment of the present application, as shown in figure 3, this is
System includes:
Service dispatch system 32, for obtaining first service information, and according to first service information, determining and first service
First service information is sent to service routing 34 by the database by the corresponding database of information.
Service dispatch system 32 is used to obtain the service request of user.Wherein, service dispatch system 32 can be asked according to business
Ask type to classify database in advance, specific classification method can according to deposit-type classify, or according to business
The relevant corporate business of corresponding business is requested to be classified.Such as: database A is that user deposits database, and database B is to use
The database that family is paid the fees to China Mobile, database C are the database that user pays the fees to China Unicom Corporation;Database D
The database paid the fees for user to insurance company.After service dispatch system obtains the service request of user, asked according to business
The type asked carries out a point library to business and handles, and requests access corresponding with service in correspondence database according to service request, and
The service dispatch code of the service request is converted into the field that computer can identify.Wherein, service dispatch code is to ask with business
Seek the relevant code of corresponding business.After service dispatch code is converted, determination services the service request, the service
Corresponding first service information.
Service routing 34 determines first for receiving the first service information from least one service dispatch system 32
Corresponding first service sub-system 36 of information on services, and first service information is sent to the first service sub-system 36.
Service dispatch system 32 sends first service information to service routing 34 by API.Service dispatch system 32 can be with
For one or more, service routing 34 receives the first service information from least one service dispatch system 32.
It, will be corresponding with to first service information according to preset rules determination after service routing 34 receives first service information
The first service sub-system.Preset rules are at least one of: type of service belonging to first service information;Realize the first clothes
The functional module for information of being engaged in;The realization mechanism of first service information.
In an alternative embodiment, first service information can buy financial product class information on services, institute for user
The type of service of category can be with are as follows: fund, financing, stock etc..The functional module for realizing first service information can be sorting, clearing
Deng.The realization mechanism of first service information can independently execute the corresponding service of first service information for the single subsystem of needs,
Still multiple subsystems is needed to execute jointly.Different subsystems can also be carried out according to the realization mechanism of first service information
Grouping.
First service sub-system 36 receives first service information, and executes corresponding first subtask.
First service sub-system 36 can also include: multiple child nodes, and the service that multiple child nodes execute is identical or different.
In an alternative embodiment, the first service sub-system 36 includes the identical node of multiple functions, each node
It can be mutually backups, service routing 34 determines corresponding first service sub-system 36 of first service information, and first service is believed
It includes: that first service information is sent in the first service sub-system 36 surplus resources most that breath, which is sent to the first service sub-system 36,
More nodes.In an optional example in real time, service routing 34 sends service information it to the first service sub-system 36 every time
Before, need to be sent to the information on services which node records, to send it to the first service sub-system 36 in next time
When his information on services, the quantity of information on services was received according to each node of local record, and/or the service letter being carrying out
Quantity is ceased, other above-mentioned information on services are sent to the most node of surplus resources, to reach the load balancing of each node.
First subtask can determine in the following manner: the first service sub-system 36 determines the first business from subtask
Subsystem 36 supports the first subtask executed;For the subtask that the first service sub-system refusal executes, the first business subsystem
The corresponding second service information in subtask that first service sub-system 36 refusal executes is sent to service routing 34 by system 36.
It is corresponding with second service information according to the determination of second service information after service routing 34 obtains second service information
The second service sub-system 38, and second service information is sent to the second service sub-system 38;Wherein, the second service sub-system
38 for executing corresponding second subtask, and the second subtask is the subtask for realizing the corresponding service of second service information.
Determine corresponding second service sub-system 38 of second service information, comprising: determine and the second clothes according to preset rules
Corresponding second service sub-system 38 of information of being engaged in, preset rules are at least one of: service class belonging to second service information
Type;Realize the functional module of second service information;Realize the mechanism of second service information.
In another alternative embodiment, the data that the first service sub-system 36 sends service routing 34 are supervised
It listens, if having listened to first service information, receives first service information, and after receiving first service information, execute
Corresponding first subtask, the first subtask are the subtask for realizing the corresponding service of first service information.First subtask can
Including multiple steps.It, can when the corresponding service of the first service information that the first subtask executes in the first service sub-system 36
The corresponding service execution of the first business service information can not finished.
First service sub-system 36 executes the first subtask, and judges whether the corresponding service of first service information is performed
It finishes, if having not been executed, it is determined that second service information, and second service information is sent to service routing 34, wherein the
The corresponding service of two information on services is the corresponding remaining service not being performed of first service information.
Wherein, after determining second service information, the first service sub-system 36 needs pass through the first service sub-system 36
API sends second service information to service routing 34.
It is corresponding with second service information according to the determination of second service information after service routing 34 obtains second service information
The second service sub-system 38, and second service information is sent to the second service sub-system 38;Wherein, the second service sub-system
38 for executing corresponding second subtask, and the second subtask is the subtask for realizing the corresponding service of second service information.
Determine corresponding second service sub-system 38 of second service information, comprising: determine and the second clothes according to preset rules
Corresponding second service sub-system 38 of information of being engaged in, preset rules are at least one of: service class belonging to second service information
Type;Realize the functional module of second service information;Realize the mechanism of second service information.It wherein, can be to service dispatch system, industry
Business routing, the first service sub-system, the second service sub-system handle data volume limited, such as to service dispatch system,
Different threshold values is respectively set in the data volume that business routing, the first service sub-system, the second service sub-system 38 are handled, to guarantee
Service dispatch system, business routing, the first service sub-system, the second service sub-system can operate normally, and prevent data volume mistake
Greatly, it influences processing speed or causes equipment fault, to improve the validity of business processing.Furthermore it is also possible to by control pre-
If the data volume that service dispatch system, business routing, the first service sub-system, the second service sub-system allow to handle in the period
It is limited, avoids the malicious access of other systems.
When the subtask of the corresponding all services of first service information is finished by one or more service sub-systems
Afterwards, the service sub-system for executing the final step of the corresponding service of first service information will be sent by API to service routing 34
The corresponding service execution of first service information finishes signal.Service routing 34 receives the service execution and finishes signal, and by the clothes
The business signal that is finished is sent to service dispatch system 32.The service execution that service dispatch system 32 sends service routing finishes
Signal is monitored, and after having listened to service execution and finishing signal, is obtained the service execution and is finished signal, and will be finished
Signal is sent to the response queue outside service dispatch system 32.Wherein, service execution finish signal may be service execution at
Function signal, or service execution failure signal.If it is service execution failure signal that service execution, which finishes signal, tune is serviced
Degree system 32 handles the service again.Wherein, response queue is for storing whether each service runs succeeded.
Module 320 is monitored, for monitoring the execution state of the corresponding service of first service information, and obtains first
There is abnormal step in the corresponding service of information on services.
Real-time compensation state table 322, for storing the real-time compensation state of the corresponding service of first service information.
Each service sub-system can the execution state to the subtask respectively executed monitor.Such as: the first business
System 36 can monitor the execution state of the first subtask, if listening to the first subtask executes exception, the first business
System 36 then sends real-time compensation request to service routing 34.First subtask executes abnormal can lead to the because of Network Abnormal
One subtask executes exception, or the exception due to caused by user balance deficiency.
After service routing 34 receives real-time compensation request, real-time compensation request is sent to service dispatch system 32, it is real
When compensation request for request all subtasks executed of the corresponding service of cancellation first service information.Service dispatch system
32 request to generate real-time compensation instruction according to real-time compensation, cancel all sons executed of the corresponding service of first service information
Task.Such as: if when executing the first subtask, there is abnormal, then real-time compensation instruction in the first service sub-system 36
Cancel the corresponding service of related first service information executed in the first service sub-system for controlling the first service sub-system 36
All subtasks executed.The above process belongs to real-time compensation.
Service routing 34 monitors the compensation result of real-time compensation, if real-time compensation fails, to service dispatch system
System 32 sends asynchronous compensation request, wherein asynchronous compensation are as follows: periodicity to the subtask of the corresponding service of first service information into
Row compensation.
If real-time compensation fails, asynchronous compensation request is sent to service dispatch system 32, can be carried out in the following manner
It realizes: if the frequency of failure of real-time compensation is more than preset times, sending asynchronous compensation request to service dispatch system 32.
In an alternative embodiment, if a certain step appearance of the first subtask in the first service sub-system 36 is different
Chang Shi, after the step is by real-time compensation success or failure, real-time compensation result is sent to service by the first service sub-system 36
Routing 34, service routing 34 determine whether to carry out asynchronous compensation to first service information according to real-time compensation result.Service routing
In settable real-time compensation state table, if real-time compensation fail, automatic trigger service routing 34 to service dispatch system 32 send out
Asynchronous compensation is sent to request.
In another optional example in real time, real-time compensation state table is storable in service dispatch system 32, service routing
After 34 receive real-time compensation result, real-time compensation is sent to service dispatch system 32 as a result, service dispatch system 32 is according to real-time
Compensation way is automatically switched to asynchronous compensation by compensation result.
After service dispatch system 32 receives asynchronous compensation request, compensating instruction is sent to service routing 34, wherein compensation
The compensation sequence of preset asynchronous compensation is carried in instruction.Wherein asynchronous compensation sequence can be set by administrator, can also
Think the sequence that subtask is performed.
Wherein, real-time compensation state table 322 is stored in service dispatch system 32, real-time compensation state table 322 is for showing
Show: real-time compensation state table is for showing: real-time compensation starts, real-time compensation terminates, in real-time compensation, real-time compensation success,
And the compensating coefficient of real-time compensation failure.At the end of real-time compensation, real-time compensation state table 322 is updated.
It should be noted that the preferred embodiment of embodiment illustrated in fig. 3, may refer to the associated description about Fig. 1, this
Place repeats no more.
The application also provides a kind of storage medium, and storage medium includes the program of storage, wherein controls in program operation
Business scheduling method where storage medium more than equipment execution.
It should be noted that the preferred embodiment of above-described embodiment, may refer to the associated description about Fig. 1, herein
It repeats no more.
The application also provides a kind of processor, and processor is for running program, wherein the industry more than executing when program is run
Business dispatching method method.
It should be noted that the preferred embodiment of above-described embodiment, may refer to the associated description about Fig. 1, herein
It repeats no more.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of unit, can be one kind
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of unit or module,
It can be electrical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple units
On.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product
To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of step of each embodiment method of the application
Suddenly.And storage medium above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
The above is only the preferred embodiments of the application, it is noted that those skilled in the art are come
It says, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications also should be regarded as
The protection scope of the application.
Claims (10)
1. a kind of business scheduling method, which is characterized in that the method is by being arranged at least one service dispatch system and industry
Service routing between business subsystem is realized, comprising:
Receive the first service information from least one service dispatch system;
It determines corresponding first service sub-system of the first service information, and the first service information is sent to described
One service sub-system;Wherein, for executing corresponding first subtask, first subtask is first service sub-system
Realize the subtask of the corresponding service of the first service information.
2. business scheduling method according to claim 1, which is characterized in that the determination first service information is corresponding
The first service sub-system, comprising:
The first service sub-system corresponding with the first service information is determined according to preset rules, and the preset rules are following
At least one: type of service belonging to first service information;Realize the functional module of the first service information;First clothes
The realization mechanism for information of being engaged in.
3. business scheduling method according to claim 1, which is characterized in that
First subtask determines in the following manner: first service sub-system determines described the from the subtask
One service sub-system supports the first subtask executed;
The method also includes: the subtask executed for first service sub-system refusal, first service sub-system
The corresponding second service information in subtask that first service sub-system refusal executes is sent to the service routing.
4. business scheduling method according to claim 1, which is characterized in that the method also includes:
First service sub-system executes first subtask, and whether judges the corresponding service of the first service information
It is performed and finishes, if having not been executed, it is determined that second service information, and the second service information is sent to the service
Routing, wherein the corresponding service of second service information is the corresponding remaining service not being performed of first service information.
5. business scheduling method according to claim 3 or 4, which is characterized in that
The service routing receives the second service information, believes according to the second service information is determining with the second service
Corresponding second service sub-system is ceased, and the second service information is sent to second service sub-system;Wherein, described
Second service sub-system is to realize the second service information pair for executing corresponding second subtask, second subtask
The subtask for the service answered.
6. business scheduling method according to claim 1 characterized by comprising
Obtain the subtask of the corresponding service of first service information executed extremely;
Real-time compensation request is sent to service dispatch system, the real-time compensation request cancels the first service letter for requesting
Cease all subtasks executed of corresponding service.
7. business scheduling method according to claim 6, which is characterized in that the method also includes: to real-time compensation
Compensation result is monitored, if the real-time compensation fails, sends asynchronous compensation request to service dispatch system, wherein institute
State asynchronous compensation are as follows: periodically compensate to the subtask of the corresponding service of the first service information.
8. business scheduling method according to claim 7, which is characterized in that if the real-time compensation fails, to service
Scheduling system sends asynchronous compensation request, comprising: if the frequency of failure of the real-time compensation is more than preset times, adjusts to service
Degree system sends asynchronous compensation request.
9. a kind of service scheduling system characterized by comprising
Service dispatch system, it is determining to believe with first service for obtaining first service information, and according to the first service information
Corresponding database is ceased, the first service information is sent to by service routing by the database;
Service routing determines the first service for receiving the first service information from least one service dispatch system
Corresponding first service sub-system of information, and the first service information is sent to first service sub-system, wherein institute
It is to realize the first service information that the first service sub-system, which is stated, for executing corresponding first subtask, first subtask
The subtask of corresponding service;
First service sub-system receives the first service information, and executes corresponding first subtask.
10. service scheduling system according to claim 9 characterized by comprising
Second service sub-system receives the second service information that the service routing is sent, and executes corresponding second subtask;
Wherein, the corresponding service of the first service information includes the corresponding service of second service information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810992919.1A CN109120706A (en) | 2018-08-28 | 2018-08-28 | Business scheduling method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810992919.1A CN109120706A (en) | 2018-08-28 | 2018-08-28 | Business scheduling method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109120706A true CN109120706A (en) | 2019-01-01 |
Family
ID=64861118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810992919.1A Pending CN109120706A (en) | 2018-08-28 | 2018-08-28 | Business scheduling method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120706A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111695952A (en) * | 2019-03-11 | 2020-09-22 | 新疆丝路大道信息科技有限责任公司 | Commercial tenant management system of automobile leasing platform |
CN111695948A (en) * | 2019-03-11 | 2020-09-22 | 新疆丝路大道信息科技有限责任公司 | Automobile leasing management system |
CN113032176A (en) * | 2021-03-23 | 2021-06-25 | 中国邮政储蓄银行股份有限公司 | Distributed transaction double-compensation method and device based on daily account checking |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729257A (en) * | 2012-10-16 | 2014-04-16 | 阿里巴巴集团控股有限公司 | Distributed parallel computing method and system |
CN105511956A (en) * | 2014-09-24 | 2016-04-20 | 中国电信股份有限公司 | Method and system for task scheduling based on share scheduling information |
CN106487849A (en) * | 2015-08-28 | 2017-03-08 | 阿里巴巴集团控股有限公司 | A kind of information transferring method based on redirection and device |
CN106548261A (en) * | 2015-09-21 | 2017-03-29 | 阿里巴巴集团控股有限公司 | A kind of Business Process Control method, device and electronic equipment |
CN107133089A (en) * | 2017-04-27 | 2017-09-05 | 努比亚技术有限公司 | A kind of task scheduling server and method for scheduling task |
CN107819861A (en) * | 2017-11-16 | 2018-03-20 | 中国银行股份有限公司 | Business data processing method, apparatus and system |
CN107944773A (en) * | 2017-12-29 | 2018-04-20 | 咪咕文化科技有限公司 | Business process control method, device and storage medium |
CN108287756A (en) * | 2018-01-25 | 2018-07-17 | 联动优势科技有限公司 | A kind of method and device of processing task |
-
2018
- 2018-08-28 CN CN201810992919.1A patent/CN109120706A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729257A (en) * | 2012-10-16 | 2014-04-16 | 阿里巴巴集团控股有限公司 | Distributed parallel computing method and system |
CN105511956A (en) * | 2014-09-24 | 2016-04-20 | 中国电信股份有限公司 | Method and system for task scheduling based on share scheduling information |
CN106487849A (en) * | 2015-08-28 | 2017-03-08 | 阿里巴巴集团控股有限公司 | A kind of information transferring method based on redirection and device |
CN106548261A (en) * | 2015-09-21 | 2017-03-29 | 阿里巴巴集团控股有限公司 | A kind of Business Process Control method, device and electronic equipment |
CN107133089A (en) * | 2017-04-27 | 2017-09-05 | 努比亚技术有限公司 | A kind of task scheduling server and method for scheduling task |
CN107819861A (en) * | 2017-11-16 | 2018-03-20 | 中国银行股份有限公司 | Business data processing method, apparatus and system |
CN107944773A (en) * | 2017-12-29 | 2018-04-20 | 咪咕文化科技有限公司 | Business process control method, device and storage medium |
CN108287756A (en) * | 2018-01-25 | 2018-07-17 | 联动优势科技有限公司 | A kind of method and device of processing task |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111695952A (en) * | 2019-03-11 | 2020-09-22 | 新疆丝路大道信息科技有限责任公司 | Commercial tenant management system of automobile leasing platform |
CN111695948A (en) * | 2019-03-11 | 2020-09-22 | 新疆丝路大道信息科技有限责任公司 | Automobile leasing management system |
CN113032176A (en) * | 2021-03-23 | 2021-06-25 | 中国邮政储蓄银行股份有限公司 | Distributed transaction double-compensation method and device based on daily account checking |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110727512B (en) | Cluster resource scheduling method, device, equipment and storage medium | |
CN110806933B (en) | Batch task processing method, device, equipment and storage medium | |
CN110276182A (en) | The implementation method of API distribution current limliting | |
CN109120706A (en) | Business scheduling method and system | |
CN107968802A (en) | The method, apparatus and filtering type scheduler of a kind of scheduling of resource | |
CN110661842B (en) | Resource scheduling management method, electronic equipment and storage medium | |
CN109101334A (en) | A kind of micro services concurrency control method towards Zuul gateway | |
US20070133781A1 (en) | Method and system for automatic assignment of work units to agents | |
US6725445B1 (en) | System for minimizing notifications in workflow management system | |
CN109949093B (en) | Preferential information pushing method and system, electronic equipment and storage medium | |
CN112052082B (en) | Task attribute optimization method, device, server and storage medium | |
CN101504754A (en) | Banking business data sorting and processing system based on image information | |
CN106874109A (en) | A kind of distributed job distribution processing method and system | |
CN109150957A (en) | A kind of micro services concurrent control system | |
CN112132462A (en) | Customer service dispatching method, device, equipment and storage medium | |
CN112017042A (en) | Resource quota determining method and device based on tweed distribution and electronic equipment | |
CN114462849A (en) | Task balanced distribution method and task balanced distribution device | |
CN112651668A (en) | Flight resource allocation method and device and server | |
CN111858014A (en) | Resource allocation method and device | |
CN114265697A (en) | Distribution method, device and system of audit tasks, electronic equipment and storage medium | |
CN116600014B (en) | Server scheduling method and device, electronic equipment and readable storage medium | |
US8175905B2 (en) | Source allocation system, program and method | |
CN111428973A (en) | Virtual resource allocation method capable of effectively improving resource utilization rate | |
CN117081929A (en) | Routing policy configuration method and device, storage medium and computer equipment | |
CN116719623A (en) | Job scheduling method, job result processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190101 |