Resource hosting service method, electronic device and computer-readable storage medium

By creating and providing a hosting menu on the cloud platform, allowing users to quickly deploy and debug servers, it solves the problem of complex cloud server purchase and usage processes, optimizes user experience and reduces costs.

CN109785037BActive Publication Date: 2024-10-15PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811505130.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-10
Publication Date
2024-10-15
Estimated Expiration
2038-12-10

AI Technical Summary

Technical Problem

The existing cloud server purchase and use process is complicated, which increases the user's cost and reduces the user experience, especially when there are interruptions in the API release, purchase and use process.

Method used

By inputting requirements from the service consumer, the service provider calls the cloud platform to create a server and provides a hosting menu, including server name, IP address, username and password, allowing the consumer to access the server remotely for trial use, optimizing API list generation and clustering tags Matching reduces user technical requirements and costs.

Benefits of technology

It achieves rapid deployment and debugging of servers, optimizes user experience, provides one-stop service, and reduces the cost and usage complexity of API consumers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109785037B_ABST
    Figure CN109785037B_ABST
Patent Text Reader

Abstract

The present invention relates to big data analysis, and provides a resource hosting service method, which builds a server through a service provider according to the needs of a service consumer, for the service consumer to experience and try out, including: inputting consumer needs through the service consumer; the service provider calls the corresponding cloud platform according to the consumer needs, creates a server, and sends a service hosting menu to the service consumer, wherein the service hosting menu includes a server name and IP address, a user name and password, and a public network IP; the service consumer remotely accesses the server through the public network IP, user name and password, and tries out the server. The present invention also proposes an electronic device and a computer-readable storage medium. The present invention can deploy a server according to consumer needs, and consumers can debug and experience the flow field, with good effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data analysis technology, and more specifically, to a resource hosting service method, an electronic device, and a computer-readable storage medium. Background Art

[0002] Generally speaking, computing devices use a communication network or a series of communication networks to exchange data. Companies and organizations operate computer networks that interconnect many computing devices to support operations or provide services to third parties. Currently on the market, there are Ant Financial API platform and Alibaba Cloud API platform. Although they provide services for purchasing cloud servers on their platforms, there are many types. It takes a certain amount of time to understand their services and pay for them before they can be used. This solution greatly increases the user's usage cost, and will interrupt the user's process of publishing, purchasing and using API (Application Programming Interface), reducing the user experience. Summary of the invention

[0003] In view of the above problems, the purpose of the present invention is to provide a resource hosting service method, electronic device and computer-readable storage medium that builds a server according to customer needs for customer debugging experience and quickly puts it into market use.

[0004] In order to achieve the above-mentioned object, the present invention provides an electronic device, the electronic device comprising a memory and a processor, the resource hosting service program builds a server through a service provider according to the needs of a service consumer, for the service consumer to experience and try out, and the resource hosting service program is executed by the processor to implement the following steps:

[0005] Input consumer demand through service consumption end;

[0006] The service provider calls the corresponding cloud platform according to the consumer's needs, creates a server, and sends the service hosting menu to the service consumer. The service hosting menu includes the server name and IP address, user name and password, and public IP address.

[0007] The service consumer can remotely access the server through the public network IP, user name and password to try out the server.

[0008] In addition, in order to achieve the above-mentioned purpose, the present invention also provides a resource hosting service method, which builds a server through a service provider according to the needs of a service consumer, for the service consumer to experience and try out, and the method includes:

[0009] Input consumer demand through service consumption end;

[0010] The service provider calls the corresponding cloud platform according to the consumer's needs, creates a server, and sends the service hosting menu to the service consumer. The service hosting menu includes the server name and IP address, user name and password, and public IP address.

[0011] The service consumer can remotely access the server through the public network IP, user name and password to try out the server.

[0012] Preferably, the service provider constructs one or more servers, and further, preferably, provides two servers to the service consumer.

[0013] Preferably, the method for creating the server includes:

[0014] Generate an API list based on consumer demand and send it to the consumer, setting the API selection to host mode;

[0015] Build a server based on the API selected on the service consumer side.

[0016] Further, preferably, the method for generating an API list according to consumer demand includes:

[0017] Clustering all APIs and adding clustering labels, including: analyzing API metadata, the metadata including application labels, application paths and application information, the application labels being a multi-angle summary of API application information; clustering the APIs according to the similarity between the metadata, adding clustering labels of the clusters, the clustering labels being the applicable scope of such APIs;

[0018] According to the matching degree between the keywords of the consumer demand and the clustering labels, clusters corresponding to a set number of clustering labels with matching degrees from high to low are screened out, and the APIs in the clusters generate an API list.

[0019] In addition, preferably, the method for generating an API list based on consumer demand includes: using customer demand as association rules to analyze the support and confidence of each API application label and its combination, and outputting an API list of API combinations corresponding to application label combinations that meet minimum support and minimum confidence requirements, wherein the application label is a multi-angle summary of API application information.

[0020] In addition, preferably, the method for generating an API list according to consumer demand includes: clustering a plurality of service consumer ends according to preference indicators of the plurality of service consumer ends for each API to obtain a plurality of service consumer groups, wherein the preference indicators include one or more of the number of views, the number of purchases, the number of evaluations, and the number of favorable comments;

[0021] Obtaining user characteristics of the service consumer group, wherein the user characteristics include one or more of group and individual, age, city, enterprise nature, and consumption level;

[0022] Match the user characteristics of the new service consumption end and each service consumption group to obtain the service consumption group with the highest matching degree;

[0023] The preference index of each API in various types of APIs that belong to the consumer needs of the new service consumption end is screened out from the above-mentioned service consumer groups, and the sum of the preference indexes of each user for each API is averaged to obtain the preference value of the service consumer group for each API in various types of APIs, and the APIs in the various types of APIs are sorted in descending order according to the preference value, and an API is selected from each type of API according to the sorting to form an API combination, and combinations with different sortings form different API combinations, and an API list is generated to constitute different servers.

[0024] In addition, in order to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium includes a resource hosting service program, and when the resource hosting service program is executed by a processor, the steps of the above-mentioned resource hosting service method are implemented.

[0025] The resource hosting service method electronic device and computer-readable storage medium of the present invention understand the needs of the other party, and can directly provide a server for deployment, debugging and experience use, and put the server into the market at a very fast speed. In addition, the user experience is optimized, so that API consumers can experience the purchased API more conveniently and save time. The cloud host used for experience use is provided free of charge, saving API consumer costs, providing one-stop service, and reducing API consumer technical requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] By referring to the following description in conjunction with the accompanying drawings, and with a more comprehensive understanding of the present invention, other objects and results of the present invention will become more apparent and easy to understand. In the accompanying drawings:

[0027] Figure 1 It is a schematic diagram of the application environment of a preferred embodiment of the resource hosting service method of the present invention;

[0028] Figure 2 yes Figure 1 Module diagram of a preferred embodiment of a resource hosting service program;

[0029] Figure 3 It is a flow chart of a preferred embodiment of the resource hosting service method of the present invention.

[0030] The same reference numerals throughout the drawings indicate similar or corresponding features or functions. DETAILED DESCRIPTION

[0031] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0032] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0033] The present invention provides a resource hosting service method, which is applied to an electronic device 1. Figure 1 FIG. 1 is a schematic diagram of an application environment of a preferred embodiment of the resource hosting service method of the present invention.

[0034] In this embodiment, the electronic device 1 may be a terminal device with computing functions, such as a server, a mobile phone, a tablet computer, a portable computer, or a desktop computer.

[0035] The electronic device 1 includes a memory 11 , a processor 12 , a network interface 13 , and a communication bus 14 .

[0036] The memory 11 includes at least one type of readable storage medium. The at least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card-type memory 11, etc. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1. In other embodiments, the readable storage medium may also be an external memory 11 of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc.

[0037] In this embodiment, the readable storage medium of the memory 11 is generally used to store the resource hosting service program 10 installed in the electronic device 1. The memory 11 can also be used to temporarily store data that has been output or is to be output.

[0038] In some embodiments, the processor 12 may be a central processing unit (CPU), a microprocessor or other data processing chip, and is used to run program codes stored in the memory 11 or process data, such as executing the resource hosting service program 10.

[0039] The network interface 13 may include a wireless network interface or a wired network interface, and the network interface 23 is generally used to establish a communication connection between the electronic device 1 and other electronic devices. For example, the network interface 13 is used to connect the electronic device 1 to an external terminal through a network, and to establish a data transmission channel and a communication connection between the electronic device 1 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth, or Wi-Fi.

[0040] The communication bus 14 is used to realize the connection and communication between these components.

[0041] Figure 1 The electronic device 1 is shown only with components 11 - 14 , but it should be understood that implementation of all of the components shown is not required, and more or fewer components may alternatively be implemented.

[0042] Optionally, the electronic device 1 may further include a user interface, which may include an input unit such as a keyboard, a voice input device such as a microphone and other devices with voice recognition function, a voice output device such as a speaker, headphones, etc. Optionally, the user interface may also include a standard wired interface or a wireless interface.

[0043] Optionally, the electronic device 1 may further include a display, which may also be referred to as a display screen or a display unit.

[0044] In some embodiments, it may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an organic light-emitting diode (OLED) touch device, etc. The display is used to display information processed in the electronic device 1 and to display a visual user interface.

[0045] Optionally, the electronic device 1 further includes a touch sensor. The area provided by the touch sensor for the user to perform a touch operation is called a touch control area. In addition, the touch sensor described here may be a resistive touch sensor, a capacitive touch sensor, etc. Moreover, the touch sensor includes not only a contact touch sensor, but also a proximity touch sensor, etc. In addition, the touch sensor may be a single sensor or a plurality of sensors arranged in an array.

[0046] exist Figure 1 In the device embodiment shown, the memory 11 as a computer storage medium may include an operating system and a resource hosting service program 10. The resource hosting service program 10 builds a server through a service provider according to the needs of a service consumer, so that the service consumer can experience and try it out. When the processor 12 executes the resource hosting service program 10 stored in the memory 11, the following steps are implemented:

[0047] Input consumer demand through service consumption end;

[0048] The service provider calls the corresponding cloud platform according to the consumer's needs, creates a server, and sends the service hosting menu to the service consumer. The service hosting menu includes the server name and IP address, user name and password, and public IP address.

[0049] The service consumer can remotely access the server through the public network IP, user name and password to try out the server.

[0050] Preferably, the resource hosting service program 10 implements the following steps when the processor executes to create a server:

[0051] Generate an API list based on consumer demand and send it to the consumer. Preferably, set the API selection to host mode.

[0052] Build a server based on the API selected on the service consumer side.

[0053] The above-mentioned electronic device can understand the service consumption needs. When ordering API, there can be a server directly for deployment, debugging and experience use, and the API can be put into the market for use at a very fast speed, providing resource hosting services (host mode) for API consumers, allowing API consumers to abandon the cumbersome cloud server understanding and purchasing process, and experience the ordered API in the most direct way, so as to obtain a smooth field and good user experience.

[0054] In other embodiments, the resource hosting service program 10 may also be divided into one or more modules, one or more modules are stored in the memory 11 and executed by the processor 12 to implement the present invention. The module referred to in the present invention refers to a series of computer program instruction segments that can implement specific functions. Figure 2 As shown, Figure 1 Functional module diagram of a preferred embodiment of the resource hosting service program 10. The resource hosting service program 10 can be divided into:

[0055] The service consumer end 110 and the service provider end 120, wherein the service consumer end 110 is used to input consumer demands, and the service provider end 120 calls the corresponding cloud platform according to the consumer demands, creates a server, and sends a service hosting menu to the service consumer end 110, wherein the service hosting menu includes the server name and IP address, user name and password, and public network IP. The consumer remotely accesses the server of the service provider end 120 through the public network IP, user name and password at the service consumer end 110 to try out the server.

[0056] Preferably, the service provider 120 builds one or more servers for the service consumers to experience and try out.

[0057] The resource hosting service program 10 may also not include the service consumer end 110. The service consumer end 110 is a terminal wirelessly connected to the service provider end 120. For example, the service consumer end 110 is a mobile phone, and the consumption demand is sent to the service provider end 120 by sending emails, WeChat, etc. The service provider end 120 returns the service hosting menu of the constructed server to the service consumer end 110 by emails, WeChat, etc. It should be noted that the service consumer end 110 and the service provider end 120 can be smart phones, tablet computers, laptop computers, desktop computers, etc., but are not limited to them. The service consumer end 110 can be connected to the service provider end via Bluetooth, USB (Universal Serial Bus), WiFi, local area network or other communication connection methods, and the present invention is not limited here.

[0058] Preferably, the service provider 120 includes:

[0059] An API list generation module 121 generates an API list according to consumer demand and sends it to the consumer. Preferably, the API selection is set to host mode;

[0060] The server construction module 122 constructs a server according to the API selected at the service consumer end.

[0061] In one embodiment of the present invention, the API list generating module 121 includes:

[0062] The clustering label adding module clusters all APIs and adds clustering labels, including: a metadata obtaining unit, which obtains metadata of the API, wherein the metadata includes application labels, application paths, and application information, and the application labels are a multi-angle summary of the API application information; a clustering unit, which clusters the APIs according to the similarity between the metadata (such as Pearson correlation coefficient, cosine similarity, inverse square distance similarity, and Jaccard similarity, etc.), and adds clustering labels of the clusters, wherein the clustering labels are the applicable scope of such APIs;

[0063] The list generation module obtains the matching degree between the keywords of consumer demand and the clustering labels. For example, the keywords and clustering labels are converted into word vectors, and the matching degree between the keywords and the clustering labels is determined by similarity methods such as vector matching method, distance measurement method (Euclidean distance, etc.), Tonimoto coefficient, etc., and clusters corresponding to a set number of clustering labels with matching degree (similarity) from high to low are screened out, and the APIs in the clusters generate an API list.

[0064] In another embodiment of the present invention, the API list generation module 121 uses customer requirements as association rules to analyze the support and confidence of each API application tag and its combination, and outputs an API list corresponding to an application tag combination that meets the minimum support and minimum confidence requirements, wherein the application tag is a multi-angle summary of the API application information, specifically including:

[0065] A collection unit collects APIs and their application tags, and aggregates and stores the application tags according to API identifiers to build an API application tag data source;

[0066] Extraction unit, extracting keywords of consumer needs;

[0067] A screening unit, screening application tags similar to the keyword;

[0068] A support unit, determining the support of various combinations of the above application tags, and obtaining a set of application tags consisting of the combinations with a support greater than a minimum support;

[0069] A confidence unit determines the confidence of each non-vacuum subset of the application tag set, and judges whether the confidence of the non-empty true subset is greater than a minimum confidence threshold. If the confidence of the non-empty true subset is greater than the minimum confidence threshold, an association is generated between the non-vacuum subsets and their complements that meet the confidence requirements under the association rule of the demand input by the service consumer;

[0070] The list generation unit selects the APIs matching the non-empty proper subset and its complement respectively, and generates an API list according to the matching degree.

[0071] In the third embodiment of the present invention, the API list generation module 121 generates an API list for a new service consumer according to historical data of multiple service consumers at the service provider, thereby constructing a server, specifically including:

[0072] A service consumer end grouping unit, which clusters the multiple service consumers according to the preference indicators of the multiple service consumers for each API to obtain multiple service consumer groups, wherein the preference indicators include one or more of the number of views, the number of purchases, the number of evaluations, and the number of favorable comments;

[0073] A user feature extraction unit, which obtains user features of a service consumer group, wherein the user features include one or more of group and individual, age, city, enterprise nature, and consumption level;

[0074] A matching unit matches the user characteristics of the new service consumer and each service consumer group to obtain the service consumer group with the highest matching degree;

[0075] The list generating unit selects the preference index of each API in each type of API that belongs to the new service consumption end demand from the above-mentioned service consumption group, averages the sum of the preference index of each user for each API, obtains the preference value of the service consumption group for each API in each type of API, sorts the APIs in the various types of APIs in descending order according to the preference value, selects an API from each type of API according to the sorting, combines them into an API combination, and combinations of different sortings form different API combinations to generate an API list.

[0076] In addition, the present invention also provides a resource hosting service method. Figure 3 FIG. 1 is a flow chart of a preferred embodiment of the resource hosting service method of the present invention. The method can be executed by a device, and the device can be implemented by software and / or hardware.

[0077] In this embodiment, the resource hosting service method builds a server through the service provider according to the needs of the service consumer, so that the service consumer can experience and try it out. The method includes:

[0078] Step S1, inputting consumer demand through the service consumption end;

[0079] Step S2, the service provider calls the corresponding cloud platform according to the consumer's needs, creates a server, and sends a service hosting menu to the service consumer, wherein the service hosting menu includes the server name and IP address, user name and password, and public network IP;

[0080] Step S3, remotely access the server through the public network IP, user name and password at the service consumer end to try out the server.

[0081] In step S2, the method for creating the server includes:

[0082] Generate an API list based on consumer demand and send it to the consumer, setting the API selection to host mode;

[0083] Build a server based on the API selected on the service consumer side.

[0084] Consumers of the above resource hosting service method can directly debug and experience the ordered API at the service consumption end to quickly determine whether this API meets customer needs, saving consumers a lot of time. Since it is a free cloud host, it also eliminates the cost issue of consumers in the experience stage. The free cloud host is a short-term trial version, mainly used for API consumer experience debugging, saving time and cost for API consumers. If the API meets consumer needs, they can further contact the platform to purchase a formal server; conversely, there is no need to return the cloud host, it will be automatically closed and released when the waiting period expires.

[0085] In an optional embodiment, the method for generating an API list according to consumer demand includes:

[0086] Clustering all APIs and adding clustering labels, including: analyzing API metadata, the metadata including application labels, application paths and application information, the application labels being a multi-angle summary of API application information; clustering the APIs according to the similarity between the metadata, adding clustering labels of the clusters, the clustering labels being the applicable scope of such APIs;

[0087] According to the matching degree between the keywords of the consumer demand and the clustering labels, clusters corresponding to a set number of clustering labels with matching degrees from high to low are screened out, and the APIs in the clusters generate an API list.

[0088] In another optional embodiment, the method for generating an API list based on consumer demand includes: using customer demand as an association rule to analyze the support and confidence of each API application label and its combination, and outputting an API list of API combinations corresponding to application label combinations that meet minimum support and minimum confidence requirements, wherein the application label is a multi-angle summary of API application information.

[0089] Preferably, it includes:

[0090] Collect APIs and their application tags, aggregate and store their application tags according to API identifiers, and build an API application tag data source, such as

[0091] API application tag data source is

[0092]

[0093] Where T represents the application tag set, m represents the number of APIs, p1 … p m is the name of the API, indicating the 1st to mth API, [tag m,1 ,…tag m,k ] indicates P m 1 to k application labels, k represents the number of application labels, and is 0 when the number of application labels is less than k;

[0094] Extract keywords of consumer needs;

[0095] Filter application tags that are similar to the keywords;

[0096] Determine the support of various combinations of the above application tags;

[0097] Obtaining an application tag set consisting of the combination method with a degree greater than the minimum support,

[0098] For example, scan the application tag set T and apply tag b j Support (b j )for:

[0099] B=[b1...b j ]

[0100]

[0101] in, is the set of all non-zero and non-overlapping application labels in the application label set T, j represents P1 to P m The number of non-zero and non-overlapping application tags of the API, 0 <j≤mk,|b j | Indicates application tags similar to the keyword b j The number of occurrences of the application tag of the API provided by the service provider to meet the consumer demand of the service consumer, d is the total number of application tags of the API provided by the service provider to meet the needs of each consumer;

[0102] Determine the confidence of each non-vacuum subset of the application tag set that meets the support requirement. For example, the confidence of a true subset in the application tag set T is,

[0103]

[0104] Wherein, |T| represents the number of occurrences of the application labels of the API provided by the service provider when the application label combination T that meets the support requirement meets the needs of each consumer, and |t| represents the number of occurrences of the application labels of the API provided by the non-empty proper subset t of the application label combination T when the service provider meets the needs of each consumer;

[0105] Determine whether the confidence of the non-empty true subset is greater than the minimum confidence threshold;

[0106] If the confidence of the non-empty true subset is greater than the minimum confidence threshold, an association is generated between the non-empty subset and its complement that meet the confidence requirement under the association rule of the demand input by the service consumer;

[0107] Filter the APIs that match the non-empty proper subset and its complement respectively, and generate an API list according to the matching degree.

[0108] Further, preferably, in order to reduce the amount of calculation and speed up the calculation speed, preferably, a! in the application tag set T is calculated by successively increasing the number of combination elements. The support of the combination of types (the number of application labels in the application label set T), specifically: first scan the application label set T, calculate the support of any two application label combinations in the above application label set T, and obtain the double combination frequency set of two application label combinations greater than the minimum combination support threshold; after obtaining the double combination label set, scan the double combination frequency set and the application label set T, add an application label to the two application label combinations in the double combination frequency set to form a combination of three application labels, wherein the added application label is different from the above two application labels and is an element in the application label set; calculate the support of all three application label combinations combined according to the above steps, and obtain the three-combination frequency set of three application label combinations greater than the minimum combination support threshold; repeat the above steps until the application label set T' that satisfies all combinations greater than the minimum combination support threshold is obtained. Take the label set T = [t1 t2 t3] as an example to illustrate the process of forming the above application label set T'. First, scan the label set T, calculate the support of any two application label combinations in the above label set, that is, calculate the two application label combinations [t1 t2], [t2 t1], [t2 t3], [t1t3], [t3 t1] and [t3 t2]. If only the support of the combination [t1 t2] and [t2 t3] is greater than the minimum combination support, the double combination frequency set [t1t2 t2t3] is obtained. The obtained double label only adds one application label to the above two combinations to form three application label combinations [t1 t2 t3] and [t2 t3 t1]. The support of the above three application labels is calculated. If only the combination [t1 t2 t3] is greater than the minimum combination support, the three-combination frequency set is [t1 t2 t3]. The double combination frequency sets and three-combination frequency sets that meet the requirements are combined to form the total combination frequency set T'=[t1t2 t2t3 t1t2t3].

[0109] In a third optional embodiment, the method for generating an API list according to consumer demand includes:

[0110] Clustering the multiple service consumers according to their preference indicators for each API to obtain multiple service consumer groups, wherein the preference indicators include one or more of the number of views, the number of purchases, the number of reviews, and the number of favorable comments;

[0111] Obtaining user characteristics of the service consumer group, wherein the user characteristics include one or more of group and individual, age, city, enterprise nature, and consumption level;

[0112] Match the user characteristics of the new service consumption end and each service consumption group to obtain the service consumption group with the highest matching degree;

[0113] The preference index of each API in various types of API () that belong to the new service consumer end demand is screened out from the above-mentioned service consumer groups, the sum of the preference indexes of each user for each API is averaged, and the preference value of the service consumer group for each API in various types of API is obtained, and the APIs in the various types of API are sorted in descending order according to the preference value, and an API is selected from each type of API according to the sorting to form an API combination. Combinations with different sortings form different API combinations, and an API list is generated to constitute different servers. For example, APIs can be classified according to function. For example, the consumer demand of the online service consumer end is financial insurance recommendation. Then, the API can select one or more APIs from multiple APIs of the classification model according to the above method, and can also select one or more APIs from multiple APIs of the profit model according to the above method. Multiple combinations of the two types of APIs can form an API list, thereby constituting one or more financial servers.

[0114] In addition, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a resource hosting service program, wherein the resource hosting service program builds a server through a service provider according to the needs of a service consumer, for the service consumer to experience and try out, and when the resource hosting service program is executed by the processor, the following steps are implemented:

[0115] Input consumer demand through service consumption end;

[0116] The service provider calls the corresponding cloud platform according to the consumer's needs, creates a server, and sends the service hosting menu to the service consumer. The service hosting menu includes the server name and IP address, user name and password, and public IP address.

[0117] The service consumer can remotely access the server through the public network IP, user name and password to try out the server.

[0118] The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the specific implementation of the resource hosting service method and the electronic device described above, and will not be described in detail herein.

[0119] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.

[0120] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. Through the description of the above implementation modes, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation mode. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0121] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A resource hosting service method, applied to an electronic device, characterized in that: According to the needs of the service consumer, a server is built by the service provider for the service consumer to experience and try out. The method includes: Input consumer demand through service consumption end; The service provider calls the corresponding cloud platform according to the consumer's needs, generates an API list according to the consumer's needs and sends it to the consumer, setting the API selection to host mode; builds a server according to the API selected by the service consumer, and sends the service hosting menu to the service consumer, wherein the service hosting menu includes the server name and IP address, user name and password, and public network IP; At the service consumer end, remotely access the server through the public network IP, username and password to try out the server; The method of generating an API list according to consumer demand includes: Clustering all APIs and adding clustering labels, including: analyzing API metadata, the metadata including application labels, application paths and application information, the application labels being a multi-angle summary of API application information; clustering the APIs according to the similarity between the metadata, adding clustering labels of the clusters, the clustering labels being the applicable scope of such APIs; According to the matching degree between the keywords of the consumer demand and the clustering labels, clusters corresponding to a set number of clustering labels with matching degrees from high to low are screened out, and the APIs in the clusters are generated into an API list; The method for generating an API list according to consumer demand further includes: Analyze the support and confidence of each API application label and its combination by taking customer needs as association rules, and generate an API list by outputting the API combination corresponding to the application label combination that meets the minimum support and minimum confidence requirements, wherein the application label is a multi-angle summary of the API application information; Collect APIs and their application tags, aggregate and store their application tags according to API identifiers, and build an API application tag data source; Extract keywords of consumer needs; Filter application tags that are similar to the keywords; Determine the support of various combinations of the above application tags; Obtaining an application tag set consisting of the combination methods with a degree greater than the minimum support; wherein the degree of support of the combination in the application tag set is calculated by sequentially increasing the number of combination elements; determining a confidence level for each non-vacuum subset of the set of application tags; Determine whether the confidence of the non-empty true subset is greater than the minimum confidence threshold; If the confidence of the non-empty true subset is greater than the minimum confidence threshold, an association is generated between the non-empty subset and its complement that meet the confidence requirement under the association rule of the demand input by the service consumer; Filter the APIs that match the non-empty proper subset and its complement respectively, and generate an API list according to the matching degree.

2. The resource hosting service method according to claim 1, characterized in that: The method for generating an API list according to consumer demand includes: Clustering the multiple service consumers according to their preference indicators for each API to obtain multiple service consumer groups, wherein the preference indicators include one or more of the number of views, the number of purchases, the number of reviews, and the number of favorable comments; Obtaining user characteristics of the service consumer group, wherein the user characteristics include one or more of group and individual, age, city, enterprise nature, and consumption level; Match the user characteristics of the new service consumption end and each service consumption group to obtain the service consumption group with the highest matching degree; The preference index of each API in each type of API that belongs to the new service consumer demand is screened out from the above-mentioned service consumer groups, and the sum of the preference index of each user for each API is averaged to obtain the preference value of the service consumer group for each API in each type of API, and the APIs in the various types of APIs are sorted in descending order according to the preference value, and an API is selected from each type of API according to the sorting to form an API combination, and combinations of different sortings form different API combinations to generate an API list.

3. The resource hosting service method according to claim 1, characterized in that: The service provider constructs one or more servers.

4. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein the memory includes a resource hosting service program, wherein the resource hosting service program builds a server through a service provider according to the needs of a service consumer, so as to provide a trial experience for the service consumer, and when the resource hosting service program is executed by the processor, the following steps are implemented: Input consumer demand through service consumption end; The service provider calls the corresponding cloud platform according to the consumer's needs, generates an API list according to the consumer's needs and sends it to the consumer, setting the API selection to host mode; builds a server according to the API selected by the service consumer, and sends the service hosting menu to the service consumer, wherein the service hosting menu includes the server name and IP address, user name and password, and public network IP; At the service consumer end, remotely access the server through the public network IP, username and password to try out the server; The method of generating an API list according to consumer demand includes: Clustering all APIs and adding clustering labels, including: analyzing API metadata, the metadata including application labels, application paths and application information, the application labels being a multi-angle summary of API application information; clustering the APIs according to the similarity between the metadata, adding clustering labels of the clusters, the clustering labels being the applicable scope of such APIs; According to the matching degree between the keywords of the consumer demand and the clustering labels, clusters corresponding to a set number of clustering labels with matching degrees from high to low are screened out, and the APIs in the clusters are generated into an API list; The method for generating an API list according to consumer demand further includes: Analyze the support and confidence of each API application label and its combination by taking customer needs as association rules, and generate an API list by outputting the API combination corresponding to the application label combination that meets the minimum support and minimum confidence requirements, wherein the application label is a multi-angle summary of the API application information; Collect APIs and their application tags, aggregate and store their application tags according to API identifiers, and build an API application tag data source; Extract keywords of consumer needs; Filter application tags that are similar to the keywords; Determine the support of various combinations of the above application tags; Obtaining an application tag set consisting of the combination methods with a degree greater than the minimum support; wherein the degree of support of the combination in the application tag set is calculated by sequentially increasing the number of combination elements; determining a confidence level for each non-vacuum subset of the set of application tags; Determine whether the confidence of the non-empty true subset is greater than the minimum confidence threshold; If the confidence of the non-empty true subset is greater than the minimum confidence threshold, an association is generated between the non-empty subset and its complement that meet the confidence requirement under the association rule of the demand input by the service consumer; Filter the APIs that match the non-empty proper subset and its complement respectively, and generate an API list according to the matching degree.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a resource hosting service program, and when the resource hosting service program is executed by a processor, the steps of the resource hosting service method according to any one of claims 1 to 3 are implemented.