Summary of the invention
In view of this, the invention provides a kind of computer based service implementation method and device, to improve business realizing efficiency.
Particularly, the present invention is achieved through the following technical solutions:
First aspect, a kind of computer based service implementation method is provided, described method is realized by business realizing device, this business realizing device comprises the preposition module of business of business nucleus module, type of service that professional ability module is respectively corresponding different with at least two, the preposition module of each described business is for connecting the described professional ability module of corresponding described type of service, and described business nucleus module is for storing basic data information; Described method comprises:
The preposition module of described business receives the information acquisition request that described professional ability module sends, and described information acquisition request is used to indicate the target data information that described professional ability module realizes required for business; The preposition module of described business, from the data message storehouse of this locality, selects described target data information, and described target data information is sent to described professional ability module, uses target data information to realize business to make described professional ability module; Described data message storehouse is that the preposition module of described business obtains from described business nucleus module.
Optionally, after the preposition module of described business receives the information acquisition request of described professional ability module transmission, select described target data information from the data message storehouse of this locality before, also comprise: the preposition module of described business sends data message to described business nucleus module and obtains request, described data message obtains to ask to be used to indicate and obtains basic data information aggregate corresponding to described target data information; The preposition module of described business receives the described basic data information aggregate that described business nucleus module returns, and described basic data information aggregate comprises described target data information, and using the data message storehouse of basic data information aggregate as described this locality.
Optionally, before the preposition module of described business receives the information acquisition request of described professional ability module transmission, also comprise: the preposition module of described business sends data message to described business nucleus module and obtains request, and described data message obtains request and carries traffic type information corresponding to the preposition module of described business; The preposition module of described business receives described business nucleus module according to described traffic type information, the basic data information aggregate corresponding with described traffic type information returned, described basic data information aggregate comprises described target data information, and using the data message storehouse of described basic data information aggregate as described this locality.
Optionally, when the multiple described professional ability module of the corresponding described type of service of the preposition model calling of described business; The preposition module of described business receives the information acquisition request that described professional ability module sends, comprise: the preposition module of described business receives multiple information acquisition request that described multiple professional ability module sends respectively, multiple described information acquisition request is used to indicate and obtains different target data informations; Described target data information is sent to described professional ability module by the preposition module of described business, comprise: the preposition module of described business is by described different target data information, be encapsulated into different data cells respectively, and by described data cell, the described target data information of correspondence be provided to described professional ability module.
Optionally, also comprise: receive the preposition module of new business, the type of service that the preposition module of described new business is corresponding new, the preposition module of described new business is connected with described business nucleus module, obtains described data message storehouse to make the preposition module of described new business from described business nucleus module.
Optionally, after the preposition module of described reception new business, also comprise: receive new business ability module, the type of service of described new business ability module is identical with the type of service of the preposition module of described new business; Described new business ability module and the preposition model calling of described new business, obtain described target data information to make described new business ability module from the preposition module of described new business.
Second aspect, a kind of computer based business realizing device is provided, comprise: the preposition module of business of the type of service that business nucleus module, professional ability module are corresponding different respectively with at least two, the preposition module of each described business is for connecting the described professional ability module of corresponding described type of service, and described business nucleus module is for storing basic data information;
Described professional ability module, for sending information acquisition request to the preposition module of described business, described information acquisition request is used to indicate the target data information obtaining described professional ability module and realize required for business;
The preposition module of described business, for the described information acquisition request according to reception, from the data message storehouse of this locality, select described target data information, and described target data information is sent to described professional ability module, use described target data information to realize business to make described professional ability module;
Described business nucleus module, for being provided to the preposition module of described business by described data message storehouse.
Optionally, the preposition module of described business, also for after the information acquisition request receiving the transmission of described professional ability module, select described target data information from the data message storehouse of this locality before, send data message to described business nucleus module and obtain request, described data message obtains request and is used to indicate basic data information aggregate corresponding to described target data information; Receive the described basic data information aggregate that described business nucleus module returns, described basic data information aggregate comprises described target data information, and using the data message storehouse of described basic data information aggregate as described this locality.
Optionally, the preposition module of described business, also for before the information acquisition request receiving the transmission of described professional ability module, send data message obtain request to described business nucleus module, described data message obtains asks to carry traffic type information corresponding to the preposition module of described business; And receive described business nucleus module according to described traffic type information, the basic data information aggregate corresponding with described traffic type information returned, described basic data information aggregate comprises described target data information, and using the data message storehouse of described basic data information aggregate as described this locality.
Optionally, the preposition module of described business, comprises multiple data cell, and described multiple data cell is for providing different target data information extremely described professional ability modules.
The computer based service implementation method of the embodiment of the present invention and device, by being three-decker by business realizing apparatus design, professional ability module does not need business core system that is direct and rear end mutual, and directly with business preposition alternately, this mode can improve the implementation efficiency of business demand.
Embodiment
The computer based service implementation method that the embodiment of the present invention provides and device are the efficiency in order to improve business realizing.Such as, developer devises a kind of operation system for certain shop shopping online, can in this system registry also shopping online function of realization in this shop by this operation system user.After this system completes, the situation that may use along with reality in specific implementation process, need to change this system, add new business demand, this business demand is such as increase in systems in which the query function of user authentication situation or the quantity etc. of registered user of inquiring about certain age bracket in systems in which.The use of the service implementation method of the embodiment of the present invention, object accelerates the realization of above-mentioned business demand, completes the increase to systemic-function corresponding to business demand as soon as possible, solves the problem that in current techniques realization, business realizing efficiency is lower.
The structural representation of the computer based business realizing device that Fig. 1 provides for the embodiment of the present invention, this device is above-mentioned operation system; In the present embodiment, this business realizing device comprises three-decker, business nucleus module, the preposition module of business and professional ability module respectively, wherein, the present embodiment is three for the quantity of the preposition module of business, certainly at least two, also can more (such as four, five etc.), the quantity of professional ability module is also for three.
Wherein, business nucleus module 11 stores basic data information, this basic data information is some core datas for this business realizing device (or being called operation system), such as, address name, user's sex, age of user, user's contact method, user cipher etc., user's some Transaction Informations when shopping online can also be comprised, the trade name that such as user purchases, commodity amount, dealing money etc.These core datas are stored in business nucleus module 11, can be called when realizing certain concrete business.
Professional ability module comprises: professional ability module 12, professional ability module 13 and professional ability module 14, and this professional ability module specifically corresponds to certain business demand.Be exemplified below: the business demand supposing to need to increase inquiring user whether certification, the system so for realizing this business demand can be called professional ability module 12; Suppose the business demand also needing to increase certain age bracket user profile of statistics, the system so for realizing this business demand can be called professional ability module 13; Suppose the business demand also needing to increase certain Transaction Information of inquiry, the system so for realizing this business demand can be called professional ability module 14.
Further, suppose that professional ability module 12 needs to use the data message of address name when realizing, professional ability module 13 needs the data message using age of user when realizing, and professional ability module 14 needs the Transaction Information using user when realizing; By above-mentioned address name, age of user, Transaction Information, all can be called target data information, this target data information and professional ability module realize the information required for business.
The preposition module of business is arranged between business nucleus module and professional ability module, its effect is, by business preposition module, the target data information required for professional ability module is supplied to professional ability module, professional ability module does not need direct and business nucleus module is mutual.
Concrete, the preposition module of business can based on following principle when arranging: the preposition module of business arranging corresponding different types of service respectively;
Such as, the target data information that above-mentioned professional ability module 12 needs is address name, the target data information that professional ability module 13 needs is age of user, address name, age of user etc. can be called user profile, the business using this user profile to realize so is needed to be called user profile class business, professional ability module 12 and professional ability module 13 just can be called it is for realizing user profile class business, are also namely called that type of service corresponding to these two professional ability modules is " user profile classes ".Therefore, the preposition module 15 of the business that is provided with, the preposition module 15 of this business is for service subscriber information class business, and the type of service that the professional ability module of its connection is corresponding is all " user profile class ", and the preposition module 15 of this business also can be called that the type of service of its correspondence is user profile class.
Again such as, the present embodiment can also arrange the preposition module 16 of business, and the type of service of its correspondence can be " Transaction Information class ", the professional ability module 14 that the preposition module 16 of this business connects, and being needs to use Transaction Information to realize corresponding business.
In order to realize providing target data information required for it by the preposition module of business to professional ability module, the preposition module of business needs to get data message storehouse from business nucleus module.Such as, in above-mentioned business nucleus module, store a lot of core datas, include the Transaction Information such as trade name, commodity amount, dealing money that the user profile such as address name, user's sex, age of user and user purchase.The preposition module of business 15 gets the basic data information aggregate comprising all user profile from business nucleus module, and using this set as data message storehouse; The preposition module of business 16 gets the basic data information aggregate comprising all Transaction Informations from business nucleus module, and using this set as data message storehouse.
The preposition module of each business from the data message storehouse of this locality, can select target data information, and described target data information is sent to described professional ability module, uses described target data information to realize business to make described professional ability module.Such as, the information that the preposition module 15 of business can select address name from the set of user profile is supplied to professional ability module 12.
Below by by the flow process shown in Fig. 2, illustrate how business demand realizes under the framework of the business realizing device shown in Fig. 1.The schematic flow sheet of a kind of computer based service implementation method that Fig. 2 provides for the embodiment of the present invention, as shown in Figure 2, the method can comprise:
201, the preposition module of business receives the information acquisition request that described professional ability module sends, and described information acquisition request is used to indicate the target data information that described professional ability module realizes required for business;
Wherein, the preposition module of business can and professional ability module between consult communications protocol format between the two, with the information that mutual understanding is sent separately; Professional ability module is by sending information acquisition request, and for the preposition module of informing business, it needs the target data information obtained.Such as, professional ability module 12 sends information acquisition request to the preposition module 15 of business, and the target data information of acquisition request is " address name ".
202, the preposition module of business is from the data message storehouse of this locality, selects described target data information, and described target data information is sent to described professional ability module;
Such as, the preposition module of business 15 is from the data message storehouse comprising all user profile, select " address name " this category information and be sent to professional ability module 12, use this target data information (i.e. address name) to realize corresponding business to make professional ability module 12.
The service implementation method of the present embodiment, by being three-decker by business realizing apparatus design, professional ability module does not need directly mutual with the business core system of rear end, and directly and business preposition alternately, this mode can improve the implementation efficiency of business demand.
In order to the design of clearer this service implementation method of explanation, the effect improving business realizing efficiency can be reached, be explained as follows more specifically: in the prior art, business realizing device is double-layer structure, professional ability module and business nucleus module, when professional ability module needs to call the data message in business nucleus module, need to change to realize providing data message to professional ability module to business nucleus module, bring the change and test that are associated thus, not only the cycle grows up to this height, and likely there is the risk that business nucleus module is damaged, affect the work of all Multiservice capability modules.But in the present embodiment, business nucleus module does not need to change, and by the preposition module of each business for professional ability module provides data message, even if changing also is carry out in the preposition module of business, can not impact business nucleus module.
More specifically, the quantity of the preposition module of each business is multiple, types of service corresponding different respectively, when supposing the professional ability module needing to increase certain business demand corresponding, increase the connection with this professional ability module at the preposition module place of the business corresponding with the type of service of this professional ability module, there is provided data message to professional ability module by the preposition module of the business of this correspondence, and can not impact the preposition module of the business of other types of service.Such as, in FIG, when increasing professional ability module 13, even if changing also is only at business preposition module 15 place, the connection of the preposition module 15 of business of setting up and professional ability module 13, and the preposition module 15 of the business that realizes provides the function of data message to professional ability module 13, the preposition module 16 of module such as business for other can not affect, and, professional ability module 13 is not mutual with business nucleus module 11, business nucleus module 11 does not need to change yet, clearly greatly reduce workload and the complexity of exploitation, reduce cost of development, it also avoid the risk of destruction business nucleus module.
Further, suppose currently will increase a business demand, the type of service that professional ability module 18 corresponding to this business demand will realize is " publicity class business ", such as publicizing the commodity, price etc. in this shop, and what suppose this kind of service needed is an other class data message, such as throw in the Business Information of advertisement, throw in the time etc. of advertisement, can be called advertisement information class, the data message corresponding from the preposition module of front two class business is different.So, in this business realizing device, a preposition module of business 17 can be increased again (the preposition module of new business can be called, its corresponding new type of service), the preposition module 17 of this business can get publicity category information from business nucleus module 11, using this publicity category information as its data message storehouse.
After the preposition module 17 of business is set up, connection between the preposition module 17 of business of can setting up and professional ability module 18, this connection is such as foundation or other communication modes of call relation, the preposition module of this business 17 is identical with the type of service of professional ability module 18, be all publicity class business, professional ability module 18 can obtain its publicity category information realizing required for business from the preposition module 17 of business.
In addition, it should be noted that, the business realizing device of the embodiment of the present invention, emphasize it is when realizing certain business, improve business realizing efficiency by the logical design of this three-decker, and for the deployment physically of this three-decker, the present embodiment does not limit.
For the preposition module of business, its time obtaining basic data information aggregate from business nucleus module can set flexibly, such as, see Fig. 3, comprising:
301, the preposition module of business receives the information acquisition request that professional ability module sends;
Wherein, this information acquisition request is used to indicate the target data information that professional ability module realizes required for business, and for professional ability module 12, it sends information acquisition request to the preposition module 15 of business, this category information of acquisition request address name.
302, the preposition module of business sends data message to business nucleus module and obtains request, and this data message obtains to ask to be used to indicate and obtains basic data information aggregate corresponding to target data information;
Wherein, after receiving above-mentioned information acquisition request, the preposition module of business needs to obtain this part information from business nucleus module; But be not only and obtain this part information, but obtain the basic data information aggregate corresponding with this target data information.Such as, the target data information that professional ability module 12 will obtain is address name, this address name belongs to user profile class, then the preposition module of business is user profile to the request of business nucleus module, user profile can be a basic data information aggregate in business nucleus module side, what this set comprised is user profile, but not only has address name, also comprises age of user etc.
303, business nucleus module returns basic data information aggregate to the preposition module of business;
As above, business nucleus module can comprise the various user profile of address name, age of user etc., as the basic data information aggregate of a user profile class, and the preposition module of the business that is sent to.The preposition module of business is using the data message storehouse of described basic data information aggregate as this locality.
304, the preposition module of business returns target data information to professional ability module.
Wherein, the preposition module of business, by from the data message storehouse of this locality, filters out address name and sends to professional ability module.
Optionally, when multiple professional ability module of the corresponding type of service of the preposition model calling of business, the information in its local data information bank can be segmented by business preposition module again, encapsulates respectively.
Such as, the preposition module 15 of business in Fig. 1 is connected with two professional ability modules, professional ability module 12 and professional ability module 13 respectively, and the target data information that these two professional ability module request obtain is different, professional ability module 12 needs to obtain address name, and professional ability module 13 needs to obtain age of user.Now the preposition module of business 15 can by different target data informations, be encapsulated into different data cells respectively, such as, first data cell and the second data cell, first data cell is as the interface of address name information, the target data information of correspondence, as the interface of age of user information, is provided to described professional ability module by this interface unit by the second data cell, also can be understood as the storage unit of above-mentioned data cell as the data message of correspondence.
In another embodiment, for the preposition module of business, it obtains the time of basic data information aggregate from business nucleus module, also can be before the information acquisition request receiving the transmission of professional ability module.See Fig. 4, can comprise:
401, the preposition module of business sends data message to business nucleus module and obtains request;
Wherein, when the preposition module of business is set up, just can set type of service corresponding to the preposition module of this business in advance, the preposition module of the business such as newly increased is for class business of concluding the business, so the preposition module of business just can send request to business nucleus module, described data message obtains request and carries traffic type information corresponding to the preposition module of described business, and transaction class business described above, it is desirable that transaction category information during this kind of business realizing.
402, the preposition module of business receives described business nucleus module according to described traffic type information, the basic data information aggregate corresponding with described traffic type information returned;
Wherein, business nucleus module is after the type of service knowing the preposition module of business, learn that it needs to use Transaction Information to realize business, then the basic data information aggregate comprising all Transaction Informations can be sent to the preposition module of business, by the data message storehouse of the preposition module of business as its this locality.
403, the preposition module of business receives the information acquisition request that professional ability module sends;
In this step, connect one of them professional ability module of the preposition module of this transaction class business, acquisition request transaction category information, such as user buys the dealing money of commodity.
404, the preposition module of business provides target data information to professional ability module.
Wherein, the preposition module of business, by from the data message storehouse of this locality, gets transaction category information, and such as user buys the dealing money of commodity, returns to professional ability module.
The service implementation method of the embodiment of the present invention, when business demand changes, with smaller change, can realize business demand fast, make Added Business convenient, meet consumers' demand in time, also reduce cost of development.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.