CN109508912A - A kind of business scheduling method, device, equipment and storage medium - Google Patents

A kind of business scheduling method, device, equipment and storage medium Download PDF

Info

Publication number
CN109508912A
CN109508912A CN201811642420.4A CN201811642420A CN109508912A CN 109508912 A CN109508912 A CN 109508912A CN 201811642420 A CN201811642420 A CN 201811642420A CN 109508912 A CN109508912 A CN 109508912A
Authority
CN
China
Prior art keywords
computer room
business
service order
processing
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811642420.4A
Other languages
Chinese (zh)
Other versions
CN109508912B (en
Inventor
吴文宜
刘汉林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201811642420.4A priority Critical patent/CN109508912B/en
Publication of CN109508912A publication Critical patent/CN109508912A/en
Application granted granted Critical
Publication of CN109508912B publication Critical patent/CN109508912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of business scheduling method, device, equipment and storage mediums.This method is requested by receiving the processing of service order;The processing request is responded, the candidate computer room for processing the service order is determined as target computer room;The service order is dispatched to the target computer room and carries out business processing;The business datum for being directed to the service order is updated according to the result of the business processing, wherein, each candidate computer room is stored with the business datum, thus, it solves the problem of to be also solved because the single write-in point ability to ward off risks is weaker because more ground strong consistency can have larger reduction, realize under the premise of keeping service data consistence, guarantee the ability to ward off risks of business datum, and increases the technical effect of the performance of business processing.

Description

A kind of business scheduling method, device, equipment and storage medium
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of business scheduling method, device, equipment and deposit Storage media.
Background technique
System is under Run-time scenario living more than strange land, i.e., all service distributions of system are in two and its above computer room Business processing is carried out, due to the uncontrollability of the unstable of network and delay and user's access, be easy to cause the reading to data Write operation sequence error, and Data Consistency can be brought, further influence entire service logic.
There are two types of usual settling modes: first is that the corresponding business datum of business is written by the way of single write-in point In one computer room, it is able to maintain data consistency, and access is more efficient, but the ability to ward off risks is weaker, when write-in point is unavailable When, it is unavailable to will lead to whole system;Second is that using more ground strongly consistent scheme, wherein more ground strongly consistent scheme one kind is across computer room Read and write abruption mechanism, all write operations are directed to main equipment room and carry out, and read operation can be in the secondary number of each computer room It is executed according to library, main equipment room progress can also be tied to, the consistency of data is able to maintain, there is the preferable ability to ward off risks, but performance Larger reduction is had, system bottleneck is become.
Summary of the invention
The present invention provides a kind of business scheduling method, device, equipment and storage medium, is keeping business datum one to realize Under the premise of cause property, guarantee the ability to ward off risks of business datum, and increase the technical effect of the performance of business processing.
In a first aspect, the embodiment of the invention provides a kind of business scheduling methods, this method comprises:
Receive the processing request of service order;
The processing request is responded, the candidate computer room for processing the service order is determined as target computer room;
The service order is dispatched to the target computer room and carries out business processing;
The business datum for being directed to the service order is updated according to the result of the business processing, wherein each time Computer room is selected to be stored with the business datum.
Further, after receiving the processing request of service order, further includes:
It determines that the service order is first treated according to the processing request, then will receive the candidate of the processing request Computer room is as target computer room.
Further, it is determining that the service order is first treated according to the processing request, then will receive the place After the candidate computer room requested is managed as target computer room, comprising:
Determine the corresponding computer room coding of candidate computer room for receiving the processing request;
The order note identification number of the service order is generated according to computer room coding.
Further, the processing request is responded, the candidate computer room for processing the service order is determined as target machine Room, comprising:
The order note identification number of the service order is obtained according to the processing request, and the order note identification number is in first treated It is generated when the service order;
Computer room coding is read from the designated position of the order note identification number;
According to the corresponding relationship of computer room coding and candidate computer room, determination processes the industry from the candidate computer room The target computer room of business order.
Further, the service order is dispatched to the target computer room and carries out business processing, comprising:
Target service type is determined according to the service condition of the service order;
The service order is dispatched to the target computer room, to carry out at the corresponding business of the target service type Reason.
Further, the business datum for being directed to the service order is updated according to the result of the business processing, comprising:
The business datum in the target computer room about the service order is updated according to the result of business processing;
By the synchronizing traffic data to the candidate computer room in addition to the target computer room.
Further, the processing request is being responded, the candidate computer room for processing the service order is determined as target After computer room, further includes:
When the target computer room breaks down, a candidate computer room conduct in addition to the target computer room is chosen Temporary machine room;
The service order is dispatched to the temporary machine room and carries out business processing, to update for the service order Business datum.
Second aspect, the embodiment of the invention also provides a kind of traffic scheduling device, which includes:
Request receiving module is handled, the processing for receiving service order is requested;
Target computer room determining module will process the candidate computer room of the service order for responding the processing request It is determined as target computer room;
Service Processing Module carries out business processing for the service order to be dispatched to the target computer room;
Service data updating module, for updating the business for being directed to the service order according to the result of the business processing Data, wherein each candidate computer room is stored with the business datum.
The third aspect, the embodiment of the invention also provides a kind of traffic scheduling equipment, which includes: memory and one A or multiple processors;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the business scheduling method as described in any in first aspect.
Fourth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions Computer executable instructions by computer processor when being executed for executing the traffic scheduling as described in any in first aspect Method.
The embodiment of the present invention is requested by receiving the processing of service order;The processing request is responded, it will be processed described The candidate computer room of service order is determined as target computer room;The service order is dispatched to the target computer room to carry out at business Reason;The business datum for being directed to the service order is updated according to the result of the business processing, wherein each candidate computer room It is stored with the business datum, thus, on the one hand, different from same service order to be dispatched to different candidate computer rooms, and It is to determine to carry out business processing with unique target computer room, solves the business consistency problem in the deployment of multimachine room, guarantee industry The correctness for logic of being engaged in.On the other hand, different from the scheme of single write-in point that the corresponding business datum of business is only independent It is written in a computer room, also different from the read and write abruption mechanism across computer room used in the scheme of strong consistency, in the present embodiment All candidate computer rooms preserve data caused by service order, and read-write is realized in target computer room, and resynchronisation is extremely Other candidate computer rooms, realize under the premise of keeping service data consistence, guarantee the ability to ward off risks of business datum, be same as by In avoiding time delay brought by across computer room read-write database, the technical effect for increasing the performance of business processing is realized.
Detailed description of the invention
Figure 1A is a kind of flow chart for business scheduling method that the embodiment of the present invention one provides;
Figure 1B is a kind of schematic diagram for multimachine room deployment that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of business scheduling method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for traffic scheduling device that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for traffic scheduling equipment that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Figure 1A is a kind of flow chart for business scheduling method that the embodiment of the present invention one provides, and Figure 1B is the embodiment of the present invention A kind of schematic diagram of the one multimachine room deployment provided.
The present embodiment is applicable to strange land situation mostly living, and strange land is mostly living to be realized by the way of the deployment of multimachine room, that is, adopts Business is disposed with two and its above computer room.Specifically, by operation expanding to multiple computer rooms, when a computer room occurs When failure, other computer rooms still can continue normal business processing, real so as to avoid the failure of entire operation system rank The technical effect of existing natural expansion and High Availabitity.But the deployment of multimachine room can be visited due to the unstable of network and delay and user The uncontrollability asked can bring Data Consistency.Specifically, generally by operation expanding to multiple computer rooms, to business into When row business processing, is cooperated by multiple computer rooms and complete the business.Further, business datum caused by business is also distributed about In multiple computer rooms, need across computer room to carry out additions and deletions to business datum during business processing to change operation.It should be noted that It is that the uncontrollability of unstable and delay and the user's access of network can all influence to change operation to business datum progress additions and deletions Sequence so that there is mistake in service logic.Further, although more ground strongly consistent scheme, Neng Goubao can be used The consistency for holding data has the preferable ability to ward off risks.But since more ground strongly consistent is to share a business number using multiple computer rooms The consistency for guaranteeing data according to library, due to network delay and reading and writing data are time-consuming, performance has larger reduction, becomes System bottleneck.
Specifically, the present embodiment is suitable for when receiving service order, service order is dispatched to target computer room and carries out industry Business processing, guarantees the consistency and safety of business datum caused by the high-performance and business processing of business processing.Into one Step, the present embodiment is not construed as limiting application scenarios, all to determine target according to the default or history disposition of service order The application scenarios of computer room are applicable.Wherein, the present embodiment will be that the computer room of processed service order is with history disposition Example is illustrated.
This method can be executed by traffic scheduling equipment.The present embodiment is not construed as limiting traffic scheduling equipment, this implementation Example is described in detail so that traffic scheduling equipment is the server being arranged in each computer room as an example, which can be independence Server or cluster server.
Specifically, B is provided with multiple candidate computer rooms when carrying out the deployment of multimachine room referring to Fig.1 in entire operation system, Wherein, candidate computer room is the computer room that can carry out business processing.Further, scheduler is provided in candidate computer room, business is patrolled Collect module, registration center and database;Wherein, scheduler, which is used to for service order to be dispatched to target computer room, carries out business processing; Business logic modules are used to exchange the service order for spending and carry out actual business processing;Registration center is then provided with entire industry The business logic modules information of business system, the business logic modules information include that business logic modules can in each candidate computer room The type of service of processing;It is stored with operation system it should be noted that being synchronized between database in each candidate's computer room and is produced Raw business datum.
Further, A, the multimachine room deployment way in conjunction with described in Figure 1B, the business scheduling method specifically include referring to Fig.1 Following steps:
S110, the processing request for receiving service order.
In the present embodiment, business is managed in a manner of service order.The life cycle of one service order includes: life At order, processing order and terminate the service conditions such as order.Further, processing request is issued for different service conditions Request.Such as when the service condition of service order is to generate order, then processing request generates the service order for requesting;Again Such as when the service condition of service order is processing order, then processing request handles the service order for requesting.It is receiving When service order is requested, corresponding business logic modules will be dispatched according to service condition and business processing is carried out to the service order.
It should be noted that according to the difference of business, the corresponding specific service condition of service order is different.
It is illustrated by taking the recharging service being broadcast live in platform as an example, the corresponding service condition of service order includes generating to supplement with money Order, processing supplement order (be divided into not only and do not pay, pay failure and paid) with money, end supplements order with money and (but also is divided into cancellation and orders Single and completion order etc.).
Be above to response handle request determine service condition explanation, further, the present embodiment will to how basis Processing request is that service order distributes target computer room and business logic modules are described in detail.
S120, the response processing request, are determined as target computer room for the candidate computer room for processing the service order.
In the present embodiment, the processing request is responded, to carry out business processing according to the service condition of the service order. The present embodiment needs to guarantee the same service order (in service order life cycle to guarantee the consistency of data Different business state), business processing all is carried out in same candidate computer room, so further, the present embodiment will be processed described The candidate computer room of service order is determined as target computer room.
Specifically, being both provided with registration center with reference to Figure 1B in multiple candidate's computer rooms, business system being provided in registration center All business logic modules information in system.Further, after receiving the processing request of service order, scheduler will be processed The candidate computer room of the service order is determined as target computer room, and further, scheduler monitors the service logic in registration center Module information determines the service order in the target according to the matching of the service condition and business logic modules information Corresponding business logic modules in computer room.
How the present embodiment is to determining that the candidate computer room for processing the service order is not construed as limiting.
In one embodiment, the corresponding candidate computer room of all service orders is stored in the database, and is receiving business When the processing request of order, scan for determining the candidate computer room for processing the service order in the database.
In one embodiment, the service order setting processes the computer room information of the service order, according to the computer room Information can determine target computer room in candidate computer room.The present embodiment is not construed as limiting the concrete form of computer room information, computer room letter Breath can be the remarks being arranged in service order, be also possible to splice in the order serial number of service order.
S130, the service order is dispatched to the target computer room progress business processing.
In the present embodiment, business logic modules are provided in target computer room, the service order is dispatched to the target The business logic modules of computer room carry out business processing, and the business logic modules are determined according to service condition.
Specifically, the service order can be dispatched to the business of the target computer room by scheduler with reference to Figure 1B Business processing is carried out in logic module.
The present embodiment will be illustrated business processing by taking the recharging service being broadcast live in platform as an example, and user is passing through live streaming When the website of platform issues charging request, into the service condition for generating order.Specifically, the background server of live streaming platform connects It receives about the processing request for generating order, to generate corresponding with charging request service order, and by the letter of the service order Breath shows user.When user issues delivery operation for the service order, into the service condition of processing order, specifically , the background server that platform is broadcast live is received about the service request for handling order, corresponding to the delivery operation according to user The means of payment to the live streaming account charging of user.It can further include pay status in the service condition of processing order (paid, do not paid and paid unsuccessfully etc.).User cancels service order or finishing service order, then enters the industry for terminating order Business state, the background server that platform is broadcast live is received about the service request for terminating order, to cancellation service order or completion Service order is handled respectively.
S140, the business datum for being directed to the service order is updated according to the result of the business processing, wherein Mei Gesuo It states candidate computer room and is stored with the business datum.
In the present embodiment, business datum is service order data caused by different business state in life cycle.Such as In above-mentioned recharging service, business datum can be pay status and recharge amount of order etc..
Further, in the present embodiment, the candidate computer room for receiving the processing request of service order is this computer room, more new business There are two types of situations for the business datum of order: the first, this computer room is target computer room, then first updates the business datum of this computer room, then root According to the business datum of candidate computer room of the service data updating of update in addition to this computer room;The second, this computer room is not target computer room, then Business datum is updated from target computer room, further according to the business number of candidate computer room of the service data updating in addition to target computer room of update According to.
In order to improve the ability to ward off risks of business datum and the performance of business processing, the present embodiment will be for service order Business datum caused by business processing is stored in the database in each candidate computer room.On the one hand, when a candidate computer room In database corruption when, can be at any time since the database in other candidate computer rooms equally exists complete business datum It is called, or carries out the recovery of business datum, to improve the ability to ward off risks of business datum.On the other hand, due to There are complete business datums for database in each candidate's computer room, when target computer room carries out business processing to service order, The business datum in local database can be directly updated, so as to avoid time delay brought by across computer room read-write database, The time delay includes data base read-write time delay and network transfer delay.
The embodiment of the present invention is requested by receiving the processing of service order;The processing request is responded, it will be processed described The candidate computer room of service order is determined as target computer room;The service order is dispatched to the target computer room to carry out at business Reason;The business datum for being directed to the service order is updated according to the result of the business processing, wherein each candidate computer room It is stored with the business datum, thus, on the one hand, different from same service order to be dispatched to different candidate computer rooms, and It is to determine to carry out business processing with unique target computer room, solves the business consistency problem in the deployment of multimachine room, guarantee industry The correctness for logic of being engaged in.On the other hand, different from the scheme of single write-in point that the corresponding business datum of business is only independent It is written in a computer room, also different from the read and write abruption mechanism across computer room used in the scheme of strong consistency, in the present embodiment All candidate computer rooms preserve data caused by service order, and read-write is realized in target computer room, and resynchronisation is extremely Other candidate computer rooms, realize under the premise of keeping service data consistence, guarantee the ability to ward off risks of business datum, be same as by In avoiding time delay brought by across computer room read-write database, the technical effect for increasing the performance of business processing is realized.
Embodiment two
Fig. 2 is a kind of flow chart of business scheduling method provided by Embodiment 2 of the present invention.
The present embodiment is refined on the basis of the above embodiments, determines service order pair by using order note identification number The target computer room answered, referring to Fig. 2, which specifically comprises the following steps:
S210, the processing request for receiving service order.
S220, the order note identification number for obtaining the service order according to the processing request, the order note identification number is in head It is generated when the secondary processing service order.
In the present embodiment, order note identification number is used for unique identification service order.Specifically, carrying order in processing request Identification number can uniquely determine the service order.Further, service order can be obtained by inquiring the order note identification number All business datums.
It should be noted that, due to being first treated, the service order is also not for about the service request for generating order It generates, does not carry order note identification number in service request.The present embodiment will generate order in service order described in first treated Identification number.
Further, the specific implementation side that generates when the present embodiment is order note identification number service order described in first treated Formula is not construed as limiting.The present embodiment is described in detail by way of example.
Optionally, after executing step S210, determine that the service order is first treated according to the processing request, then The candidate computer room for handling request will be received as target computer room, the service order is bound with target computer room as a result,.? That is the whole life cycle in the service order all carries out business processing in the target computer room.
Further, it is determining that the service order is first treated according to the processing request, then will receive the place It, can be by determining that the candidate computer room for receiving the processing request is corresponding after the candidate computer room requested is managed as target computer room Computer room coding;The order note identification number of the service order is generated according to computer room coding.Wherein, candidate computer room is provided with uniquely Corresponding computer room coding.Order note identification number is generated by encoding according to the computer room, so that can determine by the order note identification number The corresponding candidate computer room of computer room coding.
The present embodiment to how being not construed as limiting according to the order note identification number that computer room coding generates the service order, In one embodiment, the order note identification number is the splicing of computer room coding and business flowing water coding, the computer room coding and Business Stream Water is encoded to letter and/or number combinatorics on words.
In one embodiment, for order note identification number using the form of character splicing, splicing form is flexibly customized, computer room coding It can be used as prefix, suffix or infix.It is such as indicated in the order note identification number of determining that Shenzhen computer room generates are as follows: ZH-S1-000001, ZH For computer room coding, S1 is operation code, and 000001 encodes for order flowing water.Wherein, due to may be implemented in an operation system Different business, operation code can be used for distinguishing different business, facilitate the statistics and management of carry out business.
In one embodiment, order note identification number uses numeric form, can use the value type of long or int.No The digit of same value type, order note identification number is different, and if long is 64, int is 8.Choose consolidating in order note identification number Fixed continuous Data Position storage room coding.For example, using long value type as order note identification number, order note identification number 1st is always 0, and guarantee order note identification number is positive number, and the 2nd to the 4th encodes for computer room, remaining 60 is operation code and are ordered Single flowing water coding.If computer room coding 001 represents Shenzhen computer room, then the order of the service order of business processing is carried out by Shenzhen computer room Identification number should be 0001 ... 6846977.
S230, computer room coding is read from the designated position of the order note identification number.
It, can basis due to the splicing that the order note identification number is computer room coding and business flowing water coding in the present embodiment The splicing rule that order note identification number is generated when the service order described in first treated, reads from the designated position of order note identification number Computer room coding.
Illustratively, it is illustrated by taking the order note identification SZ-S1-000001 in above-described embodiment as an example, then SZ is machine Room coding, S1 are operation code, and 000001 encodes for order flowing water.
S240, the corresponding relationship with candidate computer room is encoded according to the computer room, determines and processes from the candidate computer room The target computer room of the service order.
In the present embodiment, candidate computer room and computer room coding are corresponded, and are determined that computer room encodes, that is, be can determine candidate computer room. The corresponding relationship can store in database or configuration file, when that need to determine that computer room encodes corresponding candidate computer room, logarithm Acquisition is read out according to library or configuration file.
S250, target service type is determined according to the service condition of the service order.
In the present embodiment, the life cycle of a service order includes: to generate the industry such as order, processing order and end order Business state.Certainly, according to the difference of business, the corresponding specific service condition of service order is different.To be broadcast live in platform It is illustrated for recharging service, the corresponding service condition of service order includes generating supplement order with money, handle and supplement order and knot with money Beam supplements order etc. with money.
Further, since each service condition has a different type of service, type of service be to service condition into The subdivision of one step.Such as processing, which is supplemented order with money and is divided into again, not to be paid, pays unsuccessfully and paid type of service;End supplements order with money again It is divided into and cancels an order and complete the types of service such as order.The corresponding type of service of the service condition of the service order handled is Target service type.
S260, the service order is dispatched to the target computer room, to carry out the corresponding industry of the target service type Business processing.
In the present embodiment, business logic modules are provided in target computer room, the service order is dispatched to the target The business logic modules of computer room carry out business processing, and the business logic modules are determined according to service condition.Specifically, with reference to figure The service order can be dispatched in the business logic modules of the target computer room by scheduler and be carried out at business by 1B Reason.
S270, the business datum in the target computer room about the service order is updated according to the result of business processing.
In the present embodiment, business datum is service order data caused by different business state in life cycle.Such as In above-mentioned recharging service, business datum can be pay status and recharge amount of order etc..Target computer room is ordered to business It, in real time will be in the database of the service data updating of generation to target computer room when single progress business processing.
S280, the candidate computer room by the synchronizing traffic data extremely in addition to the target computer room.
In the present embodiment, B referring to Fig.1, in processing of the target computer room to service order, in real time by the business datum of generation In the database for updating target computer room, when target computer room completes the processing to service order, by the business in target computer room The candidate computer room of the data synchronization updating extremely in addition to the target computer room.By first update in target computer room about described The business datum of service order, it is ensured that the read-write operation of business datum is all carried out in target computer room, is avoided across computer room Database bring time delay is read and write, guarantees the real-time handled service order, saves the waiting time of user.And then it is logical The synchronizing traffic data for updating target computer room is crossed to the candidate computer room in addition to the target computer room, increases business datum The ability to ward off risks.
Specifically, in one embodiment, when the target computer room breaks down, choose one except the target computer room it The outer candidate computer room is as temporary machine room;The service order is dispatched to the temporary machine room and carries out business processing, with The business datum for being directed to the service order is updated, when guaranteeing the database corruption in a candidate computer room, due to others Database in candidate computer room equally exists complete business datum, can be called at any time, or carries out business datum Restore, to improve the ability to ward off risks of business datum.
The technical solution of the present embodiment, the processing by receiving service order are requested;Institute is obtained according to the processing request State the order note identification number of service order, when order note identification number service order described in first treated generates;From the order Computer room coding is read in the designated position of identification number;According to the corresponding relationship of computer room coding and candidate computer room, from the time Select the target computer room for determining in computer room and processing the service order;Target industry is determined according to the service condition of the service order Service type;The service order is dispatched to the target computer room, to carry out the corresponding business processing of the target service type; The business datum in the target computer room about the service order is updated according to the result of business processing;By the business datum It is synchronized to the candidate computer room in addition to the target computer room, thus, on the one hand, different from same service order to be dispatched to Different candidate computer rooms, but determine and business processing carried out with unique target computer room solve multimachine room according to O/No. Business consistency problem in deployment, guarantees the correctness of service logic.On the other hand, different from the scheme of single write-in point The corresponding business datum of business is only separately written in a computer room, also different from being used in the scheme of strong consistency across machine The read and write abruption mechanism in room, all candidate computer rooms in the present embodiment preserve data caused by service order, and read and write It is realized in target computer room, resynchronisation is realized under the premise of keeping service data consistence, guaranteed to other candidate computer rooms The ability to ward off risks of business datum is same as realizing increase industry as avoiding time delay brought by across computer room read-write database The technical effect for the performance handled of being engaged in.Further, order note identification number is the splicing of computer room coding and business flowing water coding, can be with Realize and target computer room determined according to order note identification number have and realize simple effect, and increase the speed for determining target computer room, To increase the response speed of the processing to service order.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for traffic scheduling device that the embodiment of the present invention three provides.
The present embodiment is applicable to strange land situation mostly living, and strange land is mostly living to be realized by the way of the deployment of multimachine room, specifically , by operation expanding to multiple computer rooms, when a computer room breaks down, other computer rooms still can continue at normal business Reason realizes the technical effect of natural expansion and High Availabitity so as to avoid the failure of entire operation system rank.But multimachine room portion Administration can bring Data Consistency due to the uncontrollability of the unstable of network and delay and user's access.Specifically , by operation expanding to multiple computer rooms, when carrying out business processing to business, need multiple computer room cooperations that can complete the industry Business.Further, business datum caused by business is also distributed about in multiple computer rooms, is needed during business processing across machine Premises carry out additions and deletions to business datum and change operation.It should be noted that the unstable and delay and user's access of network are not Controllability can all influence to carry out the sequence that additions and deletions change operation to business datum, so that mistake occurs in service logic.More into one Step, although strongly consistent scheme in more ground can be used, it is able to maintain the consistency of data, there is the preferable ability to ward off risks.But due to More ground strongly consistent is that a business datum storage is shared using multiple computer rooms to guarantee the consistency of data, due to network delay with The reason of reading and writing data time-consuming, performance have larger reduction, become system bottleneck.
Specifically, the present embodiment is suitable for when receiving service order, service order is dispatched to target computer room and carries out industry Business processing, guarantees the consistency and safety of business datum caused by the high-performance and business processing of business processing.Into one Step, the present embodiment is not construed as limiting application scenarios, all to determine target computer room according to the history disposition of service order Application scenarios are applicable.Wherein, the present embodiment will be carried out so that history disposition is the computer room of processed service order as an example Explanation.
The device can integrate in traffic scheduling equipment.The present embodiment is not construed as limiting traffic scheduling equipment, this implementation Example is described in detail so that traffic scheduling equipment is the server being arranged in each computer room as an example, which can be independence Server or cluster server can be property server or Cloud Server.
Specifically, B is provided with multiple candidate computer rooms when carrying out the deployment of multimachine room referring to Fig.1 in entire operation system, Wherein, candidate computer room is the computer room that can carry out business processing.Further, scheduler is provided in candidate computer room, business is patrolled Collect module, registration center and database;Wherein, scheduler, which is used to for service order to be dispatched to target computer room, carries out business processing; Business logic modules are used to exchange the service order for spending and carry out actual business processing;Registration center is then provided with entire industry The business logic modules information of business system, the business logic modules information include that business logic modules can in each candidate computer room The type of service of processing;It is stored with operation system it should be noted that being synchronized between database in each candidate's computer room and is produced Raw business datum.
Further, referring to Fig. 3, the multimachine room deployment way in conjunction with described in Figure 1B, the traffic scheduling device is specifically included Such as flowering structure: processing request receiving module 310, target computer room determining module 320, Service Processing Module 330 and business datum are more New module 340.
Request receiving module 310 is handled, the processing for receiving service order is requested.
Target computer room determining module 320 will process the candidate machine of the service order for responding the processing request Room is determined as target computer room.
Service Processing Module 330 carries out business processing for the service order to be dispatched to the target computer room.
Service data updating module 340, for being updated according to the result of the business processing for the service order Business datum, wherein each candidate computer room is stored with the business datum.
The embodiment of the present invention is requested by receiving the processing of service order;The processing request is responded, it will be processed described The candidate computer room of service order is determined as target computer room;The service order is dispatched to the target computer room to carry out at business Reason;The business datum for being directed to the service order is updated according to the result of the business processing, wherein each candidate computer room It is stored with the business datum, thus, on the one hand, different from same service order to be dispatched to different candidate computer rooms, and It is to determine to carry out business processing with unique target computer room, solves the business consistency problem in the deployment of multimachine room, guarantee industry The correctness for logic of being engaged in.On the other hand, different from the scheme of single write-in point that the corresponding business datum of business is only independent It is written in a computer room, also different from the read and write abruption mechanism across computer room used in the scheme of strong consistency, in the present embodiment All candidate computer rooms preserve data caused by service order, and read-write is realized in target computer room, and resynchronisation is extremely Other candidate computer rooms, realize under the premise of keeping service data consistence, guarantee the ability to ward off risks of business datum, be same as by In avoiding time delay brought by across computer room read-write database, the technical effect for increasing the performance of business processing is realized.
On the basis of the above embodiments, described device further include:
First treated module will then be received for determining that the service order is first treated according to the processing request The candidate computer room of the processing request is as target computer room.
On the basis of the above embodiments, described device further include:
Computer room encodes determining module, for determining that the service order is first treated according to the processing request, then After the candidate computer room for handling request will be received as target computer room, determines and receive the candidate computer room pair that the processing is requested The computer room coding answered.
Order note identification generation module, for generating the order note identification number of the service order according to computer room coding.
On the basis of the above embodiments, the target computer room determining module 320, comprising:
Order note identification acquiring unit, for obtaining the order note identification number of the service order according to the processing request, It is generated when the order note identification number service order described in first treated.
Computer room encodes reading unit, for reading computer room coding from the designated position of the order note identification number.
Target computer room determination unit, for the corresponding relationship according to computer room coding and candidate computer room, from the candidate The target computer room for processing the service order is determined in computer room.
On the basis of the above embodiments, the Service Processing Module 330, comprising:
Target service type determining units, for determining target service type according to the service condition of the service order.
Service order scheduling unit, for the service order to be dispatched to the target computer room, to carry out the target The corresponding business processing of type of service.
On the basis of the above embodiments, the service data updating module 340, comprising:
Service data updating unit, for being updated in the target computer room according to the result of business processing about the business The business datum of order.
Synchronization unit, for the candidate computer room by the synchronizing traffic data extremely in addition to the target computer room.
On the basis of the above embodiments, described device further include:
Temporary machine room chooses module, for responding the processing request, will process the candidate machine of the service order Room is determined as after target computer room, when the target computer room breaks down, chooses an institute in addition to the target computer room Candidate computer room is stated as temporary machine room.
Occasional service processing unit carries out business processing for the service order to be dispatched to the temporary machine room, with Update the business datum for being directed to the service order.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
Example IV
Fig. 4 is a kind of structural schematic diagram for traffic scheduling equipment that the embodiment of the present invention four provides.As shown in figure 4, the industry Business controlling equipment includes: processor 40, memory 41, input unit 42 and output device 43.In the traffic scheduling equipment The quantity of reason device 40 can be one or more, in Fig. 4 by taking a processor 40 as an example.Memory in the traffic scheduling equipment 41 quantity can be one or more, in Fig. 4 by taking a memory 41 as an example.The processor 40 of the traffic scheduling equipment, Memory 41, input unit 42 and output device 43 can be connected by bus or other modes, to pass through bus in Fig. 4 For connection.The traffic scheduling equipment can be computer and server etc..The present embodiment using traffic scheduling equipment as server into Row is described in detail, which can be separate server or cluster server.
Memory 41 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, the corresponding program instruction/module of business scheduling method as described in any embodiment of that present invention is (for example, business Processing request receiving module 310, target computer room determining module 320, Service Processing Module 330 and business datum in dispatching device Update module 340).Memory 41 can mainly include storing program area and storage data area, wherein storing program area can store behaviour Application program needed for making system, at least one function;Storage data area, which can be stored, uses created data according to equipment Deng.In addition, memory 41 may include high-speed random access memory, it can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 41 can It further comprise the memory remotely located relative to processor 40, these remote memories can be by network connection to setting It is standby.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 42 can be used for receiving the number or character information of input, and generate the use with traffic scheduling equipment Family setting and the related key signals input of function control, can also be the camera for obtaining image and obtain audio number According to pick up facility.Output device 43 may include the audio frequency apparatuses such as loudspeaker.It should be noted that input unit 42 and output The concrete composition of device 43 may be set according to actual conditions.
Software program, instruction and the module that processor 40 is stored in memory 41 by operation, thereby executing equipment Various function application and data processing, that is, realize above-mentioned business scheduling method.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium comprising computer executable instructions, and the computer can be held Row instruction by computer processor when being executed for executing a kind of business scheduling method, comprising:
Receive the processing request of service order;
The processing request is responded, the candidate computer room for processing the service order is determined as target computer room;
The service order is dispatched to the target computer room and carries out business processing;
The business datum for being directed to the service order is updated according to the result of the business processing, wherein each time Computer room is selected to be stored with the business datum.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The business scheduling method operation that executable instruction is not limited to the described above, can also be performed provided by any embodiment of the invention Relevant operation in business scheduling method, and have corresponding function and beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be robot, personal computer, server or the network equipment etc.) executes industry described in any embodiment of that present invention Business dispatching method.
It is worth noting that, included each unit and module are only patrolled according to function in above-mentioned traffic scheduling device It volume is divided, but is not limited to the above division, as long as corresponding functions can be realized;In addition, each function list The specific name of member is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of business scheduling method characterized by comprising
Receive the processing request of service order;
The processing request is responded, the candidate computer room for processing the service order is determined as target computer room;
The service order is dispatched to the target computer room and carries out business processing;
The business datum for being directed to the service order is updated according to the result of the business processing, wherein each candidate machine Room is stored with the business datum.
2. the method according to claim 1, wherein after receiving the processing request of service order, further includes:
It determines that the service order is first treated according to the processing request, then will receive the candidate computer room of the processing request As target computer room.
3. according to the method described in claim 2, it is characterized in that, determining that the service order is according to the processing request First treated, then after receiving the candidate computer room for handling request as target computer room, comprising:
Determine the corresponding computer room coding of candidate computer room for receiving the processing request;
The order note identification number of the service order is generated according to computer room coding.
4. the method according to claim 1, wherein the response processing request, will process the business and orders Single candidate computer room is determined as target computer room, comprising:
Obtain the order note identification number of the service order according to the processing request, the order note identification number is described in the first treated It is generated when service order;
Computer room coding is read from the designated position of the order note identification number;
According to the corresponding relationship of computer room coding and candidate computer room, determine that processing the business orders from the candidate computer room Single target computer room.
5. being carried out the method according to claim 1, wherein the service order is dispatched to the target computer room Business processing, comprising:
Target service type is determined according to the service condition of the service order;
The service order is dispatched to the target computer room, to carry out the corresponding business processing of the target service type.
6. being directed to the industry the method according to claim 1, wherein updating according to the result of the business processing The business datum of business order, comprising:
The business datum in the target computer room about the service order is updated according to the result of business processing;
By the synchronizing traffic data to the candidate computer room in addition to the target computer room.
7. -6 any method according to claim 1, which is characterized in that the processing request is being responded, by processed institute The candidate computer room for stating service order is determined as after target computer room, further includes:
When the target computer room breaks down, a candidate computer room in addition to the target computer room is chosen as interim Computer room;
The service order is dispatched to the temporary machine room and carries out business processing, to update the business for being directed to the service order Data.
8. a kind of traffic scheduling device characterized by comprising
Request receiving module is handled, the processing for receiving service order is requested;
Target computer room determining module determines the candidate computer room for processing the service order for responding the processing request For target computer room;
Service Processing Module carries out business processing for the service order to be dispatched to the target computer room;
Service data updating module, for updating the business number for being directed to the service order according to the result of the business processing According to, wherein each candidate computer room is stored with the business datum.
9. a kind of traffic scheduling equipment characterized by comprising memory and one or more processors;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now business scheduling method as described in any in claim 1-7.
10. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by For executing the business scheduling method as described in any in claim 1-7 when computer processor executes.
CN201811642420.4A 2018-12-29 2018-12-29 Service scheduling method, device, equipment and storage medium Active CN109508912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811642420.4A CN109508912B (en) 2018-12-29 2018-12-29 Service scheduling method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811642420.4A CN109508912B (en) 2018-12-29 2018-12-29 Service scheduling method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109508912A true CN109508912A (en) 2019-03-22
CN109508912B CN109508912B (en) 2021-05-28

Family

ID=65757017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811642420.4A Active CN109508912B (en) 2018-12-29 2018-12-29 Service scheduling method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109508912B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266747A (en) * 2019-04-12 2019-09-20 阿里巴巴集团控股有限公司 The computer room forwarding method and device of service request
CN111447143A (en) * 2020-03-31 2020-07-24 苏宁云计算有限公司 Business service data transmission method and device, computer equipment and storage medium
CN111930570A (en) * 2020-08-17 2020-11-13 湖南快乐阳光互动娱乐传媒有限公司 Processing system and processing method for high availability of multi-computer-room database
CN112785300A (en) * 2019-11-11 2021-05-11 网联清算有限公司 Transaction request processing method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595570A (en) * 2013-11-20 2014-02-19 中国农业银行股份有限公司广东省分行 Multi-operation framework front-mounted system, server and service processing method
CN105162879A (en) * 2015-09-24 2015-12-16 北京奇虎科技有限公司 Method, device and system for realizing data consistency among plurality of machine rooms
US20170185943A1 (en) * 2015-12-28 2017-06-29 Sap Se Data analysis for predictive scheduling optimization for product production
CN107635010A (en) * 2017-10-13 2018-01-26 网易(杭州)网络有限公司 Traffic scheduling method, device, computer-readable recording medium and electronic equipment
CN108062705A (en) * 2017-12-26 2018-05-22 北京京东金融科技控股有限公司 Information interacting method and device, system, electronic equipment, storage medium
CN109104490A (en) * 2018-08-29 2018-12-28 北京达佳互联信息技术有限公司 Service identification management method, device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595570A (en) * 2013-11-20 2014-02-19 中国农业银行股份有限公司广东省分行 Multi-operation framework front-mounted system, server and service processing method
CN105162879A (en) * 2015-09-24 2015-12-16 北京奇虎科技有限公司 Method, device and system for realizing data consistency among plurality of machine rooms
US20170185943A1 (en) * 2015-12-28 2017-06-29 Sap Se Data analysis for predictive scheduling optimization for product production
CN107635010A (en) * 2017-10-13 2018-01-26 网易(杭州)网络有限公司 Traffic scheduling method, device, computer-readable recording medium and electronic equipment
CN108062705A (en) * 2017-12-26 2018-05-22 北京京东金融科技控股有限公司 Information interacting method and device, system, electronic equipment, storage medium
CN109104490A (en) * 2018-08-29 2018-12-28 北京达佳互联信息技术有限公司 Service identification management method, device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YI XIA; PING CHEN; LIANG BAO; MENG WANG; JING YANG: ""A QoS-Aware Web Service Selection Algorithm Based on Clustering"", 《2011 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES》 *
王海燕、高美凤: ""由于机房停电导致传输业务中断情况的分析"", 《计算机光盘软件与应用》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266747A (en) * 2019-04-12 2019-09-20 阿里巴巴集团控股有限公司 The computer room forwarding method and device of service request
CN110266747B (en) * 2019-04-12 2022-04-08 创新先进技术有限公司 Method and device for switching machine room of service request
CN112785300A (en) * 2019-11-11 2021-05-11 网联清算有限公司 Transaction request processing method and device, electronic equipment and medium
CN111447143A (en) * 2020-03-31 2020-07-24 苏宁云计算有限公司 Business service data transmission method and device, computer equipment and storage medium
CN111930570A (en) * 2020-08-17 2020-11-13 湖南快乐阳光互动娱乐传媒有限公司 Processing system and processing method for high availability of multi-computer-room database

Also Published As

Publication number Publication date
CN109508912B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN109508912A (en) A kind of business scheduling method, device, equipment and storage medium
US9917913B2 (en) Large message support for a publish-subscribe messaging system
US11769150B2 (en) Transaction scheduling for block space on a blockchain
JP7152814B2 (en) Satellite operation service management system, satellite operation service management device and satellite operation service management method
CN113946431B (en) Resource scheduling method, system, medium and computing device
CN114461357B (en) Remote sensing satellite original data real-time processing flow scheduling system
CN106354563A (en) Distributed computing system for 3D (three-dimensional reconstruction) and 3D reconstruction method
CN109739684A (en) The copy restorative procedure and device of distributed key value database based on vector clock
DE602005002207T2 (en) Select a path for pipeline processing in a grid environment
CN105847231A (en) Service publishing method, device and system
CN114997414B (en) Data processing method, device, electronic equipment and storage medium
CN113506035A (en) Method, device and equipment for determining approval process
CN111163149A (en) Intelligent contract platform method based on block chain
EP0734139A2 (en) A data transfer device with cluster control
CN110399200A (en) A kind of cloud platform resource regulating method and device
US11106514B2 (en) Message stream processor microbatching
CN113347238A (en) Message partitioning method, system, device and storage medium based on block chain
CN106502842B (en) Data reconstruction method and system
CN106855869A (en) A kind of methods, devices and systems for realizing database High Availabitity
US20220405665A1 (en) Method and device for managing project by using data merging
WO2020170656A1 (en) Configuration change management method, configuration change management system, and node
EP4109364B1 (en) Method and device for managing project by using data pointer
US20220405677A1 (en) Method and device for managing project by using cost payment time point setting
US20220405676A1 (en) Method and device for managing project by using data filtering
CN113282245B (en) Method for auditing supply number and host platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190322

Assignee: GUANGZHOU HUYA TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU HUYA INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2021990000339

Denomination of invention: Service scheduling method, device, device and storage medium

Granted publication date: 20210528

License type: Common License

Record date: 20210607