CN106888244A - A kind of method for processing business and device - Google Patents

A kind of method for processing business and device Download PDF

Info

Publication number
CN106888244A
CN106888244A CN201610389319.7A CN201610389319A CN106888244A CN 106888244 A CN106888244 A CN 106888244A CN 201610389319 A CN201610389319 A CN 201610389319A CN 106888244 A CN106888244 A CN 106888244A
Authority
CN
China
Prior art keywords
operation system
business
business datum
service request
data
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
CN201610389319.7A
Other languages
Chinese (zh)
Other versions
CN106888244B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610389319.7A priority Critical patent/CN106888244B/en
Publication of CN106888244A publication Critical patent/CN106888244A/en
Application granted granted Critical
Publication of CN106888244B publication Critical patent/CN106888244B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

This application discloses a kind of method for processing business and device.Run the first operation system and the second operation system, the service request for receiving distributes to second operation system and the first operation system is processed, so that the second operation system is according to the service request, the first business datum corresponding with the service request is obtained from the first operation system, and be converted to the second business datum, monitor corresponding second business datum of second operation system, after monitoring that the first business datum of whole corresponding to first operation system is converted to the second business datum by second operation system, stop distributing service request for first operation system.First, second operation system runs simultaneously and the second operation system progressively replaces the first operation system so that the first operation system is not closed down, and will not additionally take the memory space of server, also will not additionally increase server workload.

Description

A kind of method for processing business and device
Technical field
The application is related to field of computer technology, more particularly to a kind of method for processing business and device.
Background technology
With the development of information technology, server is (such as:Website server) kind of business service that is provided of user oriented Class is increasingly enriched, and different types of business service is generally supported by corresponding operation system.
At present, the species of the business service in server is gradually diversified, and original operation system is (hereinafter referred to as:First Operation system) due to the influence of own infrastructure, and incompatible newly-increased business, and, as Operational Visit amount is continuously increased, with And the amount of storage of business datum is growing day by day, there is performance bottleneck in the first operation system, and its treatment effeciency to business may Increasingly it is unsatisfactory for actual business demand.So, server can according to the need for practical application using disclosure satisfy that actual industry The operation system of business demand is (hereinafter referred to as:Second operation system), replace original first operation system.
In the prior art, system architecture, memory mechanism of usual second operation system etc. and the first operation system not phase Together, correspondingly, the data lattice of the second business datum in the second operation system and the first business datum in the first operation system Formula is also differed, therefore during using the second operation system to replace the first operation system, it is necessary to by original first business The first business datum that system is used, is converted into being suitable to the second business datum of the second operation system.
Specifically, when the operation system of server internal is changed, the following two kinds mode is generally used:
A kind of mode is:The first operation system for carrying out data conversion will be needed to close down, and on this basis, according to second Operation system requirement, the first business datum is converted to and is suitable to the second business datum of the second operation system.
Another way is:The first operation system is not closed down so that the first operation system is normally run, then, the first industry Business normally real-time reception service request will be processed, and generate the first business datum, simultaneously, can also be according to the second industry All first business datums in first operation system are changed the second business datum of generation by the requirement of business system in real time, until All the first business datums for having stored all are changed and generate the second business datum, and now, server can be by the first business datum The second business datum with conversion generation carries out data merging, afterwards, the business datum after merging is migrated to the second business system In system, to cause the second operation system on-line running, replace the first operation system.
But, for above two mode, in the presence of certain defect:
For first way, operation system is closed down, necessarily cause corresponding business service out of service, especially In the case of a large number of services demand, this mode will have a strong impact on user and normally use business service.
For second situation, converted the second generated business datum was before the second operation system is reached the standard grade It is cannot using, it is necessary to the memory space of extra occupancy server internal, also, for all the first business datums for having stored Real-time conversion, it is necessary to expend substantial amounts of process resource, undoubtedly increased the live load of server.
The content of the invention
The embodiment of the present application provides a kind of method for processing business, is used to solve in the prior art when operation system is changed pair Business datum process the problem of existing defects.
The embodiment of the present application provides a kind of business processing device, is used to solve in the prior art when operation system is changed pair Business datum process the problem of existing defects.
The embodiment of the present application uses following technical proposals:
A kind of method for processing business that the embodiment of the present application is provided, including:
Run the first operation system and the second operation system;
The service request that will be received distributes to first operation system and the second operation system is processed so that institute The second operation system is stated according to the service request, first industry corresponding with the service request is obtained from the first operation system Business data, and be converted to the second business datum;
Monitor corresponding second business datum of second operation system;
When monitor second operation system by corresponding to first operation system all the first business datums turn After being changed to the second business datum, stop distributing service request for first operation system.
A kind of method for processing business that the embodiment of the present application is separately provided, wherein, the first operation system and the second business system System runs in the server, and methods described includes:
The service request of the second operation system the reception server distribution;
It is determined that the second business datum needed for processing the service request;
Second business datum is searched in the database corresponding to second operation system;
If not finding second business datum, obtained from the first operation system and second business datum pair The first business datum answered;
First business datum that will be got is converted to the second business datum;
The service request according to second business data processing.
A kind of method for processing business that the embodiment of the present application is separately provided, wherein, the first operation system and the second business system System runs in the server simultaneously, and methods described includes:
The service request of the first operation system the reception server distribution;
It is determined that the first business datum needed for processing the service request is processed the service request, and to described Second operation system provides all first business datums, so that proper second operation system does not find processing business request During required second business datum, obtain the first business datum corresponding with second business datum and changed, obtain second Business datum, according to the service request of the second business data processing second operation system being converted to.
A kind of business processing device that the embodiment of the present application is provided, including:
Operation module, indicates the first operation system and the operation of the second operation system;
Distribute module, the service request that will be received is distributed at first operation system and the second operation system Reason so that second business obtains corresponding with the service request according to the service request from the first operation system First business datum, and be converted to the second business datum;
Monitoring modular, monitors corresponding second business datum of second operation system;
Management module, when monitor second operation system by corresponding to first operation system all the first industry After business data are converted to the second business datum, stop distributing service request for first operation system.
A kind of business processing device that the embodiment of the present application is separately provided, wherein, the first operation system and the second business system System runs in the server, and described device includes:
Receiver module, the service request of the reception server distribution;
Determining module, it is determined that the second business datum needed for processing the service request;
Searching modul, searches second business datum in the database corresponding to second operation system;
Acquisition module, if not finding second business datum, obtains and described second from the first operation system Corresponding first business datum of business datum;
Modular converter, first business datum that will be got is converted to the second business datum;
Processing module, the service request according to second business data processing.
A kind of business processing device that the embodiment of the present application is separately provided, wherein, the first operation system and the second business system System runs in the server, and described device includes:
Receiver module, the service request of the reception server distribution;
Processing module, it is determined that the first business datum needed for processing the service request to the service request at Reason, and all first business datums are provided to second operation system, so that proper second operation system does not find When processing business asks the second required business datum, obtain the first business datum corresponding with second business datum and turned Change, obtain the second business datum, the business according to the second business data processing second operation system being converted to please Ask.
Above-mentioned at least one technical scheme that the embodiment of the present application is used can reach following beneficial effect:
When operation the first operation system in the server needs to replace, server can simultaneously run the first business system System, and for replacing the second operation system of first operation system, after server receives service request, can respectively by The service request for receiving distribute to newly, the first operation system processed, processing business ask during, if the second industry In business system and when there is the business datum needed for processing business is asked, then the second operation system can be obtained from the first operation system Corresponding first business datum is taken, and is converted into the second business datum, so that processing business is asked, it is seen then that such mode is protected Having demonstrate,proved business service can normally use, meanwhile, the second operation system is constantly obtained from the first operation system and changes life Into the second business datum, these second business datums will be used when the second operation system processing business is asked, and also would not There is the phenomenon that the second business datum cannot be used before the second operation system off-duty, and, above-mentioned conversion the second business number According to process not carry out in real time, but the first business datum is needed when processing business is asked in the second operation system When, can just be changed, such mode will not additionally increase the live load of server.Until the second operation system is by institute State after the first business datum of whole corresponding to the first operation system is converted to the second business datum, server just can be out of service First operation system, and cause that the second operation system replaces the first operation system.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
The business procession schematic diagram global based on server that Fig. 1 is provided for the embodiment of the present application;
The business procession schematic diagram based on the second operation system that Fig. 2 is provided for the embodiment of the present application;
The business procession schematic diagram based on the first operation system that Fig. 3 is provided for the embodiment of the present application;
The schematic diagram of the framework in the server that Fig. 4 is provided for the embodiment of the present application;
The business processing device structural representation global based on server that Fig. 5 is provided for the embodiment of the present application;
The business processing device structural representation based on the second operation system that Fig. 6 is provided for the embodiment of the present application;
The business processing device structural representation based on the first operation system that Fig. 7 is provided for the embodiment of the present application.
Specific embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and Corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, described embodiment is only the application one Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
As it was previously stated, the first operation system run in server is during the second operation system is replaced by, clothes Business device can close down old service system, so that the first business datum in the first operation system is converted into the second operation system institute The second business datum for needing;Or, server can keep the normal operation of the first operation system, at the same according to the second business system First business datum is converted into the second business datum by the requirement of system in real time, is changed until for all of first business datum The second business datum is generated, now, server is out of service by the first operation system, and the second business datum is migrated to second In operation system so that the second operation system on-line running.
But the equal existing defects of above two mode, a kind of mode prevents business service from normally using, and another Mode increased the extra memory space of server internal and largely take process resource.
Obviously, this is accomplished by a kind of ensure that business service is normally used and empty to the extra storage of server internal Between take less, additional processing resources and take less processing mode.Therefore in the embodiment of the present application, there is provided a kind of Business Processing Method, as shown in figure 1, the gradually transition to realize first, second operation system.
Need exist for explanation, first, second operation system described in the embodiment of the present application, it is believed that be operation Virtual system in the server, for providing corresponding business service.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
As shown in figure 1, showing the business procession in the application implementation, the process specifically includes following steps:
S101:Run the first operation system and the second operation system.
Just it has been observed that the first operation system may be considered original operation system, and the second operation system is used to replace First operation system.
In actual applications, the first operation system and the second operation system may operate at service as a kind of virtual system In device.Wherein, service implement body can be the server on website backstage, and the server internal runs different operation systems, with Just user oriented provides diversified business service.
Based on this, server will simultaneously run the first operation system and the second operation system, it is clear that such mode phase For prior art, server can't close down the first operation system, also, due to the second operation system on-line running, Therefore will not additionally take the memory space in server.
S102:The service request that will be received distributes to second operation system and the first operation system is processed. So that second operation system is according to the service request, obtain corresponding with the service request from the first operation system First business datum, and be converted to the second business datum.
Wherein, the first business datum can be stored in the corresponding database of the first operation system, similarly, the second business Data storage is in the corresponding database of the second operation system.Here not as the restriction to the application.
On the basis of being not related to and stopping operation system, server will normally provide business service, and so, server can be real When receive service request, it is contemplated that in the embodiment of the present application, the equal on-line running of first, second operation system, therefore server meeting The service request that will be received is respectively allocated to first, second operation system, is each processed in order to each operation system and is assigned to Service request.
Need exist for explanation, the negligible amounts of the second business datum corresponding to the second operation system, then, second Operation system may lack the business datum needed for processing some service requests, and for the first operation system, wherein Substantial amounts of business datum is stored, therefore in the application example, needed for the second operation system can be obtained from the first operation system Business datum, certainly, the business datum stored in the first operation system belongs to the first business datum, its data form, deposits Storage mode etc. may not meet the second operation system, therefore the second operation system has got corresponding from the first operation system After one business datum, the first business datum for getting will be changed, generation is adapted to the second industry of the second operation system Business data.
For example:Assuming that including date data in the first business datum, and date data is deposited in first and second operation system Storage mode is different, then, the date data that the second operation system will will get is converted to the day issue for meeting itself form According to.Certainly, the example does not constitute the limit to the application simply to illustrate that had differences between first, second business datum It is fixed.
With the second operation system, constantly processing business is asked, and can constantly obtain the first operation system corresponding first Business datum, and it is converted into the second business datum, it is clear that such mode will cause the second business number in the second operation system According to the continuous cumulative rises of quantity.Second operation system is obtained from the first operation system and changes the second business number of generation According to, can be used by the second operation system, that is to say, that the mode in the embodiment of the present application, be not in the second business datum Situation that is unavailable, needing the extra memory space for taking server.
S103:Monitor corresponding second business datum of second operation system.
Under practical application scene, the second operation system constantly obtains the first business datum simultaneously from the first operation system It is converted into the second business datum, it will be understood that by after the sufficiently long time, the second operation system can be by the first operation system The first business datum of whole be converted into the second business datum, now, the second operation system just can be no longer dependent on the first industry Business system.So, for this step, the second business datum is monitored, exactly monitor whether the second business datum has corresponded to The first whole business datums.
S104:When monitor second operation system by corresponding to first operation system all the first business numbers After the second business datum is converted to, stop distributing service request for first operation system.
Just it has been observed that the second operation system by all the first business datums be converted into the second business datum when, the second business System just can replace the first operation system, that is, now server by the first operation system out of service, it is the first industry to stop Business system distributes service request.So far, the second operation system just completes the process for progressively replacing the first operation system.
By above-mentioned steps, when operation the first operation system in the server needs to replace, server can same luck The operation system of row first, and for replacing the second operation system of first operation system, asked when server receives business After asking, the service request that will can be received respectively distribute to newly, the first operation system processed, processing business request mistake Cheng Zhong, if during business datum in the second operation system and needed for there is processing business request, the second operation system can be from the Corresponding first business datum is obtained in one operation system, and is converted into the second business datum, so that processing business is asked, can See, such mode ensure that business service can be used normally, meanwhile, the second operation system is constantly from the first operation system Middle acquisition simultaneously changes the second business datum of generation, and these second business datums will be in the second operation system processing business request when institute Use, the phenomenon that the second business datum cannot be used before the second operation system off-duty would not also occur, and, above-mentioned turn The process for changing the second business datum is not carried out in real time, but is needed when processing business is asked in the second operation system During one business datum, can just be changed, such mode will not additionally increase the live load of server.Until the second industry After the first business datum of whole corresponding to first operation system is converted to the second business datum by business system, server is Meeting the first operation system out of service, and cause that the second operation system replaces the first operation system.
It should be noted that the executive agent that above-described embodiment provides each step of method may each be same equipment, Specifically, executive agent can be second terminal.
In actual applications, at the initial stage of the second operation system on-line running, the quantity of the second business datum therein compared with It is few, it is clear that now the second operation system is not appropriate for processing substantial amounts of service request;With the second industry in the second operation system The quantity of data of being engaged in gradually increases, and the second operation system just can gradually process more service requests.Based on this, in the application To be that the second operation system distributes service request, tool according to the quantity of the second business datum in the second operation system in embodiment For body, respectively described second operation system and the first operation system distribute service request, specifically include:Second is monitored respectively The quantity information of the business datum in operation system and the first operation system, according to the quantity information for monitoring, respectively Second operation system and first operation system distribution service request.
Explanation is needed exist for, when the second operation system is run for the first time, may not had simultaneously in the second operation system Second business datum (it is believed that now the quantity of the second business datum is zero), in this case, server is being First, during the second operation system distribution service request, so that it may the distribution of service request is carried out according to allocation proportion set in advance, have For body, according to the quantity information for monitoring, respectively described second operation system and first operation system are distributed Service request, specifically includes:When not existing business datum in monitoring second operation system, according to set in advance point It is second operation system and first operation system distribution service request with ratio.
For example:Assuming that predetermined allocation proportion is 1:99, i.e. if server receives 100 service requests altogether, that , 99 service requests therein will be distributed to the first operation system, and remaining 1 service request is distributed to second Operation system.
After second operation system is processed service request, the second business datum will be accumulated, then, as the application A kind of mode in embodiment, it may be determined that the ratio gone out between the second number of services and the first business datum, so as to as the First, the second operation system distribution service request, specifically, according to the quantity information for monitoring, respectively described second Operation system and first operation system distribution service request, specifically include:Determine the quantity of second business datum with The ratio of the quantity of the first business datum, is second operation system and first operation system point according to the ratio With service request.Wherein, the ratio is bigger, then for the quantity of the service request of second operation system distribution is more.
For example:Assuming that the quantity of the second business datum in the second operation system, with the first business in the first operation system The ratio of the quantity of data is 1:9, then, server just can be according to the ratio for new, the first operation system distribution business is asked Ask, i.e. the quantity for distributing to the service request of the second operation system is:The 1/10 of total business number of requests, distributes to the first industry The quantity of the service request of business system is:The 9/10 of total business number of requests.
With in the second operation system, the second business datum is constantly accumulated, and its quantity can gradually increase, it is assumed that the second business The quantity of the second business datum in system, is 3 with the ratio of the quantity of the first business datum in the first operation system:7, that , server-assignment can just be changed into the quantity of service request of the second operation system:The 3/10 of total business number of requests, phase Ying Di, the quantity for distributing to the service request of the first operation system can just be changed into:The 7/10 of total business number of requests.
The examples discussed show the ratio according to new, the first business datum, the mode of adjustment service request distribution, in reality In, in addition to the new, ratio of the first business datum this factor, can also be according to the new, work of the first operation system The factors such as load, treatment effeciency adjust the distribution of service request, and the restriction to the application is not constituted here.
Additionally, after the first business datum is converted into the second business datum by the second operation system, if be converted to Two business datums are inaccurate, then, the business result generated after processing service request will be caused inaccurate, it is clear that The normal of business service is so had a strong impact on to use.
So, cause the phenomenon of business result error because of the inaccurate of the second business datum in order to avoid appearance, just Need to verify the second operation system.Specifically, before stopping as first operation system distribution service request, Methods described also includes:When the quantity of the second business datum in monitoring second operation system exceedes given threshold, Second operation system is verified.
Used as a kind of mode in the embodiment of the present application, given threshold can be specific numerical value, or value range, For example, under some application scenarios, given threshold can be:The number of the quantity of the second business datum and the first business datum Amount ratio is:10%th, 50%, 80%.That is, the ratio of the quantity when the quantity and the first business datum of the second business datum Example is when reaching 10%, and server will be verified to the second operation system, similar, when the quantity and the of the second business datum When the ratio of the quantity of one business datum reaches 50% and 80%, server can be verified to the second operation system respectively.
In the embodiment of the present application, the second operation system is verified, is exactly verified as handled by the second operation system Service request business result whether with the first operation system treatment service request business result it is consistent.Specifically, Second operation system is verified, is specifically included:
In the request for receiving, be respectively allocated for the service request for selecting by the service request of selection setting quantity To second operation system and the first operation system, to cause second operation system with the first operation system to the industry Business request is processed, using the business result of second operation system as business result to be verified, and by first industry The business result of business system compares the business result to be verified and the demarcation business result as business result is demarcated.
In actual applications, by server it is selected setting quantity service request, can be according to setting quantity, with Machine selects service request, such as:In 100 service requests received by the server moment, 20 business of random selection please Ask, the service request used as checking procedure, distribute to new, the first operation system.In addition to this it is possible to be directed to not Generic service request, selects the service request of setting quantity, such as from each class service request respectively:Server is received To 50 bill inquiry requests, and 30 payment requests, then, 10 bill inquiry requests can be selected, and select 5 branch Request is paid, respectively as the service request that checking procedure is used, first, second operation system is distributed to.Above two is selected The mode of service request does not constitute the restriction to the application.
First, second operation system will be processed the selected service request of server, each corresponding industry of self-generating Business result, then, after comparing, if business result to be verified is consistent with the demarcation business result, it is believed that The second business datum that second operation system is changed is correct, conversely, then it is believed that what the second operation system was changed Second business datum occurs in that mistake, can subsequently carry out the operations such as investigation, amendment, is not especially limited here.
For operation the second operation system in the server, a kind of Business Processing side is provided in the embodiment of the present application Method, as shown in Figure 2.Specifically, the first operation system and the second operation system are run in the server, and the method is specifically wrapped Include following steps:
S201:The service request of the second operation system the reception server distribution.
S202:It is determined that the second business datum needed for processing the service request.
S203:Second business datum is searched in the database corresponding to second operation system.
S204:If not finding second business datum, obtained from the first operation system and second business Corresponding first business datum of data.
S205:First business datum that will be got is converted to the second business datum.
S206:The service request according to second business data processing.
By above-mentioned steps, the second operation system while normal operation, can also using by the way of " lazy to load " from Business datum needed for processing business request is obtained in first operation system, in other words, the second operation system can't be in real time The first business datum is obtained from the first operation system to be changed, but only during processing business is asked, this During in the corresponding database of two operation systems itself and in the absence of the second business datum needed for processing the service request, just understand from Corresponding first business datum is obtained in first operation system, and changes the second business datum of generation.Obviously, such mode had been both The memory space in server will not be additionally taken, also will not additionally increase the live load of server.
For the second operation system, obtained from the first operation system and second business datum corresponding first Business datum, specifically includes:The corresponding Data Identification of second business datum is determined, according to the Data Identification, described The first business datum with the Data Identification is searched in first operation system, first business datum is obtained.
As a kind of mode in the embodiment of the present application, it is believed that the business stored in first, second operation system Data are respectively provided with corresponding Data Identification, in other words, although first, second business datum is due to system architecture, memory mechanism It is different and have differences, but for the business datum of each classification, there is identical or phase in first, second operation system The Data Identification of association so that, the second operation system can just be obtained from the first operation system according to Data Identification needed for First business datum, is changed.
Specifically, first business datum that will be got is converted to the second business datum, specifically includes:According to setting Fixed data form, the data form of first business datum that will be got is changed, and obtains the second business datum.
Specifically, by taking date data as an example:It is assumed that the form of the date data in the first operation system is " XX days XX months XXXX ", and the form of date data required in the second operation system is for " (date format is represented YY-MM-DD: Year-month-day) " so that, the date data that the second operation system will will get from the first operation system is according to " YY-MM- The form of DD " is changed.
Above-mentioned example is the conversion to the character format of business datum, in Additional examples of composition in this application, to data The conversion of form can also include the conversion to the key-value storage format of business datum.
For example:It is assumed that first, second operation system is provided which shopping at network bill inquiry business, and it is assumed that compared to For one operation system, bank statement business interface is increased in the system architecture of the second operation system, and (interface is used to obtain Bank card billing data), then, in the billing data (that is, the second business datum) corresponding to the second operation system, just include Bank card billing data and original non-banking card billing data.In this example, the second operation system obtains the first business After the original billing data of system (that is, the first business datum), original billing data can be converted into bank card billing data With non-banking card billing data.
Certainly, above-mentioned example does not constitute the restriction to the application.
Additionally, for method as shown in Figure 2, the method also includes:According to the Data Identification, to described first Operation system sends update notification request, to cause first industry corresponding with the Data Identification in first operation system When business data update, data update notification is generated according to the Data Identification, be sent to second operation system, receive described Data update notification, according to the data update notification, obtains corresponding with the Data Identification from first operation system , update after the first business datum.
Specifically, after the second operation system obtains corresponding first business datum from the first operation system, due to First operation system is still normally run, then, the first operation system processing business ask during, the first business datum (the first business datum here refers to the first business datum after the second operation system has been obtained) is it may happen that change (such as:The variation of the first business datum that operation is caused such as increase, delete, changing), so, according to the above, once the first business number According to there occurs variation, then, the first operation system will send update notification to the second operation system.
As the quantity of the second business datum corresponding to the second operation system is continuously increased, finally just can progressively replace First operation system, so that, server can be offline (that is, out of service) by the first operation system.
For operation the second operation system in the server, a kind of Business Processing side is provided in the embodiment of the present application Method, as shown in Figure 3.Specifically, the first operation system and the second operation system are run in the server, and the method is specifically wrapped Include following steps:
S301:The service request of the first operation system the reception server distribution;
S302:It is determined that the first business datum needed for processing the service request is processed the service request, and All first business datums are provided to second operation system.
This step will cause the second business datum needed for second operation system does not find processing business request When, obtain corresponding with second business datum the first business datum and changed, the second business datum is obtained, according to changing The service request of the second business data processing second operation system for arriving.
Second operation system obtains the mode of the first business datum as described by foregoing teachings, no longer specifically repeats here.
Additionally, method as shown in Figure 3 also includes:After second operation system gets the first business datum, connect The update notification request of second operation system transmission is received, wherein, it is described comprising what is got in the update notification request The Data Identification of the first business datum;After first service data updating, according to the Data Identification, update notification is generated Second operation system is sent to, to cause second operation system according to the update notification, the after updating is obtained One business datum.
Analogously, the first operation system notifies that the second operation system carries out the mode of data renewal, also such as foregoing teachings It is illustrated, no longer specifically repeat here.
With reference to above-mentioned such as the method for Fig. 1~3, in the embodiment of the present application, server, the first operation system and the second industry Framework between business system is as shown in Figure 4.In fig. 4, the first business datum corresponding to the first operation system is stored in data In the A of storehouse, correspondingly, the second business datum corresponding to the second operation system is stored in database B.First, second business system System simultaneously on-line running, respective service request is processed respectively, in this process, the database B corresponding to the second operation system When interior no processing business asks the second required business datum, the second operation system will be by the way of lazyness loading from the first industry Corresponding first business datum is obtained in the database A of business system, and changes the second business datum of generation and be stored in database B In, and according to the second business data processing service request of conversion generation.With the quantity of the second business datum in database B Be continuously increased, the second operation system just little by little by the first operation system replace, until the second business datum in database B During through corresponding to the first whole business datums, server will be out of service by the first operation system, now, the second business system System will completely replace the first operation system.
It is above the method for processing business that the embodiment of the present application is provided, based on same thinking, the embodiment of the present application is also carried For following business processing device:
As shown in figure 5, for server, a kind of business processing device that the embodiment of the present application is provided, the device Including:
Operation module 501, indicates the first operation system and the operation of the second operation system.
Distribute module 502, the service request that will be received distributes to first operation system and the second operation system is entered Row treatment so that second operation system is obtained and the service request according to the service request from the first operation system Corresponding first business datum, and be converted to the second business datum.
Monitoring modular 503, monitors corresponding second business datum of second operation system.
Management module 504, when monitoring second operation system by all the corresponding to first operation system After one business datum is converted to the second business datum, stop distributing service request for first operation system.
The distribute module 502, monitors the quantity of the business datum in the first operation system and the second operation system respectively Information, according to the quantity information for monitoring, respectively described first operation system and the second operation system distribution business Business request.
The distribute module 502, determines the ratio of the quantity of first business datum and the quantity of the second business datum, It is first operation system and second operation system distribution service request according to the ratio;
Wherein, the ratio is bigger, then for the quantity of the service request of second operation system distribution is more.
Described device also includes:Correction verification module 505, in the monitoring modular 503 monitors second operation system The second business datum quantity exceed given threshold when, second operation system of the correction verification module 505 pairs is verified.
The correction verification module 505, in the request for receiving, the service request of selection setting quantity, by described in selection Service request is respectively allocated to first operation system and the second operation system, to cause first operation system and second Operation system is processed the service request, using the business result of second operation system as business knot to be verified Really, and using the business result of first operation system as business result is demarcated, the business result to be verified and institute are compared State demarcation business result.
As shown in fig. 6, for operation the second operation system in the server, the embodiment of the present application provided one Business processing device is planted, specifically, the first operation system and the second operation system are run in the server, the device bag Include:
Receiver module 601, the service request of the reception server distribution;
Determining module 602, it is determined that the second business datum needed for processing the service request;
Searching modul 603, searches second business datum in the database corresponding to second operation system;
Acquisition module 604, if not finding second business datum, obtains and described from the first operation system Corresponding first business datum of two business datums;
Modular converter 605, first business datum that will be got is converted to the second business datum;
Processing module 606, the service request according to second business data processing.
The acquisition module 604, determines the corresponding Data Identification of second business datum, according to the Data Identification, The first business datum with the Data Identification is searched in first operation system, first business datum is obtained.
Described device also includes:Update module 607, according to the Data Identification, sends more to first operation system It is new to notify request, to cause during corresponding with the Data Identification the first service data updating in first operation system, Data update notification is generated according to the Data Identification, second operation system is sent to, the data update notification is received, According to the data update notification, obtained from first operation system it is corresponding with the Data Identification, update after the One business datum.
As shown in fig. 7, for operation the first operation system in the server, the embodiment of the present application provided one Business processing device is planted, specifically, the first operation system and the second operation system are run in the server, the device bag Include:
Receiver module 701, the service request of the reception server distribution;
Processing module 702, it is determined that the first business datum needed for processing the service request is carried out to the service request Treatment, and all first business datums are provided to second operation system, so that proper second operation system is not searched During the second business datum to needed for treatment service request, obtaining corresponding with second business datum the first business datum is carried out Conversion, obtains the second business datum, according to the business of the second business data processing second operation system being converted to Request.
Described device also includes:Update module 703, after second operation system gets the first business datum, connects The update notification request of second operation system transmission is received, wherein, it is described comprising what is got in the update notification request The Data Identification of the first business datum;After first service data updating, according to the Data Identification, update notification is generated Second operation system is sent to, to cause second operation system according to the update notification, the after updating is obtained One business datum.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information Store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Defined according to herein, calculated Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of key elements not only include those key elements, but also wrapping Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment is intrinsic wants Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Form.And, the application can be used to be can use in one or more computers for wherein including computer usable program code and deposited The shape of the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent Replace, improve etc., within the scope of should be included in claims hereof.

Claims (19)

1. a kind of method for processing business, it is characterised in that including:
Run the first operation system and the second operation system;
The service request that will be received distributes to first operation system and the second operation system is processed so that described Two operation systems obtain the first business number corresponding with the service request according to the service request from the first operation system According to being converted to the second business datum;
Monitor corresponding second business datum of second operation system;
When monitoring that second operation system is converted to the first business datum of whole corresponding to first operation system After second business datum, stop distributing service request for first operation system.
2. the method for claim 1, it is characterised in that respectively described second operation system and the first operation system point With service request, specifically include:
The quantity information of the business datum in the first operation system and the second operation system is monitored respectively;
According to the quantity information for monitoring, respectively described first operation system and second operation system distribute business Request.
3. method as claimed in claim 2, it is characterised in that according to the quantity information for monitoring, respectively described Two operation systems and first operation system distribution service request, specifically include:
It is described the according to allocation proportion set in advance when not existing business datum in monitoring second operation system Two operation systems and first operation system distribution service request.
4. method as claimed in claim 2, it is characterised in that according to the quantity information for monitoring, respectively described Two operation systems and first operation system distribution service request, specifically include:
Determine the ratio of the quantity of first business datum and the quantity of the second business datum;
It is first operation system and second operation system distribution service request according to the ratio;
Wherein, the ratio is bigger, then for the quantity of the service request of second operation system distribution is more.
5. method as claimed in claim 4, it is characterised in that stop for first operation system distribution service request it Before, methods described also includes:
When the quantity of the second business datum in monitoring second operation system exceedes given threshold, to second industry Business system is verified.
6. method as claimed in claim 5, it is characterised in that verified to second operation system, specifically included:
In the request for receiving, the service request of selection setting quantity;
The service request for selecting is respectively allocated to first operation system and the second operation system, to cause described the One operation system is processed the service request with the second operation system;
Using the business result of second operation system as business result to be verified, and by the business of first operation system Result is used as demarcation business result;
Compare the business result to be verified and the demarcation business result.
7. a kind of method for processing business, it is characterised in that the first operation system and the operation of the second operation system in the server, Methods described includes:
The service request of the second operation system the reception server distribution;
It is determined that the second business datum needed for processing the service request;
Second business datum is searched in the database corresponding to second operation system;
If not finding second business datum, obtain corresponding with second business datum from the first operation system First business datum;
First business datum that will be got is converted to the second business datum;
The service request according to second business data processing.
8. method as claimed in claim 7, it is characterised in that obtained from the first operation system and second business datum Corresponding first business datum, specifically includes:
Determine the corresponding Data Identification of second business datum;
According to the Data Identification, the first business datum with the Data Identification is searched in first operation system;
Obtain first business datum.
9. method as claimed in claim 8, it is characterised in that first business datum that will be got is converted to the second industry Business data, specifically include:
According to the data form of setting, the data form of first business datum that will be got is changed, and obtains second Business datum.
10. method as claimed in claim 8, it is characterised in that methods described also includes:
According to the Data Identification, send update notification to first operation system and ask, to cause the first business system In system during first service data updating corresponding with the Data Identification, data are generated according to the Data Identification and updates logical Know, be sent to second operation system;
Receive the data update notification;
According to the data update notification, after, renewal corresponding with the Data Identification is obtained from first operation system The first business datum.
11. a kind of method for processing business, it is characterised in that the first operation system and the second operation system operate in server In, methods described includes:
The service request of the first operation system the reception server distribution;
It is determined that the first business datum needed for processing the service request is processed the service request, and to described second Operation system provides all first business datums, so that proper second operation system does not find processing business and asks required The second business datum when, obtain corresponding with second business datum the first business datum and changed, obtain the second business Data, according to the service request of the second business data processing second operation system being converted to.
12. methods as claimed in claim 11, it is characterised in that methods described also includes:
After second operation system gets the first business datum, the update notification for receiving second operation system transmission please Ask, wherein, the Data Identification comprising first business datum for having got in the update notification request;
After first service data updating, according to the Data Identification, generation update notification is sent to second business System, to cause that second operation system, according to the update notification, obtains the first business datum after updating.
A kind of 13. business processing devices, it is characterised in that including:
Operation module, indicates the first operation system and the operation of the second operation system;
Distribute module, the service request that will be received distributes to second operation system and the first operation system is processed, So that second operation system is according to the service request, obtain corresponding with the service request from the first operation system First business datum, and be converted to the second business datum;
Monitoring modular, monitors corresponding second business datum of second operation system;
Management module, when monitor second operation system by corresponding to first operation system all the first business numbers After the second business datum is converted to, stop distributing service request for first operation system.
14. devices as claimed in claim 13, it is characterised in that the distribute module, monitor respectively the first operation system and The quantity information of the business datum in the second operation system, according to the quantity information for monitoring, respectively described first industry Business system and second operation system distribution service request.
15. devices as claimed in claim 14, it is characterised in that the distribute module, when monitoring the second business system It is second operation system and the first business system according to allocation proportion set in advance when not existing business datum in system System distribution service request.
16. devices as claimed in claim 14, it is characterised in that the distribute module, determine second business datum The ratio of the quantity of quantity and the first business datum, is second operation system and first business according to the ratio System distributes service request;
Wherein, the ratio is bigger, then for the quantity of the service request of second operation system distribution is more.
17. devices as claimed in claim 16, it is characterised in that described device also includes:Correction verification module, when the monitoring mould When block monitors that the quantity of the second business datum in second operation system exceedes given threshold, the correction verification module is to institute The second operation system is stated to be verified.
18. a kind of business processing devices, it is characterised in that the first operation system and the second operation system are transported in the server OK, described device includes:
Receiver module, the service request of the reception server distribution;
Determining module, it is determined that the second business datum needed for processing the service request;
Searching modul, searches second business datum in the database corresponding to second operation system;
Acquisition module, if not finding second business datum, obtains and second business from the first operation system Corresponding first business datum of data;
Modular converter, first business datum that will be got is converted to the second business datum;
Processing module, the service request according to second business data processing.
19. a kind of business processing devices, it is characterised in that the first operation system and the second operation system are transported in the server OK, described device includes:
Receiver module, the service request of the reception server distribution;
Processing module, it is determined that the first business datum needed for processing the service request is processed the service request, and All first business datums are provided to second operation system, so that proper second operation system does not find treatment industry During the second business datum for being engaged in needed for request, obtain corresponding with second business datum the first business datum and changed, obtain To the second business datum, according to the service request of the second business data processing second operation system being converted to.
CN201610389319.7A 2016-06-02 2016-06-02 Service processing method and device Active CN106888244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610389319.7A CN106888244B (en) 2016-06-02 2016-06-02 Service processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610389319.7A CN106888244B (en) 2016-06-02 2016-06-02 Service processing method and device

Publications (2)

Publication Number Publication Date
CN106888244A true CN106888244A (en) 2017-06-23
CN106888244B CN106888244B (en) 2020-04-28

Family

ID=59176428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610389319.7A Active CN106888244B (en) 2016-06-02 2016-06-02 Service processing method and device

Country Status (1)

Country Link
CN (1) CN106888244B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359034A (en) * 2018-09-07 2019-02-19 平安科技(深圳)有限公司 A kind of operation system test method, computer readable storage medium and terminal device
CN110321339A (en) * 2019-07-04 2019-10-11 深圳乐信软件技术有限公司 A kind of data migration method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192937A (en) * 2006-11-24 2008-06-04 华为技术有限公司 A hot deployable method and its system
CN101218565A (en) * 2005-07-06 2008-07-09 瑞士银行股份有限公司 Technique for migrating a host environment to a new system platform
US20090088142A1 (en) * 2007-09-28 2009-04-02 Microsoft Corporation Device migration
CN101763286A (en) * 2008-12-22 2010-06-30 国际商业机器公司 System and method for shifting workloads across platform in a hybrid system
CN104598463A (en) * 2013-10-31 2015-05-06 阿里巴巴集团控股有限公司 Method and method for switching database
CN105630590A (en) * 2014-11-28 2016-06-01 阿里巴巴集团控股有限公司 Business information processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101218565A (en) * 2005-07-06 2008-07-09 瑞士银行股份有限公司 Technique for migrating a host environment to a new system platform
CN101192937A (en) * 2006-11-24 2008-06-04 华为技术有限公司 A hot deployable method and its system
US20090088142A1 (en) * 2007-09-28 2009-04-02 Microsoft Corporation Device migration
CN101763286A (en) * 2008-12-22 2010-06-30 国际商业机器公司 System and method for shifting workloads across platform in a hybrid system
CN104598463A (en) * 2013-10-31 2015-05-06 阿里巴巴集团控股有限公司 Method and method for switching database
CN105630590A (en) * 2014-11-28 2016-06-01 阿里巴巴集团控股有限公司 Business information processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359034A (en) * 2018-09-07 2019-02-19 平安科技(深圳)有限公司 A kind of operation system test method, computer readable storage medium and terminal device
CN110321339A (en) * 2019-07-04 2019-10-11 深圳乐信软件技术有限公司 A kind of data migration method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106888244B (en) 2020-04-28

Similar Documents

Publication Publication Date Title
US20170083579A1 (en) Distributed data processing method and system
JP6716727B2 (en) Streaming data distributed processing method and apparatus
CN102880557B (en) look-up method of multistage distribution type high-speed cache of heterogeneous data source
KR101959153B1 (en) System for efficient processing of transaction requests related to an account in a database
US9111235B2 (en) Method and system to evaluate risk of configuration changes in an information system
CN106407207B (en) Real-time newly-added data updating method and device
CN108427684A (en) Data query method, apparatus and computing device
CN103914399A (en) Disk cache method and device in parallel computer system
CN106095589A (en) Partition allocation method, device and system
CN108319618B (en) Data distribution control method, system and device of distributed storage system
CN106293869A (en) A kind of resource allocation methods and device
CN105243001A (en) Abnormal alarm method and apparatus for business object
CN104601486A (en) Method and device for shunt of network flow
CN107832446B (en) Configuration item information searching method and computing device
CN106201839A (en) The information loading method of a kind of business object and device
CN106888244A (en) A kind of method for processing business and device
CN104239520B (en) A kind of HDFS data block Placement Strategies based on historical information
CN110659296B (en) Storage method, device, equipment and computer readable medium
CN108880896A (en) A kind of program gray scale dissemination method and device based on mainframe
CN110298031B (en) Dictionary service system and model version consistency distribution method
CN106570029A (en) Data processing method and data processing system of distributed relation type database
CN106470218A (en) The method and apparatus that under a kind of network platform, resource content reclaims
CN104618414A (en) Implementation method of distributed service, service agent device and distributed system
CN111131474A (en) Method, device and medium for managing user protocol based on block chain
CN106357704A (en) Method and device for invoking service on basis of development environments

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

Effective date of registration: 20201014

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201014

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.