Summary of the invention
The embodiment of the present application provides a kind of transmission method and device of basic data, in order to reduce the performance cost of system.
The concrete technical scheme that the embodiment of the present application provides is as follows:
A transmission method for basic data, comprising:
Service request based on user obtains corresponding first foundation data acquisition, and described first foundation data acquisition includes the whole basic datas for the treatment of described service request;
In the process of the described service request of process, when determining that need call at least one other application system carries out subservice process, according to the scene definition information preset and the attribute information of current business, determine the scene identity that current business is corresponding under at least one other application system described, and obtain corresponding second basic data set according to described scene identity, include the basic data that the corresponding described scene identity needs of at least one other application system described use in described second basic data set;
When determining that described first foundation data acquisition and the second basic data set exist common factor, the basic data comprised in common factor is mail at least one other application system described.
Preferably, at pretreatment stage, scene set definition information, comprising:
The application system applied according to each business and the attribute information of business carry out business scenario differentiation, and scene set mark;
Between the attribute information and scene identity of application system mark, business, set up mapping relations, and described mapping relations are preserved as scene definition information.
Preferably, obtain corresponding second basic data set according to described scene identity, in described second basic data set, include the basic data that the corresponding described scene identity needs of at least one other application system described use;
Obtain all basic datas that described scene identity is corresponding, form described second basic data set;
Or,
Obtain the part basis data meeting default screening conditions that described scene identity is corresponding, form described second basic data set.
Preferably, obtain the part basis data meeting default screening conditions that described scene identity is corresponding, form described second basic data set, comprising:
From all basic datas that described scene identity is corresponding, filter out the highest N number of basic data of utilization rate, form described second basic data set, wherein, N is preset number;
Or,
From all basic datas that described scene identity is corresponding, filter out the basic data that utilization rate reaches pre-determined threshold, form described second basic data set.
Preferably, after the basic data in common factor is mail at least one other application system described, comprise further:
Each basic data that statistics at least one other application system described use in current subservice processing procedure;
In conjunction with the history service condition of each basic data described, the utilization rate of corresponding described scene identity to each basic data upgrades.
A transmitting device for basic data, comprising:
First processing unit, for obtaining corresponding first foundation data acquisition based on the service request of user, described first foundation data acquisition includes the whole basic datas for the treatment of described service request;
Second processing unit, for in the process of the described service request of process, when determining that need call at least one other application system carries out subservice process, according to the scene definition information preset and the attribute information of current business, determine the scene identity that current business is corresponding under at least one other application system described, and obtain corresponding second basic data set according to described scene identity, include the basic data that the corresponding described scene identity needs of at least one other application system described use in described second basic data set;
Transparent transmission unit, for when determining described first foundation data acquisition and the second basic data set there is common factor, mails at least one other application system described by the basic data comprised in common factor.
Preferably, comprise further:
Dispensing unit, at pretreatment stage, scene set definition information, specifically comprises: the application system applied according to each business and the attribute information of business carry out business scenario differentiation, and scene set mark; Between the attribute information and scene identity of application system mark, business, set up mapping relations, and described mapping relations are preserved as scene definition information.
Preferably, when obtaining corresponding second basic data set according to described scene identity, described second processing unit specifically for:
Obtain all basic datas that described scene identity is corresponding, form described second basic data set;
Or,
Obtain the part basis data meeting default screening conditions that described scene identity is corresponding, form described second basic data set.
Preferably, obtain the part basis data meeting default screening conditions that described scene identity is corresponding, when forming described second basic data set, described second processing unit specifically for:
From all basic datas that described scene identity is corresponding, filter out the highest N number of basic data of utilization rate, form described second basic data set, wherein, N is preset number;
Or,
From all basic datas that described scene identity is corresponding, filter out the basic data that utilization rate reaches pre-determined threshold, form described second basic data set.
Preferably, comprise further:
Statistic unit, for after the basic data in common factor is mail at least one other application system described, each basic data that statistics at least one other application system described use in current subservice processing procedure; And combining the history service condition of each basic data described, the utilization rate of corresponding described scene identity to each basic data upgrades.
In the embodiment of the present application, a certain application system is carried out in business procession, if need to call at least one other application system to carry out subservice process, the basic data that then at least one other application system needs by this from the basic data that this locality has obtained is pass-through to corresponding application system, like this, the number of times RPC of same basic data initiation being called to service can be reduced on the whole, decrease basic data and obtain calculated amount, avoid the wasting of resources caused because of double counting, improve the responding ability of entire system, reduce the performance cost of entire system.
Embodiment
In the process of a business processing, the basic data that possibility application system uses also can be used by other application systems in follow-up flow process.If basic data can be passed to follow-up application system by each application system, be so can reduce subsequent applications system to repeat to call the system overhead that basic data produces.In order to realize this object, in the embodiment of the present application, scene differentiation is carried out to business, and added up based on the basic data that different scenes uses for each application system respectively.And the basic data required for the application system in downstream can carry out data penetration transmission when system call basic data, with this reduce whole business processing link to same foundation data repeat call, thus improve overall system performance.
Below in conjunction with accompanying drawing, the application is preferred embodiment described in detail.
Operation system, can make different business flow processing, distribution according to some attribute of business when carrying out business processing, Here it is different business scenario (such as PC payment, wireless payment can divide into two scenes according to payment source).Can be different in some service details process of different business scene, therefore the basic data that uses of different scene is also different.If its all data are all passed to follow-up system by up-stream system in this case, inherently cause the utilization rate of transmitted basic data not high, take again network traffics huge simultaneously.Therefore need to identify different scenes according to service attribute, based under each scene, the basic data used is added up, and the basic data of decision-making transparent transmission is carried out according to statistics, be very helpful to reducing network overhead, improving the utilization rate of basic data of transparent transmission like this.
Concrete, each business can have service attribute through flow processing, and the core attribute information according to business can carry out scene classification to business.
Such as, the attribute information of a business can include but not limited to the content shown in table 1:
Table 1
As shown in table 1, part attribute information wherein can have conclusive impact to corresponding business, when the value of these attribute informations is different, relevant operation flow may be different, therefore, preferably, need to carry out differentiated service scene according to these attribute informations.Suppose that the bizType field shown in table 1 and channel field have material impact to whole operation flow, so, optionally, scene partitioning can be carried out according to these two fields, specifically as shown in table 2:
Table 2
As shown in table 2, wherein,
SystemCode, which application system is the scene for describing current definition belong to.Different application systems may slightly difference when defining same scene.
SceneCode, for describing scene title.Same scene title can corresponding multiple application system come into force.
SceneCondition, for describing the condition group of scene demand fulfillment.Only have when all conditions in condition group all meets, scene just can be identified.
As can be seen from above-mentioned definition, the definition of scene is based on service attribute (e.g., type of service, operation channel, environmental information etc.).
Such as, for system B, must " bizType=business 1 " and " channel=PC channel " time, current scene just can be identified as scene 2.
After application system starts, pre-configured scene definition information is all employed system loads and goes forward side by side row cache.
Further, when service operation, each application system can according to scene belonging to scene definition information identification current business, and the basic data used during the operation of statistics current business, based on contextual data statistics repeatedly, the basic data that each application system most possibly uses under each scene can be obtained, these statisticses can be stored by Base data platform, when there being service needed process again, if a certain application system needs to call other application systems carry out subservice process, so, the basic data that called system most possibly uses just can be pass-through to called system by calling system from the basic data that self has obtained, to reduce the calculated amount of called system.
Such as, consult shown in Fig. 3, system B and system C can according to scene definition identify current belonging to scene, and employ which basic data under adding up this scene.Based on contextual data statistics repeatedly, system B, the system C most possible basic data used under each scene can be obtained.These statisticses can be stored.When there being service needed process again, system A can according to the statistics of system B when calling system B, and the data likely used by system B pass to system B, and when calling system C, the data likely used by system C pass to system C.
Based on above-mentioned preconfigured information, in the embodiment of the present application, adopt the management devices of distributed structure/architecture to carry out optimized integration data transmission stream journey, the disparate modules in management devices is distributed in different application systems, is completed transmission and the ASSOCIATE STATISTICS work of basic data by cooperation to each other.
Consult shown in Fig. 4, in the embodiment of the present application, the flow process transmitted basic data is as follows:
Step 400: management devices obtains corresponding first foundation data acquisition based on the service request of user, includes the whole basic datas for the treatment of this service request in this first foundation data acquisition.
Concrete, management devices can carry out completing steps 400 by the functional module be arranged in calling system.
Such as, the processing module of management devices is provided with in system A, after the processing module of the management devices arranged in system A receives the service request of user, corresponding type of service is determined according to this service request, and determine to carry out the basic data needed for business processing according to type of service, as, processing module calculates the basic data of carrying out needed for business processing according to the business demand of user, and obtains radix data a, b, c, d, e, f from Base data platform.
Step 410: management devices is in the process of process service request, determine to need to call at least one other application system when carrying out subservice process, according to the scene definition information preset and the attribute information of current business, determine the scene identity that current business is corresponding under at least one other application system above-mentioned, and according to obtain scene identity obtain corresponding second basic data set, include in this second basic data set at least one other application system above-mentioned to should scene identity needs use basic data.
In the embodiment of the present application, at pretreatment stage, distributed management devices needs to configure scene definition information by the configuration module be arranged on Base data platform, concrete, the attribute information of the application system that configuration module can be applied according to each business and business carries out business scenario differentiation, and scene set mark (same business may adhere to different scene separately in different application systems), and identify in application system, mapping relations are set up between the attribute information of business and business scenario mark, these mapping relations are scene definition information, specifically see shown in table 1 and table 2, do not repeat them here.Configuration module needs scene definition information to be kept in Base data platform, so that each application system is called at any time.
In practical application, application system needs to call another one application system when completing subservice process, the business scenario belonging to current business is under called system can be identified, and the basic data that under this scene, most probable can use, if calling system has calculated these basic datas, then these basic datas can be passed to called system.Reduce called system to repeat to call the calculating of these basic datas.
Such as, when the processing module in system A is determined to need calling system B to carry out subservice process, according to the scene definition information preset, identify that the scene identity of the scene that current business is belonging under B system is " scene 1 ".Then, need certainty annuity B under the business scenario that " scene 1 " is corresponding, need the basic data used, these basic datas are stored to Base data platform in the data statistics stage.
Concrete, when performing step 410, processing module in management devices can form the second basic data set based on all basic datas that the scene identity of acquisition is corresponding, also the second basic data set can be formed based on the part basis data meeting default screening conditions that above-mentioned scene identity is corresponding, such as, from all basic datas that scene identity is corresponding, filter out the highest N number of basic data of utilization rate form the second basic data set, wherein, N is preset number; Again such as, from all basic datas corresponding to scene identity, filter out the basic data that utilization rate reaches pre-determined threshold form the second basic data set.
Such as, 2 basic datas that under acquisition " scene 1 ", system B utilization rate is the highest form the second basic data set.
Again such as, under acquisition " scene 1 ", system B utilization rate reaches the base station data of pre-determined threshold is a, e, forms the second basic data set.
Step 420: when management devices determination first foundation data acquisition and the second basic data set exist common factor, the basic data comprised in common factor is mail at least one other application system above-mentioned.
Concrete, management devices determine local for carrying out the basic data included in basic data that business processing obtains needed at least one other application system time, each several part basic data is mail to respectively other corresponding application systems.
Such as, basic data a, e data are set in parameter by the processing module in system A, pass to system B when calling system B.
Like this, when system B receive system A call signaling after, from calling the basic data a, the e that obtain transparent transmission parameter that signaling carries.And start to carry out subservice process according to calling signaling, in business procession, if used basic data a, e, then directly from the data of transparent transmission, obtain basic data a, e, do not needed to repeat to call calculating; Certainly, if also need to use other basic data, need to carry out in addition calling calculating.
Further, the distributed management devices mentioned in the embodiment of the present application also can be provided with statistical module in called system, for adding up the service condition of all kinds of basic data.Concrete, statistical module can add up each basic data that at least one other application system above-mentioned use in current subservice processing procedure, and in conjunction with the history service condition of each basic data, the corresponding current utilization rate of scene identity to each basic data upgrades.
Such as, when after the process of system B finishing service, statistical module in system B can identify that current scene is scene 1, and add up the basic data used, supposing the system B has used base station data a, e, f, (wherein basic data a, e can obtain from transparent transmission parameter, and f can calculate from Base data platform in addition and obtain), so associated statistical information is as shown in table 3:
Table 3
Said system |
Scene |
Basic data |
Access times |
System B |
Scene 1 |
A |
Last time statistics+1 |
System B |
Scene 1 |
E |
Last time statistics+1 |
System B |
Scene 1 |
G |
Last time statistics+1 |
Clearly, basic data a, e, f has utilization rate to be obtained for raising, although this time in subservice process schedules, system A is only by basic data a, e has carried out transparent transmission, but in this manner after statistics repeatedly, system B is at scene 1 time basic data a, e, the utilization rate of f can reach desirable threshold value, so, statistics can be stored to Base data platform by statistical module, system A just can carry out dynamic conditioning according to the up-to-date statistical information that Base data platform stores to the basic data called when next time carries out basic data transparent transmission, be about to pass through B basic data and change a into, e, f.
In practical application, each application system, after finishing service process, all can identify the scene belonging to current business, and adds up the basic data that current scene uses.Based on Same Scene statistics repeatedly, the utilization rate of each basic data under this business scenario can be obtained.When follow-up have the business paper process of this scene again time, the basic data that in processing procedure, most probable is used can be obtained.
Said process is only for system B, and the invoked procedure of system C and system category-B seemingly, are specifically consulted shown in Fig. 5, do not repeated them here.
Based on above-described embodiment, consult shown in Fig. 6, in the embodiment of the present application, management devices adopts distributed frame to be arranged among each application system, completed the transmission of basic data by the cooperation between each functional module, concrete, management devices comprises the first processing unit 60, second processing unit 61 and transparent transmission unit 62, wherein
First processing unit 60, for obtaining corresponding first foundation data acquisition based on the service request of user, first foundation data acquisition includes the whole basic datas for the treatment of service request;
Second processing unit 61, for in the process of process service request, when determining that need call at least one other application system carries out subservice process, according to the scene definition information preset and the attribute information of current business, determine the scene identity that current business is corresponding under at least one other application system, and obtain corresponding second basic data set according to scene identity, include the basic data that the corresponding scene identity needs of at least one other application system use in the second basic data set;
Transparent transmission unit 62, for when determining first foundation data acquisition and the second basic data set there is common factor, mails at least one other application system by the basic data comprised in common factor.
Preferably, comprise further:
Dispensing unit 63, is arranged in Base data platform, and at pretreatment stage, scene set definition information, specifically comprises: the application system applied according to each business and the attribute information of business carry out business scenario differentiation, and scene set mark; Between the attribute information and scene identity of application system mark, business, set up mapping relations, and mapping relations are preserved as scene definition information.
Preferably, according to scene identity obtain corresponding second basic data set time, the second processing unit 61 specifically for:
Obtain all basic datas that scene identity is corresponding, form the second basic data set;
Or,
Obtain the part basis data meeting default screening conditions that scene identity is corresponding, form the second basic data set.
Preferably, obtain the part basis data meeting default screening conditions corresponding to scene identity, when forming the second basic data set, the second processing unit 61 specifically for:
From all basic datas that scene identity is corresponding, filter out the highest N number of basic data of utilization rate, form the second basic data set, wherein, N is preset number;
Or,
From all basic datas that scene identity is corresponding, filter out the basic data that utilization rate reaches pre-determined threshold, form the second basic data set.
Preferably, comprise further:
Statistic unit 64, is arranged in each application system, for after the basic data in common factor is mail at least one other application system, adds up each basic data that at least one other application system uses in current subservice processing procedure; And in conjunction with the history service condition of each basic data, the utilization rate of corresponding scene identity to each basic data upgrades.
In sum, in the embodiment of the present application, a certain application system is carried out in business procession, if need to call at least one other application system to carry out subservice process, the basic data that then at least one other application system needs by this from the basic data that this locality has obtained is pass-through to corresponding application system, like this, the number of times RPC of same basic data initiation being called to service can be reduced on the whole, decrease basic data and obtain calculated amount, avoid the wasting of resources caused because of double counting, improve the responding ability of entire system, reduce the performance cost of entire system.
The technical scheme that the embodiment of the present application provides can use any computerese to realize, and does not have particular/special requirement for software restraint
Those skilled in the art should understand, the embodiment of the application can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The application describes with reference to according to the process flow diagram of the method for the embodiment of the present application, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although described the preferred embodiment of the application, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the application's scope.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present application and not depart from the spirit and scope of the embodiment of the present application.Like this, if these amendments of the embodiment of the present application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.