Service management method and the device
First Claim
Patent Images
1. A method for service management, comprising:
- invoking, by a first application in a first device, a remote target service stored on a second device and associated with a second application in the second device, wherein the remote target service is provided by the second device through a network to the first device;
detecting, by the first device, popularity of use of the remote target service by the first application, wherein the popularity of use of the remote target service comprises a frequency of use of the remote target service by the first application;
determining, by the first device, that the remote target service meets a plurality of migration conditions, wherein the migration conditions comprise;
that the first device locally comprises a data source required by the remote target service,that the remote target service is an independent service that does not have mutual dependence with any other service on the second device, andthat the remote target service is a stateless service; and
when the popularity reaches a first threshold value, loading, by the first device, a copy of the remote target service to the first device to be local with the first application, wherein;
the determining that the remote target service meets a plurality of migration conditions is requisite for the loading,the loading comprises loading a copy of a segment of a logic component of the remote target service and excludes loading a data component of the remote target service, andthe remote target service remains available on the second device and local with the second application after the loading.
3 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides a method and a device for service management, wherein the method comprises: detecting popularity of use of a remote target service by an application; and when the popularity reaches a first threshold value, loading the target service to the application locally. The present invention improves the response efficiency and adaptive capability of a distributed system.
52 Citations
18 Claims
-
1. A method for service management, comprising:
-
invoking, by a first application in a first device, a remote target service stored on a second device and associated with a second application in the second device, wherein the remote target service is provided by the second device through a network to the first device; detecting, by the first device, popularity of use of the remote target service by the first application, wherein the popularity of use of the remote target service comprises a frequency of use of the remote target service by the first application; determining, by the first device, that the remote target service meets a plurality of migration conditions, wherein the migration conditions comprise; that the first device locally comprises a data source required by the remote target service, that the remote target service is an independent service that does not have mutual dependence with any other service on the second device, and that the remote target service is a stateless service; and when the popularity reaches a first threshold value, loading, by the first device, a copy of the remote target service to the first device to be local with the first application, wherein; the determining that the remote target service meets a plurality of migration conditions is requisite for the loading, the loading comprises loading a copy of a segment of a logic component of the remote target service and excludes loading a data component of the remote target service, and the remote target service remains available on the second device and local with the second application after the loading. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A first device for service management, comprising one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the first device to perform operations comprising:
-
invoking, by a first application in the first device, a remote target service stored on a second device and associated with a second application in the second device, wherein the remote target service is provided by the second device through a network to the first device; detecting popularity of use of the remote target service by the first application, wherein the popularity of use of the remote target service comprises a frequency of use of the remote target service by the first application; determining that the remote target service meets a plurality of migration conditions, wherein the migration conditions comprise; that the first device locally comprises a data source required by the remote target service, that the remote target service is an independent service that does not have mutual dependence with any other service on the second device, and that the remote target service is a stateless service; and when the popularity reaches a first threshold value, loading a copy of the remote target service to the first device to be local with the first application, wherein; the determining that the remote target service meets a plurality of migration conditions is requisite for the loading, the loading comprises loading a copy of a segment of a logic component of the remote target service and excludes loading a data component of the remote target service, and the remote target service remains available on the second device and local with the second application after the loading. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor of a first device, cause the processor to perform operations comprising:
-
invoking, by a first application in the first device, a remote target service stored on a second device and associated with a second application in the second device, wherein the remote target service is provided by the second device through a network to the first device; detecting popularity of use of the remote target service by the first application, wherein the popularity of use of the remote target service comprises a frequency of use of the remote target service by the first application; determining that the remote target service meets a plurality of migration conditions, wherein the migration conditions comprise; that the first device locally comprises a data source required by the remote target service, that the remote target service is an independent service that does not have mutual dependence with any other service on the second device, and that the remote target service is a stateless service; and when the popularity reaches a first threshold value, loading a copy of the remote target service to the first device to be local with the first application, wherein; the determining that the remote target service meets a plurality of migration conditions is requisite for the loading, the loading comprises loading a copy of a segment of a logic component of the remote target service and excludes loading a data component of the remote target service, and the remote target service remains available on the second device and local with the second application after the loading. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification