Specific implementation mode
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the 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, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical solution that each embodiment of the application provides is described in detail.
Fig. 1 is the service request processing method schematic flow chart of the heterogeneous system of the application one embodiment.Shown in Fig. 1
The executive agent of method is not limited to heterogeneous system server device.
As shown in Figure 1, at S102, service request is received, service request carries user identifier and destination service in isomery
The initial call interface of system.
Service request can be sent to server device by ustomer premises access equipment.The service request can be that request server-side is set
It is standby that corresponding data are handled based on heterogeneous system model, can also be that request server device carries out instruction or data
Transmission and processing etc..Service request is usually sent out by ustomer premises access equipment, and relevant clothes are called after being received by server device
Business handles service request.
Ustomer premises access equipment send service request can carry user identifier and destination service heterogeneous system initial tune
Use interface.User identifier can be the mark of ustomer premises access equipment itself, including the account letter that user is registered by ustomer premises access equipment
Breath etc..User identifier can also be other identification informations related to user.Server device upon receipt of a service request may be used
To call initial call interface to handle service request.Initial call interface, which determines, handles the service request
When, service that server device is called.
At S104, the corresponding interface invocation pattern of user identifier is determined.
Based on user identifier, server device may determine that corresponding interface invocation pattern.It is set in heterogeneous system server-side
In standby, during carrying out upgrading, server device can be based on it is former service or new demand servicing to service request at
Reason.Former service be relative to new demand servicing in contrast.Former service can be some services reached the standard grade, and new demand servicing can be not
Some services reached the standard grade, new demand servicing usually require just to can decide whether to reach the standard grade after test.Server device can be with
Service request is handled by the former service before non-upgrading.Server device is during upgrading, if needs
It calls new demand servicing to handle service request, can be judged by user identifier.The corresponding interface tune of user identifier
Can be that former service is called to handle service request with pattern, can also be call new demand servicing to service request at
Reason.
At step S106, it is based on initial call interface and interface invocation pattern, invocation target service is in heterogeneous system
The corresponding object invocation interface of interface invocation pattern.
Based on interface invocation pattern, server device can determine the former service of calling or new demand servicing.It is connect based on initial call
Mouthful, server device can determine the corresponding object invocation interface of destination service interface invocation pattern in heterogeneous system.Target
Service can be former service or new demand servicing, and former service or new demand servicing can be called by object invocation interface.
Optionally, as an example, when destination service is former service, initial call interface can connect with object invocation
Mouth is identical, can directly invoke former service and handle service request.When destination service is new demand servicing, initial call interface
Can be different from object invocation interface, initial call interface can be switched to object invocation interface, to call new demand servicing to clothes
Business request is handled.
The user identifier carried based on service request can determine interface invocation pattern, be based on interface invocation pattern and service
Ask carry initial call interface, can with invocation target service in heterogeneous system the corresponding object invocation of interface invocation pattern
Interface.In this way, by the way that initial call interface is switched to object invocation interface, the calling to different services can be completed, entirely
Process does not need shutdown operation, promotes user experience, and user will not perceive the calling of service, can be in user's unaware
The upgrading to heterogeneous system model is completed under state.
Optionally, as an example, same service can externally provide identical calling interface in heterogeneous system.Example
Such as, for the calculating of the indices of finance product, such as income volume, earning rate, these indexs are required to call corresponding clothes
Business is calculated, and the same calling interface provided in heterogeneous system that services is identical, can be in initial call interface and target
It achieves accurate switching between calling interface.
Optionally, in some embodiments, it when determining the corresponding interface invocation pattern of user identifier, can be based on local
Subscriber identity data determines the corresponding interface invocation pattern of user identifier.Local user identifier can be that heterogeneous system changes in upgrading
The stored local user identifier data of server device before making.
Optionally, as an example, determine that the corresponding interface of user identifier calls mould based on local user identifier data
When formula, when user identifier be local user identifier data, and not in the white list of setting when, it may be determined that first interface call
Pattern;Wherein, first interface invocation pattern is for being called initial call interface.When the non-local user identifier of user identifier
Data, or when user identifier is local user identifier data, and when in the white list of setting, it may be determined that second interface tune
With pattern, wherein second interface invocation pattern is used for being called by the object invocation interface after initial call interface conversion.
Optionally, as an example, white list can record some users mark of setting as a kind of screening rule
Know.When user identifier be local user identifier data, and not in the white list of setting when, server device can be by initial
Calling interface calls former service to handle service request.When user identifier is not marked in local user identifier data or user
When knowing in local user identifier data and white list, server device can be by switching to target tune by initial call interface
With interface, then new demand servicing is called to handle service request by object invocation interface.
Optionally, as an example, for the user identifier being added in white list, if object invocation interface calls
When new demand servicing is abnormal the processing of service request, including program or data processing mistake, server device can be returned
(Rollback) operation is rolled, i.e., program or error in data is handled, program or data is restored to last correct status.
Therefore, rolling back action may be implemented by white list.
Since the quantity for the user identifier being added in white list can be controlled, server device can be controlled
Make the percentage handled service request by new demand servicing.For example, can successively be passed by 5%, 10% etc. by white list
Local user identifier data are added in white list by the mode of increasing, and the percentage of new demand servicing is issued to realize control to user
Than.For example, it is assumed that white list includes 5% local user identifier data.When these 5% user identifiers can be by newly taking
When often processing service request of doing honest work, then the user identifier quantity in white list can be further increased.On the contrary, then can be to newly taking
Business is detected maintenance.A gray scale publication can be formed by white list, realizes the smooth transition for function of not reaching the standard grade.
Optionally, as an example, a part can be selected from the user of " the poly- precious finance product of ant ", such as selected
One any active ues.These users of selection can be by calling new demand servicing to handle service request.Pass through subsequent number
The service condition of new demand servicing can be determined according to collection and a large amount of data analysis and investigation.For example, passing through real time data inspecting
The data such as server device stability, access times, frequency of use can be monitored and legacy data compares, so that it is determined that newly
The scope of release of service, and whether large area launches new demand servicing.
Wherein, when interface invocation pattern is second interface invocation pattern, in the embodiment of the present application, optionally, Fig. 1 institutes
The method shown further includes:
Service request is converted to for by the service request of object invocation interface;
Transformed service request is handled based on object invocation interface.
Optionally, as an example, as shown in Fig. 2, can be converted to service request for by mesh based on adaptation layer
Mark the service request that calling interface receives.There are one object invocation interface can at least have, adaptation layer can pass through service code
It configures to be adapted to the conversion of the corresponding object invocation interface of different business scene.As shown in Fig. 2, service request can be converted to
Corresponding A interface requests, B interface request or C interface request.New demand servicing can be called to transformed based on object invocation interface
Service request is handled, such as corresponding A processing, B processing or C processing.
In the embodiment of the present application, optionally, method shown in FIG. 1 further includes:
The handling result of object invocation interface is converted into the handling result for being initially invoked interface;
Based on initial call interface, transformed handling result is returned into user.
Optionally, as an example, handling result can be converted based on adaptation layer.For being connect by A interfaces, B
The handling result that mouth or C interface return after being converted by adaptation layer, can return to user by initial call interface.
Adaptation layer can between initial call interface and object invocation interface service request and handling result carry out
Conversion, so as to use new demand servicing with making user's unaware.
In the embodiment of the present application, optionally, method shown in FIG. 1 further includes:
Based on initial call interface, feedback information of the user to transformed handling result is received;
Feedback information is converted to for by the feedback information of object invocation interface;
Transformed feedback information is handled based on object invocation interface;
Based on the handling result to transformed feedback information, white list is adjusted.
Optionally, as an example, adaptation layer can be converted to feedback information for by object invocation interface
Feedback information, by object invocation interface call new demand servicing transformed feedback information can be handled.For example, feedback
Information can be access times, frequency of use etc., these and legacy data or the target data of design are compared, if
It meets the requirements, then can increase the user identifier quantity in white list, expand the scope of release of new demand servicing, otherwise, can reduce
The scope of release of new demand servicing, or further determine whether to cancel the new demand servicing.
Based on the implement scene as shown in Figure 3, the tool of the service request processing method of heterogeneous system described further below
Body flow.When ustomer premises access equipment sends service request to server device, which can carry user identifier and initial
Calling interface, server device can determine that the corresponding interface of user identifier calls based on local user identifier data and white list
Pattern can be called directly by initial call interface former if interface invocation pattern is the calling to initial call interface
Service handles service request;If interface invocation pattern is to by the object invocation interface after initial call interface conversion
Calling, server device, which is then converted to service request, to pass through target tune by the service request of object invocation interface
Call new demand servicing that can handle transformed service request with interface.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment
It executes and desired result still may be implemented.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable
Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can
With or it may be advantageous.
Below in conjunction with Fig. 4 detailed descriptions according to the electronic equipment of one embodiment of the application.With reference to figure 4, in hardware
Level, electronic equipment include processor, optionally, including internal bus, network interface, memory.Wherein, memory may wrap
Containing memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile
Memory (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that
The required hardware of other business.
Processor, network interface and memory can be connected with each other by internal bus, which can be industry
Standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component Interconnect standard
(Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended
Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus,
Controlling bus etc..It for ease of indicating, is only indicated with a four-headed arrow in Fig. 4, but table 4 does not only have a bus or a type
The bus of type.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from then operation in corresponding computer program to memory is read in nonvolatile memory, in logical layer
The service request handling device of heterogeneous system is formed on face.Processor executes the program that memory is stored, and specifically for holding
The following operation of row:
Service request is received, the service request carries user identifier and destination service connects in the initial call of heterogeneous system
Mouthful;
Determine the corresponding interface invocation pattern of the user identifier;
Based on the initial call interface and the interface invocation pattern, destination service institute in heterogeneous system is called
State the corresponding object invocation interface of interface invocation pattern.
The service request processing method of heterogeneous system disclosed in the above-mentioned embodiment illustrated in fig. 1 such as the application, can be applied to
In processor, or realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.
During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor or software form
Instruction is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processor, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are divided
Vertical door or transistor logic, discrete hardware components.It may be implemented or execute and is in the embodiment of the present application disclosed each
Method, step and logic diagram.General processor can be microprocessor or the processor can also be any conventional place
Manage device etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and execute
At, or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory,
This fields such as flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register maturation
In storage medium.The storage medium is located at memory, and processor reads the information in memory, and above-mentioned side is completed in conjunction with its hardware
The step of method.
Certainly, other than software realization mode, other realization methods are not precluded in the electronic equipment of the application, for example patrol
Collect the mode etc. of device or software and hardware combining, that is to say, that the executive agent of following process flow is not limited to each patrol
Unit is collected, can also be hardware or logical device.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, the one or more program include instruction, which works as is held by the electronic equipment including multiple application programs
When row, the method that the electronic equipment can be made to execute embodiment illustrated in fig. 1, and specifically for executing following methods:
Service request is received, the service request carries user identifier and destination service connects in the initial call of heterogeneous system
Mouthful;
Determine the corresponding interface invocation pattern of the user identifier;
Based on the initial call interface and the interface invocation pattern, destination service institute in heterogeneous system is called
State the corresponding object invocation interface of interface invocation pattern.
Fig. 5 is the structural schematic diagram of the service request handling device of the heterogeneous system of one embodiment of the application.It please join
Fig. 5 is examined, in a kind of Software Implementation, the service request handling device 500 of heterogeneous system includes:Receiving unit 502 determines
Unit 504 and call unit 506, wherein:
Receiving unit 502, receives service request, and service request carries user identifier and destination service in the first of heterogeneous system
Beginning calling interface;
Determination unit 504 determines the corresponding interface invocation pattern of user identifier;
Call unit 506, is based on initial call interface and interface invocation pattern, and invocation target service connects in heterogeneous system
The corresponding object invocation interface of mouth invocation pattern.
The user identifier carried based on service request can determine interface invocation pattern, be based on interface invocation pattern and service
Ask carry initial call interface, can with invocation target service in heterogeneous system the corresponding object invocation of interface invocation pattern
Interface.In this way, by the way that initial call interface is switched to object invocation interface, the calling to different services can be completed, entirely
Process does not need shutdown operation, promotes user experience, and user will not perceive the calling of service, can be in user's unaware
The upgrading to heterogeneous system model is completed under state.
Optionally, as one embodiment, same service externally provides identical calling interface in the heterogeneous system.
Optionally, as one embodiment, determination unit 504,
The corresponding interface invocation pattern of the user identifier is determined based on local user identifier data.
Optionally, as one embodiment, determination unit 504,
When the user identifier be the local user identifier data, and not in the white list of setting when, determine first
Interface invocation pattern;Wherein, the first interface invocation pattern is for being called the initial call interface.
Optionally, as one embodiment, determination unit 504,
When the non-local user identifier data of the user identifier, or when the user identifier is the local user
Mark data, and when in the white list of setting, determine second interface invocation pattern;Wherein, the second interface invocation pattern
For to being called by the object invocation interface after the initial call interface conversion.
Optionally, as one embodiment, the service request handling device 500 of heterogeneous system further includes:
First converting unit turns the service request when the interface invocation pattern is second interface invocation pattern
It is exchanged for by the service request of the object invocation interface;
First processing units are handled the transformed service request based on the object invocation interface.
Optionally, as one embodiment, the service request handling device 500 of heterogeneous system further includes:
Second converting unit is converted to the handling result of the object invocation interface for by the initial call
The handling result of interface;
Returning unit is based on the initial call interface, and the transformed handling result is returned to user.
Optionally, as one embodiment, the service request or handling result are converted based on adaptation layer.
Optionally, as one embodiment, wherein the object invocation interface at least has one;
The adaptation layer is adapted to the conversion of the corresponding object invocation interface of different business scene by the configuration of service code.
Optionally, as one embodiment, the service request handling device 500 of heterogeneous system further includes:
Receiving unit is based on the initial call interface, receives feedback letter of the user to the transformed handling result
Breath;
Third converting unit is converted to the feedback information for by the feedback letter of the object invocation interface
Breath;
Second processing unit is handled the transformed feedback information based on the object invocation interface;
Adjustment unit is adjusted the white list based on the handling result to the transformed feedback information.
The method that the service request handling device 500 of heterogeneous system can also carry out embodiment illustrated in fig. 1, and realize isomery system
The function of the service request handling device embodiment shown in Fig. 1 of system, details are not described herein for the embodiment of the present application.
In short, the foregoing is merely the preferred embodiment of the application, it is not intended to limit the protection domain of the application.
Within the spirit and principles of this application, any modification, equivalent replacement, improvement and so on should be included in the application's
Within protection domain.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.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 memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
There is also other identical elements in the process of element, method, commodity or equipment.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method
Part explanation.