CN106331000B - A method and device for determining a service plan - Google Patents
A method and device for determining a service plan Download PDFInfo
- Publication number
- CN106331000B CN106331000B CN201510346701.5A CN201510346701A CN106331000B CN 106331000 B CN106331000 B CN 106331000B CN 201510346701 A CN201510346701 A CN 201510346701A CN 106331000 B CN106331000 B CN 106331000B
- Authority
- CN
- China
- Prior art keywords
- service
- target
- tenant
- representative
- services
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种确定服务方案的方法及装置。The present invention relates to the field of communication technologies, and in particular, to a method and apparatus for determining a service scheme.
背景技术Background technique
随着云计算的发展,SaaS(Software as a Service,软件即服务)模式作为一种新颖的服务交付模式正变得越来越流行。相对于传统的软件开发模式,软件开发商无需根据每个用户的个性化多样化需求来开发所需要的应用,相反,SaaS模式下是以一种多租户的模式来交付应用。多租户是指由同一个应用实例为成千上万的用户提供软件服务,大大降低了应用运行的成本和相应的管理开支,其中每个用户被称作租户。通过这种多租户机制,能够更经济地支撑庞大的用户规模。因此,随着用户个性化多样化需求越来越多,面向多租户的网络应用是未来应用的主要交付模式。With the development of cloud computing, SaaS (Software as a Service, software as a service) model is becoming more and more popular as a novel service delivery model. Compared with the traditional software development model, software developers do not need to develop the required applications according to the individualized and diverse needs of each user. On the contrary, the SaaS model delivers applications in a multi-tenant model. Multi-tenancy means that the same application instance provides software services for thousands of users, which greatly reduces the cost of running the application and the corresponding management expenses. Each user is called a tenant. Through this multi-tenancy mechanism, a huge user scale can be supported more economically. Therefore, as users have more and more personalized and diverse needs, multi-tenant-oriented network applications are the main delivery mode of future applications.
与此同时,为了适应复杂应用开发,应用组件也向着模块化、细粒度的方向发展。然而,由于复杂网络应用服务所面临的客户端层次比较广泛,租户所提出的业务需求往往多种多样,有的很抽象而有的很具体,呈现出粒度的特点。然而,尽管传统方法考虑了需求的多粒度性,但并没有针对各个租户的个性化需求提出相应的对策。At the same time, in order to adapt to complex application development, application components are also developing towards a modular and fine-grained direction. However, due to the wide range of client layers faced by complex network application services, the business requirements put forward by tenants are often diverse, some are very abstract and some are very specific, showing the characteristics of granularity. However, although traditional methods consider the multi-granularity of requirements, they do not propose corresponding countermeasures for the individual needs of each tenant.
综上所述,在目前的SaaS模式下,亟需一种能够快速准确地根据租户的需求为租户确定出相应的服务方案的方法。To sum up, under the current SaaS model, there is an urgent need for a method that can quickly and accurately determine a corresponding service solution for a tenant according to their needs.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种确定服务方案的方法及装置,用以实现快速准确地根据租户的需求为租户确定出相应的服务方案。Embodiments of the present invention provide a method and apparatus for determining a service scheme, so as to quickly and accurately determine a corresponding service scheme for a tenant according to the tenant's needs.
本发明实施例提供一种确定服务方案的方法,包括:An embodiment of the present invention provides a method for determining a service scheme, including:
获取租户的请求信息;所述请求信息中至少包括所述租户的需求目标;Obtain the request information of the tenant; the request information at least includes the demand target of the tenant;
查询第一服务粒度空间,获取与所述需求目标相匹配的第一目标服务;所述第一服务粒度空间中的服务是由第二服务粒度空间具有共同属性的服务得到的;querying the first service granularity space to obtain a first target service that matches the demand target; the services in the first service granularity space are obtained from services having common attributes in the second service granularity space;
根据所述第一目标服务,查询所述第二服务粒度空间,获取所述第二服务粒度空间中与所述第一目标服务对应的第二目标服务;According to the first target service, query the second service granularity space to obtain a second target service corresponding to the first target service in the second service granularity space;
根据所述第二目标服务确定所述租户的服务方案。A service plan of the tenant is determined according to the second target service.
较佳地,通过以下方式得到所述第一服务粒度空间中的服务:Preferably, the services in the first service granularity space are obtained in the following manner:
根据所述第二服务粒度空间中各个服务之间的语义相似度,对所述第二服务粒度空间中的服务进行聚簇,得到不同的服务簇;According to the semantic similarity between the various services in the second service granularity space, cluster the services in the second service granularity space to obtain different service clusters;
根据每个服务簇中的各服务的输入和输出,得到每个服务簇的代表服务;所述代表服务的输入为该服务簇的共同输入,所述代表服务的输出为该服务簇的共同输出;According to the input and output of each service in each service cluster, the representative service of each service cluster is obtained; the input of the representative service is the common input of the service cluster, and the output of the representative service is the common output of the service cluster ;
将所述代表服务作为所述第一服务粒度空间中的服务。Taking the representative service as a service in the first service granularity space.
较佳地,所述第一服务粒度空间中的服务还包括由代表服务组成的组合服务,所述组合服务是将具有关联关系的代表服务进行组合而得到的;Preferably, the services in the first service granularity space further include a composite service composed of representative services, and the composite service is obtained by combining representative services with associated relationships;
若所述代表服务与所述组合服务之间的语义相似度大于第一阈值,则将所述代表服务作为所述组合服务的同类服务。If the semantic similarity between the representative service and the composite service is greater than a first threshold, the representative service is regarded as a homogeneous service of the composite service.
较佳地,所述查询第一服务粒度空间,获取与所述需求目标相匹配的第一目标服务,包括:Preferably, the querying the first service granularity space to obtain the first target service matching the demand target includes:
若所述第一服务粒度空间中不存在与所述需求目标相匹配的服务,则对所述需求目标进行解析,并根据解析结果,生成与所述解析结果相匹配的服务,将与所述解析结果相匹配的服务作为所述第一目标服务。If there is no service matching the demand target in the first service granularity space, the demand target is parsed, and according to the analysis result, a service matching the analysis result is generated, and the service matching the analysis result is generated. The service matching the parsing result is used as the first target service.
较佳地,所述查询第一服务粒度空间,获取与所述需求目标相匹配的第一目标服务,包括:Preferably, the querying the first service granularity space to obtain the first target service matching the demand target includes:
获取与所述需求目标相匹配的代表服务作为所述第一目标服务,若所述代表服务为所述组合服务的同类服务,则将所述代表服务和对应的组合服务作为所述第一目标服务;Obtain a representative service that matches the demand target as the first target service, and if the representative service is a service of the same type as the combined service, take the representative service and the corresponding combined service as the first target Serve;
若所述请求信息中还包括所述租户的定制服务,则将与所述需求目标相匹配的服务中包含所述定制服务的组合服务作为所述第一目标服务。If the request information further includes the customized service of the tenant, a combined service including the customized service in the services matching the requirement target is taken as the first target service.
较佳地,所述查询所述第二服务粒度空间,获取所述第二服务粒度空间中与所述第一目标服务对应的第二目标服务,包括:Preferably, the querying the second service granularity space to obtain the second target service corresponding to the first target service in the second service granularity space includes:
将所述第二服务粒度空间中与所述第一目标服务对应的服务根据服务质量QoS进行排序,将QoS满足第二阈值的服务作为所述第二目标服务;或者,Sorting the services corresponding to the first target service in the second service granularity space according to the quality of service QoS, and using the service whose QoS meets the second threshold as the second target service; or,
若所述租户的服务请求信息中还包括所述租户的QoS需求,则获取所述第二服务粒度空间中与所述第一目标服务对应且满足所述租户的QoS需求的服务作为所述第二目标服务。If the tenant's service request information further includes the tenant's QoS requirements, acquire a service in the second service granularity space that corresponds to the first target service and meets the tenant's QoS requirements as the first Two target services.
较佳地,所述根据所述第二目标服务确定所述租户的服务方案,包括:Preferably, the determining of the tenant's service plan according to the second target service includes:
接收所述租户对所述第二目标服务的定制指令,将所述租户定制的服务作为所述租户的服务方案。Receive a customization instruction of the tenant for the second target service, and use the service customized by the tenant as a service solution of the tenant.
本发明实施例提供的一种确定服务方案的装置,包括:An apparatus for determining a service scheme provided by an embodiment of the present invention includes:
获取模块,用于获取租户的请求信息;所述请求信息中至少包括所述租户的需求目标;an acquisition module, configured to acquire the request information of the tenant; the request information at least includes the demand target of the tenant;
第一处理模块,用于查询第一服务粒度空间,获取与所述需求目标相匹配的第一目标服务;所述第一服务粒度空间中的服务是由第二服务粒度空间具有共同属性的服务得到的;The first processing module is used to query the first service granularity space to obtain the first target service that matches the demand target; the services in the first service granularity space are services with common attributes from the second service granularity space owned;
第二处理模块,用于根据所述第一目标服务,查询所述第二服务粒度空间,获取所述第二服务粒度空间中与所述第一目标服务对应的第二目标服务;a second processing module, configured to query the second service granularity space according to the first target service, and obtain a second target service corresponding to the first target service in the second service granularity space;
确定模块,用于根据所述第二目标服务确定所述租户的服务方案。and a determining module, configured to determine the service plan of the tenant according to the second target service.
较佳地,所述第一处理模块还用于:Preferably, the first processing module is also used for:
通过以下方式得到所述第一服务粒度空间中的服务:The services in the first service granularity space are obtained in the following manner:
根据所述第二服务粒度空间中各个服务之间的语义相似度,对所述第二服务粒度空间中的服务进行聚簇,得到不同的服务簇;According to the semantic similarity between the various services in the second service granularity space, cluster the services in the second service granularity space to obtain different service clusters;
根据每个服务簇中的各服务的输入和输出,得到每个服务簇的代表服务;所述代表服务的输入为该服务簇的共同输入,所述代表服务的输出为该服务簇的共同输出;According to the input and output of each service in each service cluster, the representative service of each service cluster is obtained; the input of the representative service is the common input of the service cluster, and the output of the representative service is the common output of the service cluster ;
将所述代表服务作为所述第一服务粒度空间中的服务。Taking the representative service as a service in the first service granularity space.
较佳地,所述第一服务粒度空间中的服务还包括由代表服务组成的组合服务;Preferably, the services in the first service granularity space further include a combined service consisting of representative services;
所述第一处理模块还用于:The first processing module is also used for:
将具有关联关系的代表服务进行组合得到所述组合服务;若所述代表服务与所述组合服务之间的语义相似度大于第一阈值,则将所述代表服务作为所述组合服务的同类服务。Combining the representative services with the associated relationship to obtain the composite service; if the semantic similarity between the representative service and the composite service is greater than the first threshold, the representative service is regarded as a similar service of the composite service .
较佳地,所述第一处理模块还用于:Preferably, the first processing module is also used for:
若所述第一服务粒度空间中不存在与所述需求目标相匹配的服务,则对所述需求目标进行解析,并根据解析结果,生成与所述解析结果相匹配的服务,将与所述解析结果相匹配的服务作为所述第一目标服务。If there is no service matching the demand target in the first service granularity space, the demand target is parsed, and according to the analysis result, a service matching the analysis result is generated, and the service matching the analysis result is generated. The service matching the parsing result is used as the first target service.
较佳地,所述第一处理模块具体用于:Preferably, the first processing module is specifically used for:
获取与所述需求目标相匹配的代表服务作为所述第一目标服务,若所述代表服务为所述组合服务的同类服务,则将所述代表服务和对应的组合服务作为所述第一目标服务;Obtain a representative service that matches the demand target as the first target service, and if the representative service is a service of the same type as the combined service, take the representative service and the corresponding combined service as the first target Serve;
若所述请求信息中还包括所述租户的定制服务,则将与所述需求目标相匹配的服务中包含所述定制服务的组合服务作为所述第一目标服务。If the request information further includes the customized service of the tenant, a combined service including the customized service in the services matching the requirement target is taken as the first target service.
较佳地,所述第二处理模块具体用于:Preferably, the second processing module is specifically used for:
将所述第二服务粒度空间中与所述第一目标服务对应的服务根据QoS进行排序,将QoS满足第二阈值的服务作为所述第二目标服务;或者,Sorting the services corresponding to the first target service in the second service granularity space according to QoS, and using the service whose QoS meets the second threshold as the second target service; or,
若所述租户的服务请求信息中还包括所述租户的服务质量QoS需求,则获取所述第二服务粒度空间中与所述第一目标服务对应且满足所述租户的QoS需求的服务作为所述第二目标服务。If the service request information of the tenant also includes the quality of service QoS requirements of the tenant, the service corresponding to the first target service in the second service granularity space and satisfying the QoS requirements of the tenant is acquired as the Describe the second target service.
较佳地,所述确定模块具体用于:Preferably, the determining module is specifically used for:
接收所述租户对所述第二目标服务的定制指令,将所述租户定制的服务作为所述租户的服务方案。Receive a customization instruction of the tenant for the second target service, and use the service customized by the tenant as a service solution of the tenant.
本发明的上述实施例中,通过获取租户的请求信息,根据租户请求消息查询第一服务粒度空间,获取与请求消息中包含的需求目标相匹配的第一目标服务;其中,第一服务粒度空间中的服务是由第二服务粒度空间具有共同属性的服务得到的;根据所述第一目标服务,查询所述第二服务粒度空间,获取所述第二服务粒度空间中与所述第一目标服务对应的第二目标服务;根据所述第二目标服务确定所述租户的服务方案;本发明实施例根据第二服务粒度空间中具有共同属性的服务来构建第一服务粒度空间,将第一服务粒度空间作为租户的访问的接口,根据用户的请求消息,先查询第一服务粒度空间,进而查询第二服务粒度空间,简化了具体服务的实现细节,提高了确定服务方案的效率和准确性。In the above-mentioned embodiment of the present invention, by acquiring the request information of the tenant, the first service granularity space is queried according to the tenant request message, and the first target service matching the demand target contained in the request message is acquired; wherein, the first service granularity space The services in the second service granularity space are obtained from services with common attributes in the second service granularity space; according to the first target service, query the second service granularity space, and obtain the second service granularity space and the first target service. The second target service corresponding to the service; the service scheme of the tenant is determined according to the second target service; the embodiment of the present invention constructs the first service granularity space according to the services with common attributes in the second service granularity space, and the first service granularity space is The service granularity space is used as the interface for tenant access. According to the user's request message, the first service granularity space is queried first, and then the second service granularity space is queried, which simplifies the implementation details of specific services and improves the efficiency and accuracy of determining service plans. .
附图说明Description of drawings
图1为本发明实施例提供的一种确定服务方案的方法所对应的流程示意图;1 is a schematic flowchart corresponding to a method for determining a service scheme provided by an embodiment of the present invention;
图2为本发明实施例中确定第一服务粒度空间中的服务所对应的流程示意图;FIG. 2 is a schematic flowchart of determining a service in a first service granularity space according to an embodiment of the present invention;
图3为本发明实施例中两个服务的输出与后一个服务的输入相匹配的组合服务示意图;3 is a schematic diagram of a combined service in which the output of two services matches the input of the latter service in an embodiment of the present invention;
图4为本发明实施例中代表服务与组合服务的层次关系示意图;4 is a schematic diagram of a hierarchical relationship between a representative service and a combined service in an embodiment of the present invention;
图5为本发明实施例第一服务粒度空间的模型示意图;5 is a schematic diagram of a model of a first service granularity space according to an embodiment of the present invention;
图6为本发明实施例提供的一种确定服务方案的装置示意图。FIG. 6 is a schematic diagram of an apparatus for determining a service scheme according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
图1为本发明实施例提供的一种确定服务方案的方法所对应的流程示意图,该方法包括:FIG. 1 is a schematic flowchart corresponding to a method for determining a service scheme provided by an embodiment of the present invention, and the method includes:
步骤101,获取租户的请求信息;所述请求信息中至少包括所述租户的需求目标;Step 101: Obtain request information of a tenant; the request information at least includes a demand target of the tenant;
步骤102,查询第一服务粒度空间,获取与所述需求目标相匹配的第一目标服务;所述第一服务粒度空间中的服务是由第二服务粒度空间具有共同属性的服务得到的;Step 102: Query the first service granularity space to obtain a first target service that matches the demand target; the services in the first service granularity space are obtained from services having common attributes in the second service granularity space;
步骤103,根据所述第一目标服务,查询所述第二服务粒度空间,获取所述第二服务粒度空间中与所述第一目标服务对应的第二目标服务;Step 103, query the second service granularity space according to the first target service, and obtain a second target service corresponding to the first target service in the second service granularity space;
步骤104,根据所述第二目标服务确定所述租户的服务方案。Step 104: Determine a service plan of the tenant according to the second target service.
本发明实施例中所述的第二服务粒度空间中包括有大量的服务,这些服务均为具体服务,每个服务均有与其相对应的软件代码。第一服务粒度空间中的服务是由第二服务粒度空间具有共同属性的服务得到的,也就是说,第一服务粒度空间和第二服务粒度空间中的服务存在对应关系。在实现本发明实施例中根据租户的请求消息确定租户的服务方案之前,需要预先根据第二服务粒度空间构建好第一服务粒度空间。The second service granularity space described in the embodiment of the present invention includes a large number of services, these services are all specific services, and each service has a corresponding software code. The services in the first service granularity space are obtained from services having common attributes in the second service granularity space, that is, there is a corresponding relationship between the first service granularity space and the services in the second service granularity space. Before implementing the determination of the tenant's service scheme according to the tenant's request message in the embodiment of the present invention, the first service granularity space needs to be constructed in advance according to the second service granularity space.
下面针对第一服务粒度空间的构建过程进行具体说明。The construction process of the first service granularity space will be specifically described below.
图2为本发明实施例中确定第一服务粒度空间中的服务所对应的流程示意图,具体步骤如下:2 is a schematic flowchart of determining a service in the first service granularity space in an embodiment of the present invention, and the specific steps are as follows:
步骤201,根据所述第二服务粒度空间中各个服务之间的语义相似度,对所述第二服务粒度空间中的服务进行聚簇,得到不同的服务簇;Step 201, according to the semantic similarity between each service in the second service granularity space, cluster the services in the second service granularity space to obtain different service clusters;
步骤202,根据每个服务簇中的各服务的输入和输出,得到每个服务簇的代表服务;所述代表服务的输入为该服务簇的共同输入,所述代表服务的输出为该服务簇的共同输出;Step 202, according to the input and output of each service in each service cluster, obtain the representative service of each service cluster; the input of the representative service is the common input of the service cluster, and the output of the representative service is the service cluster common output;
步骤203,将所述代表服务作为所述第一服务粒度空间中的服务。Step 203, taking the representative service as a service in the first service granularity space.
具体地,第二服务粒度空间中针对服务的不同类别预先存储有不同的服务簇。在步骤201中,针对第二粒度空间中未被聚簇的服务,计算该服务与其它各服务之间的语义相似度,若该服务与某一服务簇中的各服务的语义相似度均大于阈值,则把该服务加入到该服务簇中。否则,继续判断该服务与下一个服务粒簇中各服务之间的语义相似度,直到第二服务粒度空间中的服务簇都判断完毕,若判断完毕后,该服务不属于第二服务粒度空间中的任一服务簇,则为该服务重新创建一个新的服务簇,并把该服务加入到新创建的服务簇中。然后,继续判断第二服务粒度空间中未被聚簇的下一个服务,直到未被聚簇的服务都找到所属的服务簇时,聚簇结束。换言之,第一服务粒度空间中的服务是将第二粒度空间中的服务依据服务的相似性划分为服务簇,将每个服务簇中具有共同属性的代表服务作为第一服务粒度空间中的服务。Specifically, different service clusters are pre-stored in the second service granularity space for different categories of services. In step 201, for the service that is not clustered in the second granularity space, calculate the semantic similarity between the service and other services, if the semantic similarity between the service and each service in a certain service cluster is greater than Threshold, the service is added to the service cluster. Otherwise, continue to judge the semantic similarity between the service and the services in the next service granular cluster until all the service clusters in the second service granularity space are judged. If the judgment is completed, the service does not belong to the second service granularity space If any of the service clusters are found, a new service cluster is re-created for the service, and the service is added to the newly created service cluster. Then, continue to judge the next service that is not clustered in the second service granularity space, and the clustering ends when all the services that are not clustered find the service cluster to which they belong. In other words, the services in the first service granularity space are divided into service clusters according to the similarity of the services in the second granularity space, and the representative services with common attributes in each service cluster are regarded as the services in the first service granularity space. .
下面结合具体例子对上述过程进行说明。The above process will be described below with reference to specific examples.
假设第二服务粒度空间中原有的服务簇为服务簇1、服务簇2、服务簇3、服务簇4、服务簇5。未被聚簇的服务分别为服务a1、服务a2、服务a3。计算服务a1与服务簇1、服务簇2、服务簇3、服务簇4、服务簇5的相似度,如果服务a1与服务簇1中的任一服务的语义相似度均大于阈值,则将服务a1加入到服务簇1中。计算服务a2与服务簇1、服务簇2、服务簇3、服务簇4、服务簇5的相似度,如果服务a2与服务簇2中的任一服务粒的语义相似度均大于阈值,则将服务a2加入到服务簇2中。计算服务a3与服务簇1、服务簇2、服务簇3、服务簇4、服务簇5的相似度,如果服务a3与服务簇3中的任一服务的语义相似度都大于阈值,则将服务a3加入到服务簇3中。It is assumed that the original service clusters in the second service granularity space are service cluster 1, service cluster 2, service cluster 3, service cluster 4, and service cluster 5. The services that are not clustered are service a1, service a2, and service a3. Calculate the similarity between service a1 and service cluster 1, service cluster 2, service cluster 3, service cluster 4, and service cluster 5. If the semantic similarity between service a1 and any service in service cluster 1 is greater than the threshold, the service a1 is added to service cluster 1. Calculate the similarity between service a2 and service cluster 1, service cluster 2, service cluster 3, service cluster 4, and service cluster 5. If the semantic similarity between service a2 and any service particle in service cluster 2 is greater than the threshold, then Service a2 is added to service cluster 2. Calculate the similarity between service a3 and service cluster 1, service cluster 2, service cluster 3, service cluster 4, and service cluster 5. If the semantic similarity between service a3 and any service in service cluster 3 is greater than the threshold, the service a3 is added to service cluster 3.
抽取服务簇1中所有服务的共同输入输出概念组成一个新的服务b1,抽取服务簇2中所有服务的共同输入输出概念组成一个新的服务b2,抽取服务簇3中所有服务的共同输入输出概念组成一个新的服务b3,抽取服务簇4中所有服务粒的共同输入输出概念组成一个新的服务b4,抽取服务簇5中所有服务粒的共同输入输出概念组成一个新的服务b5。服务b1、服务b2、服务b3、服务b4、服务b5分别为服务簇1、服务簇2、服务簇3、服务簇4、服务簇5的代表服务。将服务b1、服务b2、服务b3、服务b4、服务b5作为第一服务粒度空间中的服务。Extract the common input and output concepts of all services in service cluster 1 to form a new service b1, extract the common input and output concepts of all services in service cluster 2 to form a new service b2, and extract the common input and output concepts of all services in service cluster 3. A new service b3 is formed, the common input and output concepts of all service granules in service cluster 4 are extracted to form a new service b4, and the common input and output concepts of all service granules in service cluster 5 are extracted to form a new service b5. Service b1, service b2, service b3, service b4, and service b5 are representative services of service cluster 1, service cluster 2, service cluster 3, service cluster 4, and service cluster 5, respectively. Service b1, service b2, service b3, service b4, and service b5 are used as services in the first service granularity space.
通过上述步骤得到代表服务后,还可将具有关联关系的代表服务进行组合得到组合服务,即将有关联关系的服务组成一个工作流程,一种方式是前一个服务的输出概念与后一个服务的输入概念相匹配;另一种方式是前面多个服务的输出与后一个服务的输入相匹配,从而将具有关联关系的服务按照一定的序列组织起来,表现为一个服务调用了另一个服务,实现消息的传递,产生单个服务所不具备的功能,进一步完善第一服务粒度空间。After the representative service is obtained through the above steps, the representative service with the associated relationship can also be combined to obtain the composite service, that is, the associated service is formed into a workflow. One way is the output concept of the previous service and the input of the latter service. Concept matching; another way is to match the output of the previous services with the input of the latter service, so as to organize the related services in a certain sequence, showing that one service calls another service to realize the message The transmission of the first service can generate functions that a single service does not have, and further improve the granularity space of the first service.
具体地,根据第一服务粒度空间中的服务b1、服务b2、服务b3、服务b4、服务b5之间的关联关系,将服务b1、服务b2、服务b3、服务b4、服务b5进行组合。若服务b1的输出概念与服务b2的输入概念匹配(服务b1和服务b2具有关联关系),则将服务b1、服务b2按照序列组织起来得到组合服务b1-b2。例如,服务b2(City2ZipCode)是一个查询城市邮编的服务,它的输入是Cityname,输出是zipCode,存在一个服务b1的输出概念与服务b2的输入概念的匹配,则可确定服务b2和服务b1具有关联关系,即将服务b2和服务b1进行组合,得到组合服务b1-b2。或者,也可以是服务b3和服务b4的输出概念均与服务b5的输入概念相匹配,得到服务b3、服务b4和服务b5组成的组合服务,如图3所示,为两个服务的输出与后一个服务的输入相匹配的组合服务示意图。Specifically, service b1, service b2, service b3, service b4, and service b5 are combined according to the association relationship among service b1, service b2, service b3, service b4, and service b5 in the first service granularity space. If the output concept of the service b1 matches the input concept of the service b2 (the service b1 and the service b2 have an associated relationship), the service b1 and the service b2 are organized in sequence to obtain the combined service b1-b2. For example, service b2 (City2ZipCode) is a service for querying city zip codes. Its input is Cityname, and its output is zipCode. If there is a match between the output concept of service b1 and the input concept of service b2, it can be determined that service b2 and service b1 have The association relationship is to combine the service b2 and the service b1 to obtain the combined service b1-b2. Alternatively, the output concepts of service b3 and service b4 can be matched with the input concept of service b5, and a combined service consisting of service b3, service b4 and service b5 can be obtained. As shown in Figure 3, the output and Schematic diagram of the composite service where the input of the latter service is matched.
需要说明的是,由于粗粒度的服务在功能上与多个细粒度的服务所实现的功能相同,当细粒度的服务与粗粒度的服务之间的聚合度达到一定阈值时,表明该粗粒度的服务可以层次化分解为细粒度的服务的组合,具体表现为粗粒度的服务的输入输出分别与组合服务的起始服务和结束服务的输入输出的语义相似度大于第一阈值,其中,第一阈值可根据实际情况进行设置。因此,本发明实施例中还可以根据第一粒度空间中的代表服务与组合服务之间的语义相似度得到代表服务与组合服务之间的关系:如果第一粒度空间中的代表服务与组合服务之间的语义相似度大于第一阈值,则将所述代表服务作为所述组合服务的同类服务,从而可根据用户的需求为用户提供更多的可选择服务方案。It should be noted that since a coarse-grained service has the same functions as multiple fine-grained services, when the aggregation degree between the fine-grained service and the coarse-grained service reaches a certain threshold, it indicates that the coarse-grained service has the same function. The service can be hierarchically decomposed into a combination of fine-grained services, which is manifested in that the semantic similarity between the input and output of the coarse-grained service and the input and output of the starting service and ending service of the combined service is greater than the first threshold, where the first A threshold can be set according to the actual situation. Therefore, in the embodiment of the present invention, the relationship between the representative service and the composite service can also be obtained according to the semantic similarity between the representative service and the composite service in the first granularity space: if the representative service in the first granularity space and the composite service are If the semantic similarity between them is greater than the first threshold, the representative service is regarded as a similar service of the combined service, so that the user can be provided with more selectable service solutions according to the user's needs.
如图4所示,为代表服务与组合服务的层次关系示意图。服务c1、服务c2和服务c3构成组合服务c1-c2-c3,如果服务c4的输入和组合服务中的开始服务c1的输入相似,服务c4的输出和组合服务中的结束服务c3的输出相似,则服务c4可以等同于组合服务c1-c2-c3。As shown in Figure 4, it is a schematic diagram of the hierarchical relationship between the representative service and the composite service. Service c1, service c2 and service c3 constitute composite service c1-c2-c3, if the input of service c4 is similar to the input of start service c1 in the composite service, the output of service c4 is similar to the output of end service c3 in the composite service, Then the service c4 can be equivalent to the combined service c1-c2-c3.
本发明实施例中,在步骤101获取到的请求消息后,在步骤102中可根据请求消息中包含的租户的需求目标,查询第一服务粒度空间,以获取与所述需求目标相匹配的第一目标服务。In this embodiment of the present invention, after the request message is obtained in step 101, in step 102, the first service granularity space may be queried according to the demand target of the tenant contained in the request message, so as to obtain the first service granularity space matching the demand target. A target service.
一方面,由于在实际过程中,租户的需求目标所涉及的领域是多种多样的,因此,相对有限的第一服务粒度空间中可能存在也可能不存在与所述需求目标相匹配的服务。针对于第一服务粒度空间中存在与所述需求目标相匹配的服务的情况,本发明实施例直接将与所述需求目标相匹配的服务作为第一目标服务;针对于第一服务粒度空间中不存在与所述需求目标相匹配的服务的情况,本发明实施例先对所述需求目标进行解析,根据解析结果以及第一粒度空间已有的服务,自动生成与解析结果相匹配的服务,然后将与解析结果相匹配的服务作为第一目标服务,从而通过对租户的需求目标进行解析,进而自动生成满足需求的第一目标服务,不仅满足了用户多方面的需求,而且提高了为租户确定服务方案的准确性。On the one hand, because in the actual process, the tenant's demand target involves various fields, therefore, there may or may not exist services matching the demand target in the relatively limited first service granularity space. For the situation that there is a service matching the demand target in the first service granularity space, the embodiment of the present invention directly regards the service matching the demand target as the first target service; for the first service granularity space When there is no service matching the demand target, the embodiment of the present invention first parses the demand target, and automatically generates a service matching the analysis result according to the analysis result and the existing services in the first granularity space, Then, the service that matches the analysis result is used as the first target service, so that the first target service that meets the needs is automatically generated by analyzing the tenant's demand target, which not only meets the various needs of users, but also improves the tenants' needs. Determine the accuracy of the service plan.
另一方面,租户的需求目标所涉及的范围也是多种多样,即需求具有多粒度性,例如,有的中等企业提出要构建一个大型的电子商务应用,而有的小型企业可能需要物流管理的应用。相比之下,前者所提出的需求粒度就要粗于后者。针对上述情况,本发明实施例中可针对租户的请求消息中是否包含定制服务来有针对性地确定满足租户需求的第一目标服务:若请求消息中不包含定制服务,则此时租户可能需要粒度较粗的服务,也可能需要粒度较细的服务,因此当获取到的与需求目标相匹配的服务为代表服务,且该代表服务为组合服务的同类服务时,将该代表服务和对应的组合服务均确定为满足租户需求的第一目标服务,以供租户根据自己的实际需要进行选择;若请求消息中包含定制服务,即租户在需求目标的基础上定制了粒度较细的服务,此时可仅将与所述需求目标相匹配的服务中包含所述定制服务的组合服务作为所述第一目标服务。On the other hand, the scope of tenants' demand objectives is also diverse, that is, the requirements are multi-granular. For example, some medium-sized enterprises propose to build a large-scale e-commerce application, while some small enterprises may require logistics management. application. In contrast, the granularity of requirements proposed by the former is coarser than that of the latter. In view of the above situation, in the embodiment of the present invention, the first target service that meets the needs of the tenant can be determined according to whether the request message of the tenant includes a customized service: if the request message does not include the customized service, the tenant may need to A coarser-grained service may also require a finer-grained service. Therefore, when the obtained service that matches the demand target is a representative service, and the representative service is a similar service of the combined service, the representative service and the corresponding The composite service is determined as the first target service to meet the tenant's needs, so that the tenant can choose according to their actual needs; if the request message contains a customized service, that is, the tenant has customized a finer-grained service based on the demand target. At this time, only the combined service that includes the customized service in the service matching the requirement target may be used as the first target service.
本发明实施例中,根据步骤102获取到第一目标服务后,在步骤103中,根据第一目标服务以及第一服务粒度空间中的服务与第二服务粒度空间中服务的对应关系,从第二服务粒度空间中获取与第一目标服务相对应的服务。如果租户的请求消息中包含有租户的QoS需求,则获取所述第二服务粒度空间中与所述第一目标服务对应且满足所述租户的QoS需求的服务作为所述第二目标服务。如果租户的请求消息中不包含租户的QoS需求,则将所述第二服务粒度空间中与所述第一目标服务对应的服务根据QoS进行排序,将QoS满足第二阈值的服务作为所述第二目标服务;第二阈值可根据实际情况进行设置。In this embodiment of the present invention, after the first target service is acquired according to step 102, in step 103, according to the first target service and the corresponding relationship between the service in the first service granularity space and the service in the second service granularity space, from the first target service The service corresponding to the first target service is obtained in the second service granularity space. If the request message of the tenant includes the QoS requirement of the tenant, a service corresponding to the first target service in the second service granularity space and satisfying the QoS requirement of the tenant is acquired as the second target service. If the request message of the tenant does not contain the QoS requirement of the tenant, the services corresponding to the first target service in the second service granularity space are sorted according to the QoS, and the service whose QoS meets the second threshold is regarded as the first target service. Two target services; the second threshold can be set according to the actual situation.
在步骤104中,根据第二目标服务,确定于第二目标服务对应的具体服务,以确定租户的服务方案。具体可通过接收所述租户对所述第二目标服务的定制指令,将所述租户定制的服务作为所述租户的服务方案。In step 104, according to the second target service, a specific service corresponding to the second target service is determined, so as to determine the service plan of the tenant. Specifically, the service customized by the tenant may be used as the service solution of the tenant by receiving the customization instruction of the tenant for the second target service.
具体地,在确定服务方案阶段,在接收租户对所述第二目标服务的定制指令之前,进行如下剔除处理:例如,假设第二目标服务对应的具体服务包括服务C和服务D,服务C价格为65,响应时间10s,服务D价格为50,响应时间6s,那么在确定第二目标服务的过程中,可自动将服务C则剔除掉。对于满足同一功能的服务有的是代表服务S,有的是与该代表服务S功能等同的组合服务s1-s2,比较组合服务s1-s2与代表服务S的QoS属性,如果组合服务s1-s2的QoS属性优于代表服务S的QoS属性,则将代表服务S剔除掉。通过上述剔除处理后,将未剔除掉的服务返回给租户,以供租户选择,通过这种方式筛选掉明显不良的服务,能够进一步方便用户根据返回的服务进行定制。Specifically, in the stage of determining the service plan, before receiving the tenant's customization instruction for the second target service, the following elimination processing is performed: For example, assuming that the specific services corresponding to the second target service include service C and service D, the price of service C is is 65, the response time is 10s, the price of service D is 50, and the response time is 6s, then in the process of determining the second target service, service C can be automatically eliminated. For the services that satisfy the same function, some are the representative service S, and some are the composite service s1-s2 which is equivalent to the representative service S. Compare the QoS attributes of the composite service s1-s2 and the representative service S. If the QoS attribute of the composite service s1-s2 is superior For the QoS attribute of the representative service S, the representative service S is eliminated. After the above-mentioned culling process, the uneliminated services are returned to the tenant for selection by the tenant, and obviously bad services are filtered out in this way, which can further facilitate the user to customize according to the returned service.
优选地,本发明实施例中,还包括对服务进行继承和版本化管理。根据服务的特有属性,继承操作主要表现在以下几个方面:用户界面的继承,描述性定义的继承,流程的继承以及数据模式的继承。其中,用户界面的继承包括改变界面的内容、改变界面的结构,改变界面的内容包括增加模块、调整字体大小、改变表格的样式等,改变界面的结构包括调整模块的布局、改变展示效果、改变图片或者菜单的位置等。流程的继承包括增加流程和删除流程,增加流程包括顺序增加、并行增加、选择增加,删除流程包括顺序删除、并行删除和选择删除。描述性定义的继承包括增加参数的类型、增加输入输出参数、删除参数的类型、修改参数的类型、删除输入输出参数等。数据模式的继承包括增加数据字段、删除数据字段和修改数据字段。由于市场需求的变化,服务提供商会定期更新应用,租户也会自己定制所需要的属性,这些更新会打破租户原有的服务版本,使得租户各自的服务实例存在版本的不同,租户可以选择迁移到新的版本,也可以为了保持应用的可用性而延迟迁移停留在旧版本上。本发明实施例通过记录新旧版本的差异来实现服务的版本管理。Preferably, in this embodiment of the present invention, the service further includes inheritance and version management. According to the unique properties of the service, the inheritance operation is mainly manifested in the following aspects: the inheritance of the user interface, the inheritance of the descriptive definition, the inheritance of the process and the inheritance of the data schema. Among them, the inheritance of the user interface includes changing the content of the interface, changing the structure of the interface, changing the content of the interface including adding modules, adjusting the font size, changing the style of the table, etc. Changing the structure of the interface includes adjusting the layout of the module, changing the display effect, changing the Location of pictures or menus, etc. Inheritance of process includes adding process and deleting process, adding process includes sequential adding, parallel adding and selective adding, and deleting process includes sequential deleting, parallel deleting and selective deleting. The inheritance of descriptive definitions includes adding parameter types, adding input and output parameters, deleting parameter types, modifying parameter types, and deleting input and output parameters. The inheritance of data schema includes adding data fields, deleting data fields and modifying data fields. Due to changes in market demand, service providers will regularly update applications, and tenants will also customize the required attributes. These updates will break the tenant's original service version, so that tenants' respective service instances have different versions, and tenants can choose to migrate to The new version can also be delayed to stay on the old version in order to maintain the availability of the application. The embodiment of the present invention realizes the version management of the service by recording the difference between the old and new versions.
下面结合具体实例对本发明做进一步的说明。The present invention will be further described below in conjunction with specific examples.
假设第一服务粒度空间的模型如图5所示,第一服务粒度空间中的服务包括:服务P度假、服务Q订机票、服务S申请签证、服务T订酒店&观光、服务R订火车票、服务X订酒店、服务Y观光。Assuming that the model of the first service granularity space is shown in Figure 5, the services in the first service granularity space include: service P for vacation, service Q to book air tickets, service S to apply for visa, service T to book hotels & sightseeing, and service R to book train tickets , Service X to book hotels, Service Y to travel.
如果租户的需求比较简单,例如想要一个观光服务,那么服务Y即可满足需求,此时服务Y服务为第一目标服务,根据第一目标服务查询第二服务粒度空间,可得到对应的第二目标服务,具体的服务可以从第二目标服务对应的具体服务集合中根据QoS需求来选择。If the tenant's needs are relatively simple, such as wanting a sightseeing service, then service Y can meet the demand. At this time, service Y is the first target service. According to the first target service, query the second service granularity space, and the corresponding first target service can be obtained. Second target service, the specific service can be selected from the specific service set corresponding to the second target service according to the QoS requirement.
如果租户想要一个度假计划的服务,其需求目标为:度假,并定制了服务Q、服务S、服务X,则根据租户的需求目标可获取到的与需求目标相匹配的服务包括:(1)服务P;(2)组合服务Q-S-T;(3)组合服务R-S-T;(4)组合服务Q-S-X-Y;(5)组合服务R-S-X-Y。进一步根据租户的定制服务,可得到第一目标服务为包含服务Q、服务S、服务T的组合服务Q-S-X-Y。根据得到的第一目标服务,可得到第一目标服务中的各服务所对应的第二目标服务,进而根据QoS需求选择具体服务,确定出租户的服务方案。If a tenant wants a vacation plan service, and its demand target is: vacation, and customizes service Q, service S, and service X, the services that can be obtained according to the tenant's demand target and matching the demand target include: (1 ) service P; (2) combined service Q-S-T; (3) combined service R-S-T; (4) combined service Q-S-X-Y; (5) combined service R-S-X-Y. Further according to the customized service of the tenant, it can be obtained that the first target service is a combined service Q-S-X-Y including service Q, service S, and service T. According to the obtained first target service, the second target service corresponding to each service in the first target service can be obtained, and then a specific service is selected according to the QoS requirement, and a service plan of the tenant is determined.
租户也可以选择边定制边由系统为其推荐的方式,即租户提出需要服务Q,并从服务Q对应的具体服务中选择一个具体服务,然后系统可为其推荐服务S对应的具体服务,租户选择了一个服务S对应的具体服务后,系统再为其推荐服务E或者服务F对应的具体服务,采用此种方式根据第一服务粒度空间中的组合服务依次类推,最终得到满足租户需求的服务方案。The tenant can also choose the method of customizing and recommending it by the system, that is, the tenant proposes the need for service Q, and selects a specific service from the specific services corresponding to service Q, and then the system can recommend the specific service corresponding to service S for the tenant. After selecting a specific service corresponding to service S, the system recommends specific services corresponding to service E or service F for it. In this way, according to the combined services in the first service granularity space and so on, the service that meets the needs of the tenant is finally obtained. Program.
本发明实施例中,通过获取租户的请求信息,根据租户请求消息查询第一服务粒度空间,获取与请求消息中包含的需求目标相匹配的第一目标服务;其中,第一服务粒度空间中的服务是由第二服务粒度空间具有共同属性的服务得到的;根据所述第一目标服务,查询所述第二服务粒度空间,获取所述第二服务粒度空间中与所述第一目标服务对应的第二目标服务;根据所述第二目标服务确定所述租户的服务方案;本发明实施例根据第二服务粒度空间中具有共同属性的服务来构建第一服务粒度空间,将第一服务粒度空间作为租户的访问的接口,根据用户的请求消息,先查询第一服务粒度空间,进而查询第二服务粒度空间,简化了具体服务的实现细节,提高了确定服务方案的效率和准确性。In this embodiment of the present invention, by acquiring the tenant's request information, the first service granularity space is queried according to the tenant request message, and the first target service matching the demand target contained in the request message is acquired; wherein, in the first service granularity space The service is obtained from a service with a common attribute in the second service granularity space; according to the first target service, query the second service granularity space, and obtain the second service granularity space corresponding to the first target service the second target service; the tenant's service scheme is determined according to the second target service; the embodiment of the present invention constructs the first service granularity space according to the services with common attributes in the second service granularity space, and the first service granularity As the interface for tenants' access, the space first queries the first service granularity space and then the second service granularity space according to the user's request message, which simplifies the implementation details of specific services and improves the efficiency and accuracy of determining service plans.
针对上述方法流程,本发明实施例还提供一种确定服务方案的装置,该装置的具体内容可以参照上述方法实施,在此不再赘述。For the above method flow, an embodiment of the present invention further provides an apparatus for determining a service scheme, and the specific content of the apparatus may be implemented with reference to the above method, which will not be repeated here.
图6为本发明实施例提供的一种确定服务方案的装置示意图,该装置包括:FIG. 6 is a schematic diagram of an apparatus for determining a service scheme provided by an embodiment of the present invention, where the apparatus includes:
获取模块601,用于获取租户的请求信息;所述请求信息中至少包括所述租户的需求目标;an obtaining module 601, configured to obtain request information of a tenant; the request information at least includes a demand target of the tenant;
第一处理模块602,用于查询第一服务粒度空间,获取与所述需求目标相匹配的第一目标服务;所述第一服务粒度空间中的服务是由第二服务粒度空间具有共同属性的服务得到的;The first processing module 602 is configured to query the first service granularity space to obtain the first target service that matches the demand target; the services in the first service granularity space have common attributes by the second service granularity space service received;
第二处理模块603,用于根据所述第一目标服务,查询所述第二服务粒度空间,获取所述第二服务粒度空间中与所述第一目标服务对应的第二目标服务;A second processing module 603, configured to query the second service granularity space according to the first target service, and obtain a second target service corresponding to the first target service in the second service granularity space;
确定模块604,用于根据所述第二目标服务确定所述租户的服务方案。A determination module 604, configured to determine a service plan of the tenant according to the second target service.
较佳地,所述第一处理模块602还用于:Preferably, the first processing module 602 is also used for:
通过以下方式得到所述第一服务粒度空间中的服务:The services in the first service granularity space are obtained in the following manner:
根据所述第二服务粒度空间中各个服务之间的语义相似度,对所述第二服务粒度空间中的服务进行聚簇,得到不同的服务簇;According to the semantic similarity between the various services in the second service granularity space, cluster the services in the second service granularity space to obtain different service clusters;
根据每个服务簇中的各服务的输入和输出,得到每个服务簇的代表服务;所述代表服务的输入为该服务簇的共同输入,所述代表服务的输出为该服务簇的共同输出;According to the input and output of each service in each service cluster, the representative service of each service cluster is obtained; the input of the representative service is the common input of the service cluster, and the output of the representative service is the common output of the service cluster ;
将所述代表服务作为所述第一服务粒度空间中的服务。Taking the representative service as a service in the first service granularity space.
较佳地,所述第一服务粒度空间中的服务还包括由代表服务组成的组合服务;Preferably, the services in the first service granularity space further include a combined service consisting of representative services;
所述第一处理模块602还用于:The first processing module 602 is also used for:
将具有关联关系的代表服务进行组合得到所述组合服务;若所述代表服务与所述组合服务之间的语义相似度大于第一阈值,则将所述代表服务作为所述组合服务的同类服务。Combining the representative services with the associated relationship to obtain the composite service; if the semantic similarity between the representative service and the composite service is greater than the first threshold, the representative service is regarded as a similar service of the composite service .
较佳地,所述第一处理模块602还用于:Preferably, the first processing module 602 is also used for:
若所述第一服务粒度空间中不存在与所述需求目标相匹配的服务,则对所述需求目标进行解析,并根据解析结果,生成与所述解析结果相匹配的服务,将与所述解析结果相匹配的服务作为所述第一目标服务。If there is no service matching the demand target in the first service granularity space, the demand target is parsed, and according to the analysis result, a service matching the analysis result is generated, and the service matching the analysis result is generated. The service matching the parsing result is used as the first target service.
较佳地,所述第一处理模块602具体用于:Preferably, the first processing module 602 is specifically used for:
若所述请求信息中仅包括所述租户的需求目标,则获取与所述需求目标相匹配的代表服务作为所述第一目标服务,若所述代表服务为所述组合服务的同类服务,则将所述代表服务和对应的组合服务作为所述第一目标服务;If the request information only includes the demand target of the tenant, obtain a representative service that matches the demand target as the first target service; if the representative service is a service of the same type as the combined service, then Taking the representative service and the corresponding combined service as the first target service;
若所述请求信息中还包括所述租户的定制服务,则将与所述需求目标相匹配的服务中包含所述定制服务的组合服务作为所述第一目标服务。If the request information further includes the customized service of the tenant, a combined service including the customized service in the services matching the requirement target is taken as the first target service.
较佳地,所述第二处理模块603具体用于:Preferably, the second processing module 603 is specifically used for:
将所述第二服务粒度空间中与所述第一目标服务对应的服务根据QoS进行排序,将QoS满足第二阈值的服务作为所述第二目标服务;或者,Sorting the services corresponding to the first target service in the second service granularity space according to QoS, and using the service whose QoS meets the second threshold as the second target service; or,
若所述租户的服务请求信息中还包括所述租户的QoS需求,则获取所述第二服务粒度空间中与所述第一目标服务对应且满足所述租户的QoS需求的服务作为所述第二目标服务。If the tenant's service request information further includes the tenant's QoS requirements, acquire a service in the second service granularity space that corresponds to the first target service and meets the tenant's QoS requirements as the first Two target services.
较佳地,所述确定模块604具体用于:Preferably, the determining module 604 is specifically used for:
接收所述租户对所述第二目标服务的定制指令,将所述租户定制的服务作为所述租户的服务方案。Receive a customization instruction of the tenant for the second target service, and use the service customized by the tenant as a service solution of the tenant.
从上述内容可以看出:本发明实施例中,通过获取租户的请求信息,根据租户请求消息查询第一服务粒度空间,获取与请求消息中包含的需求目标相匹配的第一目标服务;其中,第一服务粒度空间中的服务是由第二服务粒度空间具有共同属性的服务得到的;根据所述第一目标服务,查询所述第二服务粒度空间,获取所述第二服务粒度空间中与所述第一目标服务对应的第二目标服务;根据所述第二目标服务确定所述租户的服务方案;本发明实施例根据第二服务粒度空间中具有共同属性的服务来构建第一服务粒度空间,将第一服务粒度空间作为租户的访问的接口,根据用户的请求消息,先查询第一服务粒度空间,进而查询第二服务粒度空间,简化了具体服务的实现细节,提高了确定服务方案的效率和准确性。It can be seen from the above content that: in this embodiment of the present invention, by obtaining the request information of the tenant, querying the first service granularity space according to the tenant request message, and obtaining the first target service that matches the demand target contained in the request message; wherein, The services in the first service granularity space are obtained from services with common attributes in the second service granularity space; according to the first target service, query the second service granularity space, and obtain the the second target service corresponding to the first target service; the service scheme of the tenant is determined according to the second target service; the embodiment of the present invention constructs the first service granularity according to the services with common attributes in the second service granularity space Space, the first service granularity space is used as the interface for tenants to access, according to the user's request message, the first service granularity space is queried, and then the second service granularity space is queried, which simplifies the implementation details of specific services and improves the determination of service solutions. efficiency and accuracy.
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, or as a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flows of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510346701.5A CN106331000B (en) | 2015-06-19 | 2015-06-19 | A method and device for determining a service plan |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510346701.5A CN106331000B (en) | 2015-06-19 | 2015-06-19 | A method and device for determining a service plan |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106331000A CN106331000A (en) | 2017-01-11 |
CN106331000B true CN106331000B (en) | 2019-11-08 |
Family
ID=57727603
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510346701.5A Expired - Fee Related CN106331000B (en) | 2015-06-19 | 2015-06-19 | A method and device for determining a service plan |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106331000B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108053323A (en) * | 2017-11-13 | 2018-05-18 | 平安养老保险股份有限公司 | Method, apparatus, computer equipment and the storage medium of service plan generation |
CN109598576A (en) * | 2018-10-25 | 2019-04-09 | 阿里巴巴集团控股有限公司 | Service recommendation method, device and equipment |
CN111368158A (en) * | 2020-03-31 | 2020-07-03 | 中国建设银行股份有限公司 | Service searching method and device based on artificial intelligence platform |
CN112181984B (en) * | 2020-09-28 | 2023-04-11 | 深圳平安智汇企业信息管理有限公司 | Channel service management method, device, equipment and medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101794226B (en) * | 2010-03-08 | 2012-11-07 | 山东大学 | Service software construction method and system adapting to multiple business abstraction levels |
CN102135998B (en) * | 2011-03-24 | 2013-04-10 | 浙江大学 | Method for interactively combining Web services based on precondition and post-condition |
US9286475B2 (en) * | 2012-02-21 | 2016-03-15 | Xerox Corporation | Systems and methods for enforcement of security profiles in multi-tenant database |
CN102780766B (en) * | 2012-06-27 | 2014-10-08 | 浙江大学 | Design service resource cross-domain construction method for cloud manufacturing |
-
2015
- 2015-06-19 CN CN201510346701.5A patent/CN106331000B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN106331000A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12223005B2 (en) | Generating a contextual search stream | |
JP7478865B2 (en) | Dynamic execution of parameterized applications that process keyed network data streams | |
US10459979B2 (en) | Graphically managing data classification workflows in a social networking system with directed graphs | |
CN101350023B (en) | Method and platform capable of customizing enquiry based on service combination | |
EP3155537B1 (en) | Custom partitioning of a data stream | |
US20130173662A1 (en) | Dependency based prioritization of sub-queries and placeholder resolution | |
US11657425B2 (en) | Target user estimation for dynamic assets | |
US9171272B2 (en) | Automated generation of analytic and visual behavior | |
CN106331000B (en) | A method and device for determining a service plan | |
CN104471572A (en) | Progressive query computation using streaming architectures | |
CN102411591A (en) | Information processing method and device | |
US9830385B2 (en) | Methods and apparatus for partitioning data | |
US11496584B2 (en) | Extraction and distribution of content packages in a digital services framework | |
US9760552B2 (en) | Document renewal and translation | |
CN113268500B (en) | Service processing method and device and electronic equipment | |
CN106874392B (en) | Method and device for index storage of audience user information and advertising information delivery | |
KR102164409B1 (en) | Crowdsourcing user-provided identifiers and associating them with brand identities | |
CN112182093A (en) | Data storage method, device, equipment and computer readable storage medium | |
CN108959458B (en) | Data generation and use method, system, medium and computer device | |
CN115309767A (en) | Data fusion method and device | |
CN108574718A (en) | A method and device for creating a cloud host | |
US11394626B2 (en) | Digital services framework | |
CN115510204B (en) | Intelligent water service data resource catalog management method and device | |
CN117194463A (en) | Method and device for inquiring report data | |
CN112925813A (en) | Data processing method, device and system based on mixed arrangement and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220624 Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031 Patentee after: New founder holdings development Co.,Ltd. Patentee after: Peking University Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd. Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 5 floor Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd. Patentee before: Peking University Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191108 |
|
CF01 | Termination of patent right due to non-payment of annual fee |