WO2023098634A1 - Information processing method and apparatus - Google Patents

Information processing method and apparatus Download PDF

Info

Publication number
WO2023098634A1
WO2023098634A1 PCT/CN2022/134793 CN2022134793W WO2023098634A1 WO 2023098634 A1 WO2023098634 A1 WO 2023098634A1 CN 2022134793 W CN2022134793 W CN 2022134793W WO 2023098634 A1 WO2023098634 A1 WO 2023098634A1
Authority
WO
WIPO (PCT)
Prior art keywords
component
link
basic service
links
call
Prior art date
Application number
PCT/CN2022/134793
Other languages
French (fr)
Chinese (zh)
Inventor
李娟娟
傅文林
邓自立
姜思哲
Original Assignee
阿里云计算有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 阿里云计算有限公司 filed Critical 阿里云计算有限公司
Publication of WO2023098634A1 publication Critical patent/WO2023098634A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions

Definitions

  • the present application relates to the field of new generation information technology, in particular to an information processing method and device.
  • the server has developed rapidly. Developers can deploy a large number of basic service components in the server for rent by tenants, and call the basic service components of the server when tenants need to provide services for customers. To process the customer's online data in order to provide services to customers.
  • a customer can place an order on the tenant’s e-commerce platform.
  • the e-commerce platform After the e-commerce platform receives the request from the customer to place an order, the e-commerce platform needs to create an order.
  • the e-commerce platform needs to create an order.
  • getting the amount of the order needs to be based on the basic service component used to get the amount
  • the order number of the generated order needs to be based on the basic service component used to generate the order number
  • the name of the product in the order needs to be based on the method used to get the product
  • the basic service component of the name of the name, the receiving address of the goods in the order needs to be based on the basic service component used to obtain the receiving address.
  • obtaining the selling price of the product needs to be based on the basic service component used to obtain the selling price
  • obtaining the discount information of the product needs to be based on a basic service component used to obtain the discount information
  • obtaining the discount information of the e-commerce platform needs to be based on another
  • the basic service components for obtaining preferential information and obtaining the red envelopes in the customer account need to be based on the basic service components for obtaining red envelopes, that is, the purpose of generating orders needs to be realized based on the corresponding basic service components.
  • the server connects to tenants, and tenants can be entities that need to provide services to customers, such as some e-commerce companies and some short video companies.
  • tenants need to provide services to customers, they need to have the ability to provide services to customers.
  • tenants can generate service models, which can process the online data of customers. Realize the provision of services to our customers.
  • tenants can rent the required basic service components from the server according to their actual needs, and generate a service model.
  • the service model includes the component identifiers of the leased basic service components and records the basic components corresponding to each component identifier.
  • Dependencies between service components, the generated service model is deployed on the tenant's platform, and when the tenant's platform processes the customer's online data, the tenant's platform sequentially starts from the service according to the component identification and dependencies in the service model Call the basic service components in the terminal to process the online data to provide services to customers.
  • the staff of the tenant can manually select the required basic service components in the server based on work experience, and secondly, manually configure them based on work experience Dependencies between various basic service components.
  • This application shows an information processing method and device.
  • the present application shows an information processing method, which is applied to the server, and the method includes: when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain the Multiple component call links that have actually appeared in the server.
  • the multiple component call links are formed during the process of the server processing the real online data of the customer in the historical process; multiple component call links in the Similar component calling links are clustered to obtain at least one component calling link set; in each component calling link set, respectively select at least one component calling link applicable to the tenant; provide the selected component calling link to the tenant, To enable the tenant to at least generate a service model with the help of the provided component invocation link.
  • the present application shows an information processing device, which is applied to the server, and the device includes: an acquisition module, used to acquire In the historical process, multiple component call links actually appeared in the server.
  • the multiple component call links were formed during the process of the server processing the customer's real online data in the historical process;
  • the clustering module It is used to cluster similar component call links in multiple component call links to obtain at least one component call link set;
  • the selection module is used to select at least one component call link set applicable to the tenant respectively A component call link; providing a module for providing a selected component call link to the tenant, so that the tenant at least generates a service model by using the provided component call link.
  • the present application shows an electronic device, the electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to perform any of the foregoing aspects method shown.
  • the present application shows a non-transitory computer-readable storage medium.
  • the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the Methods.
  • the present application shows a computer program product.
  • the instructions in the computer program product are executed by the processor of the electronic device, the electronic device can execute the method as shown in any one of the foregoing aspects.
  • FIG. 1 is a flowchart of steps of an information processing method of the present application.
  • Fig. 2 is a flow chart of steps of a method for obtaining a component invocation link of the present application.
  • Fig. 3 is a flow chart of steps of a method for invoking link clustering of components in the present application.
  • FIG. 4 is a schematic diagram of a dependency relationship among basic service components of the present application.
  • FIG. 5 is a flow chart of steps of a method for selecting a component invoking link of the present application.
  • FIG. 6 is a structural block diagram of an information processing device of the present application.
  • Fig. 7 is a structural block diagram of a device of the present application.
  • the tenant when a tenant needs to use the basic service components in the server to generate a service model, the tenant needs to manually select the required basic service components in the server and manually configure the dependencies between the basic service components .
  • the basic service components manually selected according to the needs may not match the basic service components actually needed for online data processing, and the manual configuration of the basic service components
  • the dependency relationship may not match the actual dependency relationship required for online data processing, resulting in the failure of the generated service model to process the customer's online data normally, resulting in the inability to provide services to the customer normally.
  • the inventor proposes the desire to reduce labor costs when the tenant generates a service model with the help of the basic service components in the server, and the desire to make the generated service model conform to the actual needs of the tenant.
  • the inventor carefully checked the real The multiple component call links that have appeared are analyzed.
  • the multiple component call links are formed during the process of the server processing the real online data of each customer in the historical process. After careful analysis, the inventor found that , when the server processes at least some of the customers’ real online data, the component invocation chains composed of the basic service components called sequentially in the server are the same or similar, that is, the component invocation chains involved in at least some of the customers Paths can be reused.
  • FIG. 1 it shows a schematic flow chart of an information processing method of the present application.
  • the method is applied to a server, etc., and the method includes:
  • step S101 when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain multiple component call links that actually appeared in the server in the historical process, and multiple component call links It is formed in the process of the server processing the real online data of the customer in the historical process.
  • a large number of basic service components are configured in the server for tenants to call when providing services to customers, for example, when processing online data of customers.
  • a component call link includes multiple basic service components, and there are dependencies among at least some of the multiple basic service components.
  • the component call link if one basic service component is called normally, another service may be called normally, and the other basic service component depends on the one basic service component.
  • the server when the server processes the customer's online data submitted by the tenant, it is necessary to call the basic service component A.
  • the basic service component A When calling the basic service component A, it is necessary to call the basic service component B and the basic service component C.
  • the basic service component D when the basic service component D is called, the basic service component E and the basic service component F need to be called.
  • the component call link includes: basic service component A, basic service component B, basic service component C, basic service component D, basic service component E, and basic service component F. And in this component call link, basic service component A depends on basic service component B, basic service component C and basic service component D, and basic service component D depends on basic service component E and basic service component F.
  • the server In the historical process, the server has processed a large amount of online data. When processing each online data, it will call some basic service components and there is a logical sequence between these basic service components. The logical sequence reflects these Dependencies between basic service components, etc.
  • log file of each basic service component is recorded in the server, and the log file of the basic service component records: the component call link involved (for example, where) each time the basic service component is called in the historical process The link identification of each call, and the dependencies between other basic service components in the calling link of the components involved in each call, etc.
  • the server can obtain the call links of multiple components that actually appeared in the server in the historical process.
  • the specific acquisition method refer to the embodiment shown in FIG. 2 , which will not be described in detail here.
  • step S102 similar component calling links in multiple component calling links are clustered to obtain at least one set of component calling links.
  • Every two component calling links in any component calling link set are similar component calling links.
  • some component calling links are the same, some component calling links are different but similar, the basic service components included in the similar component calling links are similar, or, the similar component calling links include the The dependencies between the basic service components are similar, so that similar components call the links with the same or similar functions, for example, all the components that generate an order call the link or all the components that cancel the order call the link, etc.
  • step S103 is executed.
  • step S103 at least one component invocation link applicable to the tenant is selected from each component invocation link set.
  • the set of component call links often includes more than two component call links.
  • a small amount of Component call links to reduce the difficulty of tenant selection, etc.
  • some component call links can be selected from more than two component call links included in the component call link set To provide to the tenant, for example, select at least one component invocation link suitable for the tenant from the two or more component invocation links included in the set of component invocation links to provide to the tenant.
  • step S104 the selected component calling link is provided to the tenant, so that the tenant at least generates a service model by using the provided component calling link.
  • the server can send the selected component call link to the terminal used by the tenant, so that the tenant can view the component call link on the terminal used by the tenant, and then can know which components are included in the component call link.
  • Basic service components and the dependencies between the included basic service components, etc. and then refer to which basic service components are included in the component call link and the dependencies between the included basic service components, etc., to create your own service model, and then You can deploy the service model on your own platform, and use the service model to provide external services (such as providing services to customers, etc.).
  • the tenant when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain multiple component call links that actually appeared in the server in the historical process, multiple component call links It is formed when the server processes the customer's real online data in the historical process; similar component call links in multiple component call links are clustered to obtain at least one set of component call links; In the set of component invocation links, at least one component invocation link suitable for the tenant is selected respectively; the selected component invocation link is provided to the tenant, so that the tenant at least generates a service model by means of the provided component invocation link.
  • the staff of the tenant does not need to manually select the required basic service components in the server and manually configure the dependencies between each basic service component, but can directly provide the tenant
  • the component call links that actually appear in the server are often actually available component call links (the dependencies between basic service components have been determined), so that when the actual needs of tenants are met, This can reduce labor costs and improve tenant experience.
  • component call links that actually appear in the server are often actually available component call links, it can avoid the situation that the manually configured component call links are unavailable due to lack of work experience.
  • the provided component invokes the link to generate the service model, it increases the possibility that the tenant can use the service model to process the online data of the customer normally, that is, the possibility that the tenant can provide services to the customer normally increases.
  • step S101 can be implemented through the following process, including:
  • step S201 log files of at least some of the basic service components configured in the server are acquired.
  • the log file of the basic service component records the invocation of the basic service component actually invoked by the server in the historical process.
  • the log file of the basic service component may include multiple sub-files, and each sub-file is generated when the server actually invokes the basic service component in the historical process.
  • the basic service component is usually invoked according to a component invocation link, and the basic service component may have a relationship with other basic service components in the component invocation link.
  • a sub-file can be generated in the log file of the basic service component, and the link identifier of the component calling link can be recorded in the sub-file, to indicate that the event that the basic service component is called this time involves the A link identifier of a component call link, and it is recorded in the sub-file that the basic service component may have a dependency relationship with other basic service components in the component call link.
  • the log file that implements the basic service component records the link identification of each component call link involved in the basic service component and the dependency between the basic service component and other basic service components in the component call link. relation.
  • a developer develops multiple basic service components in advance, and configures multiple basic service components into the server, so that multiple basic service components are configured on the server.
  • the server can call some basic service components in turn according to the actual needs of the tenants, and the basic service components called in turn form a component call link.
  • tenants use the basic service components of the server to provide services to customers.
  • tenants need to call some basic service components of the server, and a component call link is formed between the basic service components called.
  • a sub-file will be generated in the log file of the first basic service component. Then generate a link ID and record the link ID in the subfile.
  • a sub-file will be generated in the log file of the second basic service component. And record the generated link ID in the sub-file.
  • the dependency relationship on the second basic service component can be recorded in the sub-file, for example, the component identifier of the first basic service component that depends on the second basic service component, etc. can be recorded.
  • a sub-file will be generated in the log file of the third basic service component. And record the generated link ID in the sub-file.
  • the dependency relationship on the second basic service component can be recorded in the sub-file, for example, the component identifier of the second basic service component that depends on the third basic service component, etc. can be recorded.
  • step S202 According to the log file of each basic service component, it is possible to restore multiple component call links that actually appeared in the server in the historical process, and the specific restoration method can refer to step S202.
  • step S202 according to at least part of the log files of the basic service components, a plurality of component call links that actually appeared in the server in the historical process are constructed.
  • this step can be implemented through the following process, including:
  • the links recorded in the filter log file identify the same basic service components.
  • the link identifier recorded in the log file in any basic service component is: when the basic service component is called during the process of forming the component call link corresponding to the link identifier, the log file in the basic service component stored in.
  • the log files of each basic service component configured in the server include multiple sub-files.
  • any sub-file in the log file of any basic service component obtain the link identifier in the sub-file, and then log files in other basic service components in multiple basic service components except this basic service component Search for the link identifier in each sub-file in the log file, determine that the log file includes the basic service component "recording the sub-file with the link identifier", and determine the basic service component and the determined basic service component as the log file
  • the link in identifies the same basic service component, and for each other sub-file in the log file of the basic service component and for each other sub-file in the log file of each other basic service component, perform the above operation in the same way, Then execute step 2012.
  • step 2012 For each basic service component, the process of step 2012 can be executed separately, so as to obtain the component invocation link corresponding to each basic service component.
  • some two basic service components may have the same basic service component, and some two basic service components may not have the same basic service component.
  • the log file of the basic service component records: among the basic service components that are screened, the component ID of the basic service component that depends on the basic service component, that is, the component ID The corresponding basic service component depends on the basic service component.
  • part of the subcomponent call links in the two or more subcomponent call links can be deleted in the combined component call link, Only one sub-component call link in the two or more sub-component call links may be reserved, so as to realize the simplification of the combined component call links.
  • step 2012 it may be determined whether there are at least two identical subcomponent invocation links in the combined component invocation links and the same at least two subcomponent invocation links are all used by the same basic service Component dependencies.
  • the subcomponent calling link may include one basic service component, or more than two basic service components with dependencies, etc.
  • Part of the same at least two subcomponent calling links is deleted, so that one of the at least two subcomponent calling links remains in the combined component calling links.
  • providing the component invocation link to the tenant is for the tenant to refer to the component invocation link to generate a service model for providing to customers.
  • step 2011 it may be determined whether each basic service component with the same link ID is successfully invoked in the same component invocation link involved.
  • each basic service component with the same link identifier is discarded.
  • the server often connects with a large number of tenants, and different tenants involve different service scenarios, for example, different tenants provide different types of services to various customers.
  • some tenants involve short video scenarios, some tenants involve e-commerce scenarios, some tenants involve cloud storage scenarios, some tenants involve game scenarios, and some tenants involve communication and social networking scenarios, etc.
  • some basic service components are only used in short video scenarios, some basic service components are only used in e-commerce scenarios, some basic service components are only used in cloud storage scenarios, and some basic service components are used in It will only be used in game scenarios, and some tenants will only be used in communication and social scenarios.
  • some basic service components may be used in more than two service scenarios.
  • the component call link where the basic service component is located often does not involve the scene involved in the tenant, that is, the component call link where the basic service component is located It is useless to the tenant, and it is not necessary to provide the tenant with the component call link where the basic service component is located, otherwise the tenant will get a component call link that he will not actually use, which will lead to the accuracy of the provision Low and degraded tenant experience.
  • the tenant-related service scene when obtaining the log files of at least some of the basic service components configured in the server in step S201, the tenant-related service scene.
  • the service scenarios involved by the tenant may be entered by the tenant on the server side. Then, among the multiple basic service components configured in the server, determine the basic service component involved in the service scenario. Afterwards, the log files of the basic service components involved in the service scenario can be obtained.
  • the service scenario involved in the basic service component can be determined in advance, and stored in the corresponding relationship between the component ID of the basic service component and the service scenario involved in the basic service component.
  • the component identification of the basic service component and the service scenarios involved in the basic service component are the same for every other basic service component configured on the server.
  • the tenant can develop a service model based on the basic service component of the component call link provided by the server, so as to provide services to customers through the service model.
  • the component call link provided to the tenant is an unavailable component call link or an available but unreliable component call link, it will cause the service model generated by the tenant according to the provided component call link to be in the actual call process Unavailability or unreliability will affect tenants' ability to provide services to customers through the service model.
  • the component invocation links may not be restored based on abnormal and low reliability basic service components.
  • the Status indicators of each basic service component of the configured multiple basic service components in a historical process.
  • the multiple basic service components configured in the server determine the basic service components whose state indicators meet the preset requirements. Then get the log files for the identified underlying service components.
  • the state indicators of each basic service component in the historical process of the multiple basic service components configured in the server when obtaining the state indicators of each basic service component in the historical process of the multiple basic service components configured in the server, for any one of the multiple basic service components, you can obtain the historical process
  • the basic service component has the first number of occurrences of the target state, and then the first number of occurrences is used as a state indicator of the basic service component in a historical process.
  • the target state may include a call failure state or a call abnormal state, or the target state may include other possible states other than call normal.
  • the basic service component itself may cause the target state of the basic service component, and the target state of the basic service component that the basic service component depends on may also cause the basic The service component has the target state.
  • the basic service component may be caused by the basic service component itself, or it may be caused by the basic service component that the basic service component depends on.
  • the obtained first occurrence times of the target state of the basic service component in the historical process not only includes: the number of times the basic service component itself causes the target state to appear in the basic service component, but also includes: the basic service component The number of times the dependent basic service component appears in the target state and causes the basic service component to appear in the target state.
  • the target state of the basic service component that the basic service component depends on causes the target state of the basic service component to have nothing to do with the basic service component itself causing the target state of the basic service component, that is, the basic service component that the basic service component depends on
  • the number of occurrences of the target state caused by the target state of the basic service component should not be recorded in the first number of occurrences, otherwise the first number of occurrences will be inaccurate, and it is likely that the basic service component that meets the preset requirements will be misjudged It is a basic service component that does not meet the requirements, and if the basic service component that is misjudged as not meeting the requirements is closely related to the service scenario involved by the tenant, the tenant cannot be provided with a component call link that includes the basic service component. As a result, tenants cannot obtain component call links that are likely to be useful to tenants and that may need to be referenced, reducing the provision efficiency.
  • the number of occurrences of the target state corresponding to the component ID of the basic service component may be found in the correspondence between the component ID of the basic service component and the number of occurrences of the target state, and used as the first number of occurrences.
  • the correspondence between the component ID of the basic service component and the number of occurrences of the target state stores a plurality of corresponding entries, and each corresponding table item includes a component ID of the basic service component and the number of occurrences of the target state of the basic service component. first count.
  • the number of occurrences of the target state corresponding to the component ID of the basic service component directly dependent on the basic service component can be found, if the base If there is only one service that the service component directly depends on, the found number of occurrences of one is used as the second number of occurrences. If the basic service component directly depends on multiple services, the found numbers of occurrences can be summed to obtain the second number of occurrences.
  • the status index of the basic service component in the historical process is acquired.
  • the difference between the first occurrence number and the second occurrence number can be calculated and used as a status indicator of the basic service component in the historical process.
  • step S102 may be implemented through the following process, including:
  • step S301 the link similarity between every two component call links among the plurality of component call links is obtained respectively.
  • the similarity between component calling links can be determined according to the types of basic service components included in the component calling links and the dependencies between basic service components.
  • this step can be implemented through the following processes, including:
  • the link information in the string form includes: the string form of the basic service component included in the component call link Component IDs and dependencies between the underlying service components included in the component call chain.
  • the link information of the component call link in the form of a string can be obtained, and the link information of the component call link in the form of a string includes: The component identification of the basic service component included in the component calling link and the dependency relationship among the basic service components included in the component calling link. The same is true for each of the other component call chains in the plurality of component call chains.
  • the component calling link includes basic service component A, basic service component B, basic service component C, basic service component D, basic service component E, and basic service component F.
  • the basic service component A depends on the basic service component B, the basic service component C and the basic service component D respectively, and the basic service component D depends on the basic service component E and the basic service component F respectively.
  • the component ID of the basic service component A is "A”
  • the component ID of the basic service component B is “B”
  • the component ID of the basic service component C is “C”
  • the component ID of the basic service component D is "D”
  • the component ID of the basic service component E is "E”
  • the component ID of the basic service component F is "F”.
  • link information in the string form of the component calling link may include [A[B C D[E F]]].
  • This step can be achieved through the following processes, including:
  • the component identifier of each basic service component in the component call link in string form Encode them separately to obtain the component identifiers in the form of vectors of each basic service component included in the component call link.
  • a component ID in the form of a string is a string
  • a component ID in the form of a vector is a vector
  • any basic service component in the component call link use the vector form component identifier of the basic service component to replace the string of the basic service component in the link information of the component call link in the string form
  • the component identification in the form of for each other basic service component in the calling link of this component, perform the above operation in the same way.
  • the intermediate link of the component calling link is obtained.
  • each number in each vector-form component identifier (a vector representation) in the intermediate link of the component call link is obtained respectively, the sum of the squares of each number is calculated, and the square root of the sum is calculated, Divide each number in each vector form component identifier (a vector representation) in the intermediate link of the component call link by the square root of the sum value to obtain the vector form link of the component call link information.
  • the accuracy rate of the link distance between the two component calling links obtained in step 22 according to the link information in the form of the vector calling links of the two components.
  • the Euclidean distance between the vector form link information of the two component call links can be calculated, and used as the distance between the two component call links link distance, etc.
  • any two component call links in multiple component call links if the link distance between the two component call links is greater, the link between the two component call links.
  • the reciprocal of the link distance between the calling links of the two components may be calculated to obtain the link similarity between the calling links of the two components.
  • step S302 among multiple component call links, component call links whose link similarity is greater than a preset similarity are aggregated into a set of component call links.
  • a clustering algorithm may be used to cluster multiple component call links based on the link similarity between every two component call links in the multiple component call links, to obtain at least A component called LinksCollection.
  • Clustering algorithms can include: dbscan (Density-Based Spatial Clustering of Applications with, density-based clustering algorithm) or k-means (k-means clustering algorithm, k-means clustering algorithm) or infomap (community discovery algorithm based on information theory )wait.
  • step S103 can be implemented through the following process, including:
  • step S401 the number of actual occurrences of each component call link in the component call link set in the server and/or the number of basic service components included in each component call link is obtained.
  • the number of actual occurrences of each component invocation link in the component invocation link set in the server end may be acquired.
  • any component call link in the component call link set if there is no component call link in the component call link set other than the component call link If the same component call link is used, it means that the component call link has actually appeared once in the server in the historical process.
  • the number of basic service components respectively included in each component invocation link in the component invocation link set may be obtained.
  • the number of actual occurrences of each component call link in the component call link set in the server and the number of basic service components included in each component call link can be obtained .
  • step S402 according to the number of actual occurrences of each component call link in the server and/or the number of basic service components included in each component call link, select the applicable component in each component call link set Invoke link for at least one component of the tenant.
  • step S401 if what is obtained in step S401 is the number of actual occurrences of each component invocation link in the component invocation link set in the server, then in step S402, the component invocation link can be called In the link set, select at least one component to call the link in descending order of the number of times it has actually appeared in the server.
  • step S401 if what is obtained in step S401 is the number of basic service components respectively included in each component call link in the component call link set, then in step S402, the In the set of component invocation links, at least one component invocation link is selected in descending order of the number of included basic service components.
  • step 4202, for any component call link in the component call link set, the number of times the component call link has actually appeared in the server and the component call link The number of basic service components included in the route, obtain the component call link provided score, for each other component call link in the component call link set, perform the above operations, so as to get the component call link set The score provided by each component call link, and then, in the set of component call links, at least one component call link is selected in descending order of the provided score.
  • S is the score provided by the component calling the link.
  • w1 is a first preset coefficient
  • w2 is a second preset coefficient
  • X is the number of times the component call link actually appears in the server, and Y is the number of basic service components included in the component call link.
  • C1 is a first preset value
  • C2 is a second preset value
  • C1 may include the average number of times that each component call link actually appeared in the server in the historical process and so on.
  • C2 may include an average value of the number of basic service components included in each component call link that has appeared in the server, and the like.
  • the sum of the first preset coefficient w1 and the second preset coefficient w2 may be equal to a specific value, and the specific value includes 1, 1.5 or 2, etc., which is not limited in this application.
  • the first preset coefficient w1 may be greater than or equal to 0 and less than or equal to a specific value
  • the second preset coefficient w2 may be greater than or equal to 0 and less than or equal to a specific value.
  • the tenant when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain multiple component call links that actually appeared in the server in the historical process, multiple component call links It is formed when the server processes the customer's real online data in the historical process; similar component call links in multiple component call links are clustered to obtain at least one set of component call links; In the set of component invocation links, at least one component invocation link suitable for the tenant is selected respectively; the selected component invocation link is provided to the tenant, so that the tenant at least generates a service model by means of the provided component invocation link.
  • the staff of the tenant does not need to manually select the required basic service components in the server and manually configure the dependencies between each basic service component, but can directly provide the tenant
  • the component call links that actually appear in the server are often actually available component call links (the dependencies between basic service components have been determined), so that when the actual needs of tenants are met, This can reduce labor costs and improve tenant experience.
  • component call links that actually appear in the server are often actually available component call links, it can avoid the situation that the manually configured component call links are unavailable due to lack of work experience.
  • the provided component invokes the link to generate the service model, it increases the possibility that the tenant can use the service model to process the online data of the customer normally, that is, the possibility that the tenant can provide services to the customer normally increases.
  • FIG. 6 shows a structural block diagram of an information processing device of the present application, which is applied to the server.
  • the device may specifically include the following modules:
  • the acquisition module 11 is used to obtain multiple component call links that actually appeared in the server in the historical process when the tenant needs to generate a service model with the help of the basic service components provided in the server.
  • the multiple component call chains The route is formed by the server during the process of processing the real online data of the customer in the historical process; the clustering module 12 is used to cluster similar component call links in multiple component call links to obtain at least one A set of component call links; a selection module 13, used to select at least one component call link applicable to the tenant in each set of component call links; a providing module 14, used to provide the selected component call link to the tenant, To enable the tenant to at least generate a service model with the help of the provided component invocation link.
  • the selection module includes: a first obtaining unit, configured to obtain the number of actual occurrences of each component call link in the component call link set in the server and/or each component call link The number of basic service components included in respectively; the selection unit is used to select the number of basic service components included in each component call link according to the number of times each component call link actually appears in the server and/or the number of basic service components included in each component call link. At least one component invocation link applicable to the tenant is selected from each component invocation link set.
  • the selection unit includes: a first selection subunit, configured to select at least one component in the component call link set in descending order of the number of actual occurrences in the server call link; or, the second selection subunit is used to select at least one component call link in the set of component call links in descending order of the number of basic service components included; or, the first acquisition
  • the subunit is used to call a link for each component in the component call link set, according to the number of times the component call link has actually appeared in the server and the basic service components included in the component call link.
  • the quantity of the component call link is obtained to obtain the score provided by the component call link
  • the third selection subunit is used to select at least one component call link in the order of the provided score from high to low in the set of component call links.
  • the clustering module includes: a second acquisition unit, configured to respectively acquire the link similarity between every two component invocation links in the plurality of component invocation links; an aggregation unit, for Aggregating component call links whose link similarity is greater than a preset similarity among multiple component call links is aggregated into a set of component call links.
  • the second acquiring unit includes: a second acquiring subunit, configured to respectively acquire the link information in the form of a character string of each component invoking link in the plurality of component invoking links, the The link information includes: the component identification of the basic service component included in the component call link in the form of a string and the dependency relationship between the basic service components included in the component call link; the third acquisition subunit is used to The link information of each component call link in the string form of each component call link in the component call link, and obtain the link distance between every two component call links in the multiple component call links; the fourth acquisition subunit, The method is used to respectively acquire the link similarity between every two component calling links among the multiple component calling links according to the link distance between every two component calling links among the multiple component calling links.
  • the third obtaining subunit is specifically configured to: convert the link information in the form of a character string of each component call link in the plurality of component call links into link information in the form of a vector; The link information of every two component call links in the multiple component call links in vector form is obtained to obtain the link distance between every two component call links in the multiple component call links.
  • the third obtaining subunit is specifically configured to include: for any component calling link of a plurality of component calling links, in the link information in the string form of the component calling link , the component identifications in the form of character strings of each basic service component in the component invocation link are encoded separately, and the component identifications in the form of vectors of each basic service component included in the component invocation link are respectively obtained; using the component invocation The component identifiers in the form of vectors of each basic service component included in the link are respectively replaced with the corresponding component identifiers in the form of strings in the link information of the component invocation link in the form of a character string to obtain the Intermediate link information: normalize the component identifiers in vector form of each basic service component in the intermediate link of the component invocation link to obtain the vector form link information of the component invocation link.
  • the acquisition module includes: a third acquisition unit, configured to acquire log files of at least some of the basic service components configured in the server, where the log file records: basic service The link identification of the component call link involved in each call of the component in the historical process, and the dependencies between other basic service components in the component call link involved in each call; the building unit, It is used to construct call links of multiple components that actually appeared in the server in the historical process according to the log files of at least some basic service components.
  • the construction unit includes: a screening subunit, used to filter the links recorded in the log files to identify the same basic service component among multiple basic service components; Dependencies between the filtered basic service components recorded in the log files of the basic service components, and the filtered basic service components are combined into a component call link.
  • the construction unit further includes: a first determining subunit, configured to determine whether there are at least two subcomponent calling links that are the same and the same at least two subcomponent calling links in the combined component calling links All paths are dependent on the same basic service component; delete the subunit, so that there are two identical subcomponent call links in the combined component call link and the same at least two subcomponent call links are all used by the same basic service In the case of component dependence, in the combined component call link, delete some subcomponent call links in the same at least two subcomponent call links, so that at least two subcomponent call links remain in the combined component call link A child component in the call chain calls the chain.
  • the construction unit further includes: a second determination subunit, configured to determine whether each basic service component with the same link identifier is successfully invoked in the same component invocation link involved in it; the combination The sub-unit is also used for: in the case that each basic service component with the same link identifier is successfully invoked in the same component call link involved, according to the filtered basic service component recorded in the log file The dependencies between service components combine the filtered basic service components into a component call link.
  • the third obtaining unit includes: a fifth obtaining subunit, configured to obtain service scenarios involved in tenants; a first determining subunit, configured to select the basic service components configured in the server , determining the basic service component related to the service scenario; the sixth acquiring subunit is configured to acquire the log file of the basic service component related to the service scenario.
  • the third acquisition unit includes: a seventh acquisition subunit, configured to acquire the state indicators of each basic service component in the historical process of the multiple basic service components configured in the server; the second The determination subunit is used to determine the basic service components whose state indicators meet the preset requirements among the multiple basic service components configured in the server; the eighth acquisition subunit is used to obtain the log files of the determined basic service components.
  • the seventh obtaining subunit is specifically configured to: for any one of the multiple basic service components, obtain the first number of occurrences of the target state of the basic service component in the historical process, Acquiring the second number of occurrences of the target state of the basic service component that the basic service component directly depends on in the historical process; acquiring the state index of the basic service component in the historical process according to the first occurrence number and the second occurrence number.
  • the tenant when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain multiple component call links that actually appeared in the server in the historical process, multiple component call links It is formed when the server processes the customer's real online data in the historical process; similar component call links in multiple component call links are clustered to obtain at least one set of component call links; In the set of component invocation links, at least one component invocation link suitable for the tenant is selected respectively; the selected component invocation link is provided to the tenant, so that the tenant at least generates a service model by means of the provided component invocation link.
  • the staff of the tenant does not need to manually select the required basic service components in the server and manually configure the dependencies between each basic service component, but can directly provide the tenant
  • the component call links that actually appear in the server are often actually available component call links (the dependencies between basic service components have been determined), so that when the actual needs of tenants are met, This can reduce labor costs and improve tenant experience.
  • component call links that actually appear in the server are often actually available component call links, it can avoid the situation that the manually configured component call links are unavailable due to lack of work experience.
  • the provided component invokes the link to generate the service model, it increases the possibility that the tenant can use the service model to process the online data of the customer normally, that is, the possibility that the tenant can provide services to the customer normally increases.
  • the embodiment of the present application also provides a non-volatile readable storage medium, and one or more modules (programs) are stored in the storage medium.
  • the device can execute Instructions for each method step in the embodiments of the present application.
  • the embodiments of the present application provide one or more machine-readable media, on which instructions are stored, and when executed by one or more processors, the electronic device executes the method described in one or more of the above embodiments.
  • the electronic device includes a server, a gateway, a sub-device, etc., and the sub-device is an Internet of Things device or the like.
  • Embodiments of the present disclosure can be implemented as an apparatus using any appropriate hardware, firmware, software, or any combination thereof to perform desired configurations, and the apparatus may include servers (clusters), terminal devices such as IoT devices and other electronic devices.
  • servers clusters
  • terminal devices such as IoT devices and other electronic devices.
  • FIG. 7 schematically illustrates an exemplary apparatus 1300 that may be used to implement various embodiments described in this application.
  • FIG. 7 illustrates an exemplary apparatus 1300 having one or more processors 1302, a control module (chipset) 1304 coupled to at least one of the processor(s) 1302 , memory 1306 coupled to control module 1304, non-volatile memory (NVM)/storage device 1308 coupled to control module 1304, one or more input/output devices 1310 coupled to control module 1304, and Coupled to the network interface 1312 of the control module 1304 .
  • processors 1302 a control module (chipset) 1304 coupled to at least one of the processor(s) 1302 , memory 1306 coupled to control module 1304, non-volatile memory (NVM)/storage device 1308 coupled to control module 1304, one or more input/output devices 1310 coupled to control module 1304, and Coupled to the network interface 1312 of the control module 1304 .
  • NVM non-volatile memory
  • the processor 1302 may include one or more single-core or multi-core processors, and the processor 1302 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.).
  • the apparatus 1300 can serve as a server device such as a gateway in the embodiments of this application.
  • apparatus 1300 may include one or more computer-readable media (e.g., memory 1306 or NVM/storage 1308) having instructions 1314 and in combination with the one or more computer-readable media configured to The one or more processors 1302 execute instructions 1314 to implement modules to perform the actions described in this disclosure.
  • computer-readable media e.g., memory 1306 or NVM/storage 1308
  • the one or more processors 1302 execute instructions 1314 to implement modules to perform the actions described in this disclosure.
  • control module 1304 may include any suitable interface controller to provide any suitable Interface.
  • the control module 1304 may include a memory controller module to provide an interface to the memory 1306 .
  • a memory controller module may be a hardware module, a software module and/or a firmware module.
  • Memory 1306 may be used, for example, to load and store data and/or instructions 1314 for apparatus 1300 .
  • memory 1306 may comprise any suitable volatile memory, such as suitable DRAM.
  • memory 1306 may include Double Data Rate Quad Synchronous Dynamic Random Access Memory (DDR4 SDRAM).
  • DDR4 SDRAM Double Data Rate Quad Synchronous Dynamic Random Access Memory
  • control module 1304 may include one or more input/output controllers to provide interfaces to NVM/storage device(s) 1308 and input/output device(s) 1310 .
  • NVM/storage 1308 may be used to store data and/or instructions 1314 .
  • NVM/storage 1308 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard drives (HDD), one or more compact disc (CD) drives, and/or one or more digital versatile disc (DVD) drives).
  • suitable non-volatile memory e.g., flash memory
  • suitable non-volatile storage device(s) e.g., one or more hard drives (HDD), one or more compact disc (CD) drives, and/or one or more digital versatile disc (DVD) drives.
  • HDD hard drives
  • CD compact disc
  • DVD digital versatile disc
  • NVM/storage 1308 may include storage resources that are physically part of the device on which apparatus 1300 is installed, or may not necessarily be part of the device that are accessible by the device. For example, NVM/storage 1308 may be accessed over a network via input/output device(s) 1310 .
  • the input/output device(s) 1310 may provide an interface for the apparatus 1300 to communicate with any other suitable device, and the input/output device 1310 may include a communication component, a pinyin component, a sensor component, and the like.
  • Network interface 1312 may provide an interface for device 1300 to communicate over one or more networks, and device 1300 may communicate with one or more wireless networks according to any of one or more wireless network standards and/or protocols.
  • Components communicate wirelessly, such as accessing wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination of them for wireless communication.
  • At least one of the processor(s) 1302 may be packaged with the logic of one or more controllers of the control module 1304 (eg, a memory controller module). For one embodiment, at least one of the processor(s) 1302 may be packaged with the logic of one or more controllers of the control module 1304 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die as the logic of the one or more controllers of the control module 1304 . For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with the logic of the one or more controllers of the control module 1304 to form a system on chip (SoC).
  • SoC system on chip
  • the apparatus 1300 may be, but not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (eg, a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.).
  • device 1300 may have more or fewer components and/or a different architecture.
  • device 1300 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touchscreen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit ( ASIC) and speakers.
  • LCD liquid crystal display
  • ASIC application-specific integrated circuit
  • An embodiment of the present application provides an electronic device, including: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The electronic device is caused to perform one or more of the methods described in this application.
  • the description is relatively simple, and for relevant parts, please refer to the part of the description of the method embodiment.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a general-purpose computer, special purpose computer, embedded processor or processor of other programmable information processing terminal equipment to produce a machine, so that the instructions executed by the computer or other programmable information processing terminal equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable information processing terminal to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the The instruction means implements the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Abstract

The present application provides an information processing method and apparatus. By means of the present application, a worker of a tenant does not need to manually select a required basic service component in a server or to manually configure dependency relationships between basic service components, instead a component call link that actually appears in the server in a historical process can be directly provided to the tenant, and the component call link that actually appears in the server is often an actually available component call link (the dependency relationships between the basic service components are determined), so that labor costs can be reduced and the experience of the tenant can be improved while the actual needs of the tenant are met. Secondly, by clustering and separately selecting a component call link from each component call link set obtained by means of clustering, in order to avoid, as much as possible, providing a large number of similar component call links to the tenant, the degree of repeated push is reduced, and further the difficulty for the tenant to select a required component call link from the provided component call links is reduced.

Description

一种信息处理方法及装置An information processing method and device
本申请要求于2021年12月01日提交中国专利局、申请号为202111451539.5、发明名称为“一种信息处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111451539.5 and the invention title "An Information Processing Method and Device" filed with the China Patent Office on December 01, 2021, the entire contents of which are incorporated in this application by reference .
技术领域technical field
本申请涉及新一代信息技术领域,特别是涉及一种信息处理方法及装置。The present application relates to the field of new generation information technology, in particular to an information processing method and device.
背景技术Background technique
随着技术的飞速发展,服务端得到了快速发展,开发人员可以在服务端中部署大量的基础服务组件,以供租户租用,并在租户需要为广大客户提供服务时,调用服务端的基础服务组件来处理客户的线上数据,以实现为客户提供服务。With the rapid development of technology, the server has developed rapidly. Developers can deploy a large number of basic service components in the server for rent by tenants, and call the basic service components of the server when tenants need to provide services for customers. To process the customer's online data in order to provide services to customers.
例如,在一个例子中,在电商场景中,客户可以在租户的电商平台上下订单,在电商平台得到客户提交的下订单的请求之后,电商平台需要创建订单,在创建订单时,需要获取订单的金额、生成订单的订单号、获取订单中的商品的名称以及获取订单中的商品的收件地址等。For example, in an e-commerce scenario, a customer can place an order on the tenant’s e-commerce platform. After the e-commerce platform receives the request from the customer to place an order, the e-commerce platform needs to create an order. When creating an order, It is necessary to obtain the amount of the order, the order number that generated the order, the name of the product in the order, and the delivery address of the product in the order, etc.
在获取订单的金额时,需要获取商品的售价、商品的优惠信息、电商平台的优惠信息以及客户账户内的红包等。When obtaining the amount of the order, it is necessary to obtain the selling price of the product, the discount information of the product, the discount information of the e-commerce platform, and the red envelope in the customer account.
在上述例子中,获取订单的金额需要基于用于获取金额的基础服务组件,生成订单的订单号需要基于用于生成订单号的基础服务组件、获取订单中的商品的名称需要基于用于获取商品的名称的基础服务组件,获取订单中的商品的收件地址需要基于用于获取收件地址的基础服务组件。In the above example, getting the amount of the order needs to be based on the basic service component used to get the amount, the order number of the generated order needs to be based on the basic service component used to generate the order number, and the name of the product in the order needs to be based on the method used to get the product The basic service component of the name of the name, the receiving address of the goods in the order needs to be based on the basic service component used to obtain the receiving address.
在基于用于获取金额的基础服务组件获取订单的金额时,需要获取商品的售价、商品的优惠信息、电商平台的优惠信息、客户账户内的红包等。其中,获取商品的售价需要基于用于获取售价的基础服务组件,获取商品的优惠信息需要基于一个用于获取优惠信息的基础服务组件、获取电商平台的优惠信息需要基于另一个用于获取优惠信息的基础服务组件以及获取客户账户内的红包需要基于用于获取红包的基础服务组件等,也即,实现生成订单的目的需要基于对应的基础服务组件来实现。When obtaining the amount of an order based on the basic service component used to obtain the amount, it is necessary to obtain the selling price of the product, the discount information of the product, the discount information of the e-commerce platform, and the red envelope in the customer account. Among them, obtaining the selling price of the product needs to be based on the basic service component used to obtain the selling price, obtaining the discount information of the product needs to be based on a basic service component used to obtain the discount information, and obtaining the discount information of the e-commerce platform needs to be based on another The basic service components for obtaining preferential information and obtaining the red envelopes in the customer account need to be based on the basic service components for obtaining red envelopes, that is, the purpose of generating orders needs to be realized based on the corresponding basic service components.
其中,服务端对接租户,租户可以为一些需要为广大客户提供服务的主体等,例如,一些电商公司以及一些短视频公司等。Among them, the server connects to tenants, and tenants can be entities that need to provide services to customers, such as some e-commerce companies and some short video companies.
租户在需要为广大客户提供服务的情况下,需要具备为广大客户提供服务的能力,为了具备为广大客户提供服务的能力,租户可以生成服务模型,服务模型可以处理广大客户的线上数据,以实现对广大客户提供服务。When tenants need to provide services to customers, they need to have the ability to provide services to customers. In order to have the ability to provide services to customers, tenants can generate service models, which can process the online data of customers. Realize the provision of services to our customers.
为了能够生成服务模型,租户可以根据自身的实际需求,从服务端租借需要的基础服务组件,并生成服务模型,服务模型中包括租借的基础服务组件的组件标识以及记录有各个组件标识对应的基础服务组件之间的依赖关系,将生成的服务模型部署在租户的平台上,在租户的平台处理客户的线上数据的情况下,租户的平台根据服务模型中的组件标识 以及依赖关系依次从服务端中调用基础服务组件以对线上数据处理,以实现对客户提供服务。In order to be able to generate a service model, tenants can rent the required basic service components from the server according to their actual needs, and generate a service model. The service model includes the component identifiers of the leased basic service components and records the basic components corresponding to each component identifier. Dependencies between service components, the generated service model is deployed on the tenant's platform, and when the tenant's platform processes the customer's online data, the tenant's platform sequentially starts from the service according to the component identification and dependencies in the service model Call the basic service components in the terminal to process the online data to provide services to customers.
其中,在租户根据自身的实际需求从服务端租借需要的基础服务组件时,租户的工作人员可以根据工作经验,手动在服务端中人工选择需要的基础服务组件,其次,可以根据工作经验人工配置各个基础服务组件之间的依赖关系。Among them, when the tenant rents the required basic service components from the server according to their actual needs, the staff of the tenant can manually select the required basic service components in the server based on work experience, and secondly, manually configure them based on work experience Dependencies between various basic service components.
发明内容Contents of the invention
本申请示出了一种信息处理方法及装置。This application shows an information processing method and device.
第一方面,本申请示出了一种信息处理方法,应用于服务端,所述方法包括:在租户需要借助服务端中提供的基础服务组件生成服务模型的情况下,获取在历史过程中在服务端中真实出现过的多个组件调用链路,多个组件调用链路是服务端在历史过程中处理客户的真实的线上数据的过程中形成的;将多个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合;在各个组件调用链路集合中,分别选择适用于租户的至少一个组件调用链路;向租户提供选择的组件调用链路,以使租户至少借助提供的组件调用链路生成服务模型。In the first aspect, the present application shows an information processing method, which is applied to the server, and the method includes: when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain the Multiple component call links that have actually appeared in the server. The multiple component call links are formed during the process of the server processing the real online data of the customer in the historical process; multiple component call links in the Similar component calling links are clustered to obtain at least one component calling link set; in each component calling link set, respectively select at least one component calling link applicable to the tenant; provide the selected component calling link to the tenant, To enable the tenant to at least generate a service model with the help of the provided component invocation link.
第二方面,本申请示出了一种信息处理装置,应用于服务端,所述装置包括:获取模块,用于在租户需要借助服务端中提供的基础服务组件生成服务模型的情况下,获取在历史过程中在服务端中真实出现过的多个组件调用链路,多个组件调用链路是服务端在历史过程中处理客户的真实的线上数据的过程中形成的;聚类模块,用于将多个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合;选择模块,用于在各个组件调用链路集合中,分别选择适用于租户的至少一个组件调用链路;提供模块,用于向租户提供选择的组件调用链路,以使租户至少借助提供的组件调用链路生成服务模型。In the second aspect, the present application shows an information processing device, which is applied to the server, and the device includes: an acquisition module, used to acquire In the historical process, multiple component call links actually appeared in the server. The multiple component call links were formed during the process of the server processing the customer's real online data in the historical process; the clustering module, It is used to cluster similar component call links in multiple component call links to obtain at least one component call link set; the selection module is used to select at least one component call link set applicable to the tenant respectively A component call link; providing a module for providing a selected component call link to the tenant, so that the tenant at least generates a service model by using the provided component call link.
第三方面,本申请示出了一种电子设备,所述电子设备包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为执行如前述的任一方面所示的方法。In a third aspect, the present application shows an electronic device, the electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to perform any of the foregoing aspects method shown.
第四方面,本申请示出了一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如前述的任一方面所示的方法。In the fourth aspect, the present application shows a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the Methods.
第五方面,本申请示出了一种计算机程序产品,当所述计算机程序产品中的指令由电子设备的处理器执行时,使得电子设备能够执行如前述的任一方面所示的方法。In a fifth aspect, the present application shows a computer program product. When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device can execute the method as shown in any one of the foregoing aspects.
附图说明Description of drawings
在附图中,除非另外规定,否则贯穿多个附图相同的附图标记表示相同或相似的部件或元素。这些附图不一定是按照比例绘制的。应该理解,这些附图仅描绘了根据本申请公开的一些实施方式,而不应将其视为是对本申请范围的限制。In the drawings, unless otherwise specified, the same reference numerals designate the same or similar parts or elements throughout the several drawings. The drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed according to the application, and should not be regarded as limiting the scope of the application.
图1是本申请的一种信息处理方法的步骤流程图。FIG. 1 is a flowchart of steps of an information processing method of the present application.
图2是本申请的一种获取组件调用链路的方法的步骤流程图。Fig. 2 is a flow chart of steps of a method for obtaining a component invocation link of the present application.
图3是本申请的一种对组件调用链路聚类的方法的步骤流程图。Fig. 3 is a flow chart of steps of a method for invoking link clustering of components in the present application.
图4是本申请的一种基础服务组件之间的依赖关系的示意图。FIG. 4 is a schematic diagram of a dependency relationship among basic service components of the present application.
图5是本申请的一种选择组件调用链路的方法的步骤流程图。FIG. 5 is a flow chart of steps of a method for selecting a component invoking link of the present application.
图6是本申请的一种信息处理装置的结构框图。FIG. 6 is a structural block diagram of an information processing device of the present application.
图7是本申请的一种装置的结构框图。Fig. 7 is a structural block diagram of a device of the present application.
具体实施方式Detailed ways
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
正如背景技术所述,在租户需要借助服务端中的基础服务组件生成服务模型的情况下,租户需要手动在服务端中人工选择需要的基础服务组件以及人工配置各个基础服务组件之间的依赖关系。As mentioned in the background technology, when a tenant needs to use the basic service components in the server to generate a service model, the tenant needs to manually select the required basic service components in the server and manually configure the dependencies between the basic service components .
但是,发明人发现,上述方式中需要租户的工作人员参与,导致租户的人工成本高。However, the inventor found that the above method requires the participation of the tenant's staff, resulting in high labor costs for the tenant.
其次,在租户的工作人员的工作经验少的情况下,人工根据需要选择的基础服务组件可能与对线上数据处理时实际需要的基础服务组件不符,以及,人工配置各个基础服务组件之间的依赖关系可能与对线上数据处理时实际需要的依赖关系不符,导致生成的服务模型无法正常对客户的线上数据处理,进而导致无法正常对客户提供服务。Secondly, when the tenant's staff has little work experience, the basic service components manually selected according to the needs may not match the basic service components actually needed for online data processing, and the manual configuration of the basic service components The dependency relationship may not match the actual dependency relationship required for online data processing, resulting in the failure of the generated service model to process the customer's online data normally, resulting in the inability to provide services to the customer normally.
因此,发明人据此提出了在租户借助服务端中的基础服务组件生成服务模型的情况下,降低人工成本的期望,以及,使得生成的服务模型与租户的实际需求相符合的期望。Therefore, the inventor proposes the desire to reduce labor costs when the tenant generates a service model with the help of the basic service components in the server, and the desire to make the generated service model conform to the actual needs of the tenant.
为了在租户借助服务端中的基础服务组件生成服务模型的情况下,降低人工成本,以及,使得生成的服务模型与租户的实际需求相符合,发明人仔细对在历史过程中在服务端中真实出现过的多个组件调用链路进行分析,多个组件调用链路是服务端在历史过程中分别处理各个客户的真实的线上数据的过程中形成的,经过仔细的分析后,发明人发现,服务端在分别处理至少部分客户的真实线上数据的过程中,在服务端中依次调用的基础服务组件组成的组件调用链路相同或者相似,也即,至少部分客户所涉及的组件调用链路是可以复用的。In order to reduce labor costs when the tenant generates a service model with the help of the basic service components in the server, and to make the generated service model conform to the actual needs of the tenant, the inventor carefully checked the real The multiple component call links that have appeared are analyzed. The multiple component call links are formed during the process of the server processing the real online data of each customer in the historical process. After careful analysis, the inventor found that , when the server processes at least some of the customers’ real online data, the component invocation chains composed of the basic service components called sequentially in the server are the same or similar, that is, the component invocation chains involved in at least some of the customers Paths can be reused.
在这种情况下,如果一些客户需要借助服务端中的基础服务组件生成服务模型,则可以向这些客户提供服务端在历史过程中处理其他客户的真实的线上数据的过程中形成的组件调用链路(往往是实际可用的组件调用链路),以供这些租户可以直接借助提供的组件调用链路生成自己的服务模型,或者,对提供的组件调用链路进行小部分修改,以使修改后的组件调用链路符合自己的实际需求,并借助修改后的组件调用链路生成自己的服务模型。如此可以降低租户的工作量,降低人工成本,以及尽可能地使得生成的服务模型可用且符合租户的实际需求。In this case, if some customers need to use the basic service components in the server to generate service models, you can provide these customers with component calls formed during the process of the server processing other customers' real online data in the historical process Links (often actually available component call links), for these tenants to directly generate their own service models with the help of the provided component call links, or make small modifications to the provided component call links to make the modification The modified component call link meets its own actual needs, and generates its own service model with the help of the modified component call link. In this way, the tenant's workload can be reduced, labor costs can be reduced, and the generated service model can be made available and meet the tenant's actual needs as much as possible.
参照图1,示出了本申请的一种信息处理方法的流程示意图,该方法应用于服务端等,该方法包括:Referring to FIG. 1 , it shows a schematic flow chart of an information processing method of the present application. The method is applied to a server, etc., and the method includes:
在步骤S101中,在租户需要借助服务端中提供的基础服务组件生成服务模型的情况下,获取在历史过程中在服务端中真实出现过的多个组件调用链路,多个组件调用链路是服务端在历史过程中处理客户的真实的线上数据的过程中形成的。In step S101, when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain multiple component call links that actually appeared in the server in the historical process, and multiple component call links It is formed in the process of the server processing the real online data of the customer in the historical process.
服务端中配置有大量的基础服务组件以供租户在为客户提供服务时调用,例如,在处理客户的线上数据时调用。A large number of basic service components are configured in the server for tenants to call when providing services to customers, for example, when processing online data of customers.
一个组件调用链路中包括多个基础服务组件,且多个基础服务组件中的至少部分基础 服务组件之间存在依赖关系。A component call link includes multiple basic service components, and there are dependencies among at least some of the multiple basic service components.
例如,在组件调用链路中,若一个基础服务组件正常调用,才会使得另一个服务可能能够正常调用,则该另一个基础服务组件依赖该一个基础服务组件。For example, in the component call link, if one basic service component is called normally, another service may be called normally, and the other basic service component depends on the one basic service component.
例如,在一个例子中,在服务端对租户提交的客户的线上数据处理的情况下,需要调用基础服务组件A,在调用基础服务组件A时,需要调用基础服务组件B、基础服务组件C以及基础服务组件D,在调用基础服务组件D时,需要调用基础服务组件E以及基础服务组件F。For example, in one example, when the server processes the customer's online data submitted by the tenant, it is necessary to call the basic service component A. When calling the basic service component A, it is necessary to call the basic service component B and the basic service component C. And the basic service component D, when the basic service component D is called, the basic service component E and the basic service component F need to be called.
则在上述例子中,组件调用链路包括:基础服务组件A、基础服务组件B、基础服务组件C、基础服务组件D、基础服务组件E以及基础服务组件F。且在该组件调用链路中,基础服务组件A依赖基础服务组件B、基础服务组件C以及基础服务组件D,基础服务组件D依赖基础服务组件E以及基础服务组件F。In the above example, the component call link includes: basic service component A, basic service component B, basic service component C, basic service component D, basic service component E, and basic service component F. And in this component call link, basic service component A depends on basic service component B, basic service component C and basic service component D, and basic service component D depends on basic service component E and basic service component F.
在历史过程中,服务端处理了大量的线上数据,在处理每一个线上数据时,都会调用一些基础服务组件且调用的这些基础服务组件之间具有先后逻辑顺序,先后逻辑顺序体现了这些基础服务组件之间的依赖关系等。In the historical process, the server has processed a large amount of online data. When processing each online data, it will call some basic service components and there is a logical sequence between these basic service components. The logical sequence reflects these Dependencies between basic service components, etc.
另外,服务端中记录了各个基础服务组件的日志文件,基础服务组件的日志文件中记录有:该基础服务组件在历史过程中每一次调用时所涉及的(例如,所在的)组件调用链路的链路标识,以及,在每一次调用时与其所涉及的组件调用链路中的其他基础服务组件之间依赖关系等。In addition, the log file of each basic service component is recorded in the server, and the log file of the basic service component records: the component call link involved (for example, where) each time the basic service component is called in the historical process The link identification of each call, and the dependencies between other basic service components in the calling link of the components involved in each call, etc.
服务端通过各个基础服务组件的日志文件,可以获取在历史过程中在服务端中真实出现过的多个组件调用链路。具体获取方式可以参见之后图2所示的实施例,在此不做详述等。Through the log files of each basic service component, the server can obtain the call links of multiple components that actually appeared in the server in the historical process. For the specific acquisition method, refer to the embodiment shown in FIG. 2 , which will not be described in detail here.
在步骤S102中,将多个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合。In step S102, similar component calling links in multiple component calling links are clustered to obtain at least one set of component calling links.
任意一个组件调用链路集合中的每两个组件调用链路之间均为相似的组件调用链路。Every two component calling links in any component calling link set are similar component calling links.
在本申请中,有些组件调用链路相同,有些组件调用链路虽然不同,但是却比较相似,相似的组件调用链路中包括的基础服务组件相似,或者,相似的组件调用链路中包括的基础服务组件之间的依赖关系相似等,如此,相似的组件调用链路的功能是相同或者相似的,例如,均为生成订单的组件调用链路或者均为退订单的组件调用链路等。In this application, some component calling links are the same, some component calling links are different but similar, the basic service components included in the similar component calling links are similar, or, the similar component calling links include the The dependencies between the basic service components are similar, so that similar components call the links with the same or similar functions, for example, all the components that generate an order call the link or all the components that cancel the order call the link, etc.
其中,在向租户提供组件调用链路时,可以向租户提供少量的组件调用链路,以降低租户的选择难度等,因此,可以将多个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合,然后执行步骤S103。Among them, when providing component call links to tenants, a small number of component call links can be provided to tenants to reduce the difficulty of tenant selection, etc. Therefore, similar component call links in multiple component call links can be aggregated class, at least one component call link set is obtained, and then step S103 is executed.
其中,聚类的具体方式可以参见之后图3所示的实施例,在此不做详述。For the specific manner of clustering, refer to the embodiment shown in FIG. 3 , which will not be described in detail here.
在步骤S103中,在各个组件调用链路集合中,分别选择适用于租户的至少一个组件调用链路。In step S103, at least one component invocation link applicable to the tenant is selected from each component invocation link set.
在本申请中,对于任意一个组件调用链路集合,该组件调用链路集合中往往包括两个以上的组件调用链路,在向租户提供组件调用链路的场景中,可以向租户提供少量的组件调用链路,以降低租户的选择难度等,如此,对于任意一个组件调用链路集合,可以从该组件调用链路集合中包括的两个以上的组件调用链路中选择部分组件调用链路以给租户 提供,例如,从该组件调用链路集合中包括的两个以上的组件调用链路中选择适用于租户的至少一个组件调用链路以给租户提供等。In this application, for any set of component call links, the set of component call links often includes more than two component call links. In the scenario of providing component call links to tenants, a small amount of Component call links to reduce the difficulty of tenant selection, etc. In this way, for any set of component call links, some component call links can be selected from more than two component call links included in the component call link set To provide to the tenant, for example, select at least one component invocation link suitable for the tenant from the two or more component invocation links included in the set of component invocation links to provide to the tenant.
其中,具体选择方式可以参见之后图4所示的实施例,在此不做详述。Wherein, for a specific selection manner, reference may be made to the embodiment shown in FIG. 4 , which will not be described in detail here.
在步骤S104中,向租户提供选择的组件调用链路,以使租户至少借助提供的组件调用链路生成服务模型。In step S104, the selected component calling link is provided to the tenant, so that the tenant at least generates a service model by using the provided component calling link.
在一个实施例中,服务端可以向租户使用的终端发送选择的组件调用链路,以使租户在其使用的终端上可以查看组件调用链路,进而可以了解到组件调用链路中包括有哪些基础服务组件以及包括的基础服务组件之间的依赖关系等,然后参考组件调用链路中包括有哪些基础服务组件以及包括的基础服务组件之间的依赖关系等,来创建自己的服务模型,然后可以在自己的平台上部署服务模型,使用服务模型对外提供服务(例如对广大客户提供服务等)。In one embodiment, the server can send the selected component call link to the terminal used by the tenant, so that the tenant can view the component call link on the terminal used by the tenant, and then can know which components are included in the component call link. Basic service components and the dependencies between the included basic service components, etc., and then refer to which basic service components are included in the component call link and the dependencies between the included basic service components, etc., to create your own service model, and then You can deploy the service model on your own platform, and use the service model to provide external services (such as providing services to customers, etc.).
在本申请中,在租户需要借助服务端中提供的基础服务组件生成服务模型的情况下,获取在历史过程中在服务端中真实出现过的多个组件调用链路,多个组件调用链路是服务端在历史过程中处理客户的真实的线上数据的过程中形成的;将多个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合;在各个组件调用链路集合中,分别选择适用于租户的至少一个组件调用链路;向租户提供选择的组件调用链路,以使租户至少借助提供的组件调用链路生成服务模型。In this application, when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain multiple component call links that actually appeared in the server in the historical process, multiple component call links It is formed when the server processes the customer's real online data in the historical process; similar component call links in multiple component call links are clustered to obtain at least one set of component call links; In the set of component invocation links, at least one component invocation link suitable for the tenant is selected respectively; the selected component invocation link is provided to the tenant, so that the tenant at least generates a service model by means of the provided component invocation link.
通过本申请,不需要租户的工作人员在服务端中手动选择需要的基础服务组件以及手动配置各个基础服务组件之间的依赖关系,而可以直接向租户提供历史过程中在服务端中真实出现过的组件调用链路,在服务端中真实出现过的组件调用链路往往是实际可用的组件调用链路(基础服务组件之间的依赖关系已经确定了),从而在满足租户的实际需求的情况下可以降低人工成本,提高租户的体验。Through this application, the staff of the tenant does not need to manually select the required basic service components in the server and manually configure the dependencies between each basic service component, but can directly provide the tenant The component call links that actually appear in the server are often actually available component call links (the dependencies between basic service components have been determined), so that when the actual needs of tenants are met, This can reduce labor costs and improve tenant experience.
其次,通过聚类以及从聚类得到的每一个组件调用链路集合中分别选择组件调用链路,以尽可能避免提供给租户大量的相似的组件调用链路,降低了重复推送的程度,进而降低了租户在提供的组件调用链路中选择需要的组件调用链路的选择难度。Secondly, by clustering and selecting component call links from each component call link set obtained by clustering, to avoid providing tenants with a large number of similar component call links as much as possible, reducing the degree of repeated push, and then The selection difficulty for the tenant to select the required component invocation link among the provided component invocation links is reduced.
另外,由于在服务端中真实出现过的组件调用链路往往是实际可用的组件调用链路,因此,可以避免由于工作经验少而导致人工配置的组件调用链路不可用的情况,在租户使用提供的组件调用链路生成服务模型的情况下,提高了租户使用服务模型对客户的线上数据能够正常处理的可能性,也即,提高了租户能够正常对客户提供服务的可能性。In addition, since the component call links that actually appear in the server are often actually available component call links, it can avoid the situation that the manually configured component call links are unavailable due to lack of work experience. When the provided component invokes the link to generate the service model, it increases the possibility that the tenant can use the service model to process the online data of the customer normally, that is, the possibility that the tenant can provide services to the customer normally increases.
在本申请一个实施例中,参见图2,步骤S101可以通过如下流程实现,包括:In an embodiment of the present application, referring to FIG. 2, step S101 can be implemented through the following process, including:
在步骤S201中,获取服务端中已配置的多个基础服务组件中的至少部分基础服务组件的日志文件。In step S201, log files of at least some of the basic service components configured in the server are acquired.
对于服务端中已配置的多个基础服务组件中的任意一个基础服务组件,该基础服务组件的日志文件中记录有在历史过程中服务端实际调用该基础服务组件的调用情况。For any one of the multiple basic service components configured on the server, the log file of the basic service component records the invocation of the basic service component actually invoked by the server in the historical process.
其中,该基础服务组件的日志文件中可以包括多个子文件,每一个子文件是在历史过程中服务端实际调用该基础服务组件的情况下生成的。Wherein, the log file of the basic service component may include multiple sub-files, and each sub-file is generated when the server actually invokes the basic service component in the historical process.
例如,每当根据服务端调用一次该基础服务组件,往往是根据一个组件调用链路调用的该基础服务组件,且该基础服务组件可以与该组件调用链路中的其他基础服务组件之间 具有依赖关系,如此,可以在该基础服务组件的日志文件中生成一个子文件,并在子文件中记录该组件调用链路的链路标识,以表示该基础服务组件此次被调用的事件涉及该一个组件调用链路的链路标识,以及,在该子文件中记录该基础服务组件可以与该组件调用链路中的其他基础服务组件之间具有依赖关系。For example, whenever the basic service component is invoked according to the server, the basic service component is usually invoked according to a component invocation link, and the basic service component may have a relationship with other basic service components in the component invocation link. In this way, a sub-file can be generated in the log file of the basic service component, and the link identifier of the component calling link can be recorded in the sub-file, to indicate that the event that the basic service component is called this time involves the A link identifier of a component call link, and it is recorded in the sub-file that the basic service component may have a dependency relationship with other basic service components in the component call link.
如此,实现该基础服务组件的日志文件中记录有该基础服务组件所涉及的各个组件调用链路的链路标识以及该基础服务组件与其所在的组件调用链路中的其他基础服务组件之间依赖关系。In this way, the log file that implements the basic service component records the link identification of each component call link involved in the basic service component and the dependency between the basic service component and other basic service components in the component call link. relation.
例如,在一个例子中,开发人员事先开发有多个基础服务组件,并将多个基础服务组件配置至服务端中,如此,服务端中就配置有多个基础服务组件。For example, in one example, a developer develops multiple basic service components in advance, and configures multiple basic service components into the server, so that multiple basic service components are configured on the server.
服务端根据租户的实际需求可以依次调用一些基础服务组件,依次调用的基础服务组件组成一个组件调用链路。例如,租户借助服务端的基础服务组件为广大客户提供服务,为了解决客户的一些实际需求,租户需要调用服务端的一些基础服务组件,且在调用的一些基础服务组件之间形成了组件调用链路。The server can call some basic service components in turn according to the actual needs of the tenants, and the basic service components called in turn form a component call link. For example, tenants use the basic service components of the server to provide services to customers. In order to solve some actual needs of customers, tenants need to call some basic service components of the server, and a component call link is formed between the basic service components called.
在服务端根据租户的实际需求调用第一个基础服务组件的情况下,就会在第一个基础服务组件的日志文件中生成一个子文件。然后生成一个链路标识,并在子文件中记录该链路标识。When the server invokes the first basic service component according to the actual needs of the tenant, a sub-file will be generated in the log file of the first basic service component. Then generate a link ID and record the link ID in the subfile.
在服务端根据租户的实际需求调用第一个基础服务组件依赖的第二个基础服务组件的情况下,就会在第二个基础服务组件的日志文件中生成一个子文件。并在该子文件中记录生成的该链路标识。其次,可以在该子文件中记录关于第二个基础服务组件的依赖关系,例如,记录依赖第二个基础服务组件的第一个基础服务组件的组件标识等。When the server invokes the second basic service component that the first basic service component depends on according to the actual needs of the tenant, a sub-file will be generated in the log file of the second basic service component. And record the generated link ID in the sub-file. Secondly, the dependency relationship on the second basic service component can be recorded in the sub-file, for example, the component identifier of the first basic service component that depends on the second basic service component, etc. can be recorded.
在服务端根据租户的实际需求调用第二个基础服务组件依赖的第三个基础服务组件的情况下,就会在第三个基础服务组件的日志文件中生成一个子文件。并在该子文件中记录生成的该链路标识。其次,可以在该子文件中记录关于第二个基础服务组件的依赖关系,例如,记录依赖第三个基础服务组件的第二个基础服务组件的组件标识等。When the server invokes the third basic service component that the second basic service component depends on according to the actual needs of the tenant, a sub-file will be generated in the log file of the third basic service component. And record the generated link ID in the sub-file. Secondly, the dependency relationship on the second basic service component can be recorded in the sub-file, for example, the component identifier of the second basic service component that depends on the third basic service component, etc. can be recorded.
如此,根据每一个基础服务组件的日志文件可以还原出在历史过程中在服务端中真实出现过的多个组件调用链路等,具体还原方式可以参见步骤S202。In this way, according to the log file of each basic service component, it is possible to restore multiple component call links that actually appeared in the server in the historical process, and the specific restoration method can refer to step S202.
这些组件调用链路是在历史过程中实际存在的,如此,可以向租户提供这些在历史过程中实际存在的组件调用链路中的至少部分组件调用链路等,以供租户在生成服务模型时参考。These component call links actually existed in the historical process. In this way, at least part of the component call links in these component call links that actually existed in the historical process can be provided to the tenant for the tenant to generate the service model refer to.
在步骤S202中,根据至少部分基础服务组件的日志文件,构建在历史过程中在服务端中真实出现过的多个组件调用链路。In step S202, according to at least part of the log files of the basic service components, a plurality of component call links that actually appeared in the server in the historical process are constructed.
在本申请一个实施例中,本步骤可以通过如下流程实现,包括:In an embodiment of the present application, this step can be implemented through the following process, including:
2011、在多个基础服务组件中,筛选日志文件中记录的链路标识相同的基础服务组件。2011. Among multiple basic service components, the links recorded in the filter log file identify the same basic service components.
任意一个基础服务组件中的日志文件中记录的链路标识是:在形成该链路标识对应的组件调用链路的过程中调用该基础服务组件的情况下,在该基础服务组件中的日志文件中存储的。The link identifier recorded in the log file in any basic service component is: when the basic service component is called during the process of forming the component call link corresponding to the link identifier, the log file in the basic service component stored in.
在本申请中,服务端中已配置的各个基础服务组件的日志文件中均包括多个子文件。In this application, the log files of each basic service component configured in the server include multiple sub-files.
对于任意一个基础服务组件的日志文件中的任意一个子文件,获取该子文件中的链路 标识,然后在多个基础服务组件中的除该基础服务组件以外的其他基础服务组件中的日志文件中的各个子文件中分别查找该链路标识,确定日志文件中包括“记录有该链路标识的子文件”的基础服务组件,将该基础服务组件与确定出的基础服务组件确定为日志文件中的链路标识相同的基础服务组件,对于该基础服务组件的日志文件中的其他每一个子文件以及对于其他每一个基础服务组件的日志文件中的其他每一个子文件,同样执行上述操作,然后执行步骤2012。For any sub-file in the log file of any basic service component, obtain the link identifier in the sub-file, and then log files in other basic service components in multiple basic service components except this basic service component Search for the link identifier in each sub-file in the log file, determine that the log file includes the basic service component "recording the sub-file with the link identifier", and determine the basic service component and the determined basic service component as the log file The link in identifies the same basic service component, and for each other sub-file in the log file of the basic service component and for each other sub-file in the log file of each other basic service component, perform the above operation in the same way, Then execute step 2012.
通过本步骤中,可能得到多份基础服务组件,每一份基础服务组件中的各个基础服务组件的日志文件中记录有相同的链路标识。Through this step, multiple basic service components may be obtained, and the same link identifier is recorded in the log files of each basic service component in each basic service component.
对于每一份基础服务组件,可以分别执行步骤2012的流程,从而得到每一份基础服务组件对应的组件调用链路。For each basic service component, the process of step 2012 can be executed separately, so as to obtain the component invocation link corresponding to each basic service component.
其中,在得到的多份基础服务组件中,有些两份基础服务组件中可能存在有相同的基础服务组件等,也可能有些两份基础服务组件中不存在相同的基础服务组件等。Among the obtained multiple basic service components, some two basic service components may have the same basic service component, and some two basic service components may not have the same basic service component.
2012、根据筛选的基础服务组件的日志文件中记录的、筛选的基础服务组件之间依赖关系,将筛选的基础服务组件组合为一个组件调用链路。2012. Combining the filtered basic service components into a component invocation link according to the dependencies between the filtered basic service components recorded in the log files of the filtered basic service components.
其中,对于筛选的任意一个基础服务组件,该基础服务组件的日志文件中记录了:在筛选的基础服务组件中,依赖该基础服务组件的基础服务组件的组件标识,也即,是该组件标识对应的基础服务组件依赖该基础服务组件。Among them, for any basic service component that is screened, the log file of the basic service component records: among the basic service components that are screened, the component ID of the basic service component that depends on the basic service component, that is, the component ID The corresponding basic service component depends on the basic service component.
对于筛选的其他每一个基础服务组件,同样如此。The same is true for every other underlying service component of the filter.
在本申请中,在一种可能的情况下,组件调用链路中不会存在两个相同的子链路且两个子链路被同一个基础服务组件依赖的情况,但是,有时候在实际调用基础服务组件的过程中,可能由于一些外部原因导致对某些基础服务组件调用失败的情况,又会重新调用这些基础服务组件,直至调用成功为止,但是这样在组件调用链路中就存在两个以上的这些子链路,两个以上的这些链路就组成了两个以上的子组件调用链路,且这两个以上的子组件调用链路相同以及均被同一个基础服务组件依赖。实际上两个以上的子组件调用链路是重复的,组件调用链路中仅需存在两个以上的子组件调用链路中的一个子组件调用链路即可。In this application, in a possible situation, there will not be two identical sub-links in the component call link and the two sub-links are dependent on the same basic service component. However, sometimes in the actual call In the process of basic service components, some basic service components may fail to be called due to some external reasons, and these basic service components will be called again until the call is successful. However, there are two components in the component call link. The above sub-links, two or more of these links form more than two sub-component call links, and the two or more sub-component call links are the same and are all dependent on the same basic service component. In fact, more than two sub-component calling links are repeated, and only one sub-component calling link in the two or more sub-component calling links needs to exist in the component calling link.
因此,在这种情况下,在组合得到这种组件调用链路之后,可以在组合得到的这种组件调用链路中删除两个以上的子组件调用链路中的部分子组件调用链路,仅保留两个以上的子组件调用链路中的一个子组件调用链路即可,以实现对组合得到的这种组件调用链路精简。Therefore, in this case, after the component call link is obtained through combination, part of the subcomponent call links in the two or more subcomponent call links can be deleted in the combined component call link, Only one sub-component call link in the two or more sub-component call links may be reserved, so as to realize the simplification of the combined component call links.
例如,在一个实施例中,在步骤2012之后,可以确定组合得到的组件调用链路中是否存在相同的至少两个子组件调用链路且相同的至少两个子组件调用链路均被同一个基础服务组件依赖。子组件调用链路中可以包括一个基础服务组件,也可以包括两个以上的具有依赖关系的基础服务组件等。在组合得到的组件调用链路中存在相同的两个子组件调用链路且相同的至少两个子组件调用链路均被同一个基础服务组件依赖的情况下,在组合得到的组件调用链路中,删除相同的至少两个子组件调用链路中的部分子组件调用链路,以使组合得到的组件调用链路中保留至少两个子组件调用链路中的一个子组件调用链路。For example, in one embodiment, after step 2012, it may be determined whether there are at least two identical subcomponent invocation links in the combined component invocation links and the same at least two subcomponent invocation links are all used by the same basic service Component dependencies. The subcomponent calling link may include one basic service component, or more than two basic service components with dependencies, etc. In the case where the same two sub-component call links exist in the combined component call link and the same at least two sub-component call links are all dependent on the same basic service component, in the combined component call link, Part of the same at least two subcomponent calling links is deleted, so that one of the at least two subcomponent calling links remains in the combined component calling links.
在本申请另一实施例中,向租户提供组件调用链路是为了租户参考组件调用链路生成用于对广大客户提供的服务模型。In another embodiment of the present application, providing the component invocation link to the tenant is for the tenant to refer to the component invocation link to generate a service model for providing to customers.
为了提高租户的体验以及广大客户的体验,需要使得提供给租户的组件调用链路中不存在至少一个基础服务组件最终未调用成功的情况,否则租户根据这种组件调用链路生成服务模型之后,在根据这种服务模型向广大租户提供服务的情况下,仍旧会按照上述链路调用基础服务组件,但是也可能出现未调用成功的情况(例如,即使重复调用多次也可能未调用成功等),这就使得租户使用服务模型无法正常为广大客户提供服务,降低租户和广大客户的体验。In order to improve the experience of tenants and customers, it is necessary to ensure that at least one basic service component fails to be successfully called in the component call link provided to tenants. Otherwise, after the tenant generates a service model based on this component call link, In the case of providing services to a large number of tenants according to this service model, the basic service components will still be called according to the above link, but there may also be situations where the call is not successful (for example, even if the call is repeated multiple times, the call may not be successful, etc.) , which makes it impossible for tenants to use the service model to provide services to customers normally, reducing the experience of tenants and customers.
因此,在本申请另一实施例中,在步骤2011之后,可以确定链路标识相同的各个基础服务组件在其涉及的同一组件调用链路中是否最终均调用成功。Therefore, in another embodiment of the present application, after step 2011, it may be determined whether each basic service component with the same link ID is successfully invoked in the same component invocation link involved.
在链路标识相同的各个基础服务组件在其涉及的同一组件调用链路中最终均调用成功的情况下,再根据筛选的基础服务组件的日志文件中记录的、筛选的基础服务组件之间依赖关系,将筛选的基础服务组件组合为一个组件调用链路。In the case that each basic service component with the same link ID is successfully invoked in the same component call link involved, then according to the log files of the filtered basic service components, the dependencies between the filtered basic service components Relationship, which combines the filtered basic service components into a component call link.
在至少一个基础服务组件在各个基础服务组件涉及的上述组件调用链路中未调用成功的情况下,丢弃链路标识相同的各个基础服务组件。In the case that at least one basic service component fails to be invoked successfully in the above-mentioned component calling link involved in each basic service component, each basic service component with the same link identifier is discarded.
在本申请一个实施例中,服务端往往会对接大量的租户,且不同的租户所涉及的服务场景不同,例如,不同的租户各自对广大客户提供服务的服务类型不同等。In an embodiment of the present application, the server often connects with a large number of tenants, and different tenants involve different service scenarios, for example, different tenants provide different types of services to various customers.
例如,有些租户涉及短视频场景、有些租户涉及电商场景、有些租户涉及云端存储场景、有些租户涉及游戏场景、有些租户涉及通讯社交场景等。For example, some tenants involve short video scenarios, some tenants involve e-commerce scenarios, some tenants involve cloud storage scenarios, some tenants involve game scenarios, and some tenants involve communication and social networking scenarios, etc.
另外,服务端中已配置的基础服务组件也往往是大量的,不同的服务场景中涉及的基础服务组件不同。In addition, there are often a large number of basic service components configured on the server side, and the basic service components involved in different service scenarios are different.
例如,有些基础服务组件在短视频场景中才会使用到,有些基础服务组件在电商场景中才会使用到,有些基础服务组件在云端存储场景中才会使用到,有些基础服务组件在涉及游戏场景中才会使用到,有些租户在通讯社交场景中才会使用到,当然了,有些基础服务组件可能在两个以上的服务场景中均会使用到。For example, some basic service components are only used in short video scenarios, some basic service components are only used in e-commerce scenarios, some basic service components are only used in cloud storage scenarios, and some basic service components are used in It will only be used in game scenarios, and some tenants will only be used in communication and social scenarios. Of course, some basic service components may be used in more than two service scenarios.
然而,租户往往涉及部分场景,而不是涉及全部的场景。However, tenants are often involved in some scenarios, not all scenarios.
如果某一个基础服务组件不涉及租户所涉及的场景,则该一个基础服务组件所在的组件调用链路往往也不涉及租户所涉及的场景,也即,该一个基础服务组件所在的组件调用链路对租户而言是无用的,是可以不向该租户提供该一个基础服务组件所在的组件调用链路的,否则租户得到是自己实际并不会用到的组件调用链路,会导致提供精准度低且降低租户体验。If a certain basic service component does not involve the scene involved in the tenant, the component call link where the basic service component is located often does not involve the scene involved in the tenant, that is, the component call link where the basic service component is located It is useless to the tenant, and it is not necessary to provide the tenant with the component call link where the basic service component is located, otherwise the tenant will get a component call link that he will not actually use, which will lead to the accuracy of the provision Low and degraded tenant experience.
因此,为了避免上述情况发生,在本申请另一实施例中,在步骤S201中获取服务端中已配置的多个基础服务组件中的至少部分基础服务组件的日志文件时,可以获取租户涉及的服务场景。租户涉及的服务场景可以是租户在服务端中输入的等。然后在服务端中已配置的多个基础服务组件中,确定涉及该服务场景的基础服务组件。之后可以获取涉及该服务场景的基础服务组件的日志文件。Therefore, in order to avoid the above situation, in another embodiment of the present application, when obtaining the log files of at least some of the basic service components configured in the server in step S201, the tenant-related service scene. The service scenarios involved by the tenant may be entered by the tenant on the server side. Then, among the multiple basic service components configured in the server, determine the basic service component involved in the service scenario. Afterwards, the log files of the basic service components involved in the service scenario can be obtained.
例如,对于服务端上配置的任意一个基础服务组件,事先可以确定该基础服务组件涉及的服务场景,并在基础服务组件的组件标识与基础服务组件涉及的服务场景之间的对应 关系中,存储该基础服务组件的组件标识以及该基础服务组件涉及的服务场景,对于服务端上配置的其他每一个基础服务组件,同样如此。For example, for any basic service component configured on the server, the service scenario involved in the basic service component can be determined in advance, and stored in the corresponding relationship between the component ID of the basic service component and the service scenario involved in the basic service component. The component identification of the basic service component and the service scenarios involved in the basic service component are the same for every other basic service component configured on the server.
如此,在服务端中已配置的多个基础服务组件中,确定涉及该服务场景的基础服务组件时,可以在基础服务组件的组件标识与基础服务组件涉及的服务场景之间的对应关系中,查找与服务场景相对应的基础服务组件的组件标识,将查找到的组件标识对应的基础服务组件确定为涉及该服务场景的基础服务组件。In this way, among the multiple basic service components configured on the server, when determining the basic service component involved in the service scenario, in the corresponding relationship between the component identifier of the basic service component and the service scenario involved in the basic service component, Find the component ID of the basic service component corresponding to the service scenario, and determine the basic service component corresponding to the found component ID as the basic service component involved in the service scenario.
在本申请中,租户可以基于服务端提供的组件调用链路的基础服务组件开发服务模型,以通过服务模型对广大客户提供服务。In this application, the tenant can develop a service model based on the basic service component of the component call link provided by the server, so as to provide services to customers through the service model.
然而,如果提供给租户的组件调用链路为不可用的组件调用链路或者可用但不可靠的组件调用链路,则会导致租户根据提供的组件调用链路生成的服务模型在实际调用过程中不可用或者不可靠,会影响租户通过服务模型对广大客户提供服务。However, if the component call link provided to the tenant is an unavailable component call link or an available but unreliable component call link, it will cause the service model generated by the tenant according to the provided component call link to be in the actual call process Unavailability or unreliability will affect tenants' ability to provide services to customers through the service model.
因此,为了避免这种情况发生,在本申请中,需要提供给租户正常可用的组件调用链路且可靠性高的组件调用链路。Therefore, in order to avoid this situation, in the present application, it is necessary to provide a component invocation link that is normally available and highly reliable to the tenant.
为了能够提供给租户正常可用的组件调用链路且可靠性高的组件调用链路,在本申请中,就可以不根据不正常且可靠性低的基础服务组件还原组件调用链路。In order to provide tenants with normally available and highly reliable component invocation links, in this application, the component invocation links may not be restored based on abnormal and low reliability basic service components.
为了不根据不正常且可靠性低的基础服务组件还原组件调用链路,可以不获取不正常且可靠性低的基础服务组件的日志文件,这样之后在还原组件调用链路的过程中,就不会根据不正常且可靠性低的基础服务组件的日志文件还原组件调用链路,而仅会根据正常且可靠性高的基础服务组件的日志文件还原组件调用链路,进而使得还原得到的组件调用链路中的基础服务组件均是正常且可靠性高的。In order not to restore component call links based on abnormal and low-reliability basic service components, you can not obtain the log files of abnormal and low-reliability basic service components, so that in the process of restoring component call links later, no The component call link will be restored based on the log files of abnormal and low-reliability basic service components, and the component call link will only be restored based on the log files of normal and high-reliability basic service components, so that the restored component calls The basic service components in the link are normal and highly reliable.
为了不获取不正常且可靠性低的基础服务组件的日志文件,在步骤S201中获取服务端中已配置的多个基础服务组件中的至少部分基础服务组件的日志文件时,可以获取服务端中已配置的多个基础服务组件的各个基础服务组件的在历史过程中的状态指标。在服务端中已配置的多个基础服务组件中,确定状态指标符合预置要求的基础服务组件。然后获取确定的基础服务组件的日志文件。In order not to obtain log files of abnormal and low-reliability basic service components, when obtaining log files of at least some of the multiple basic service components configured in the server in step S201, the Status indicators of each basic service component of the configured multiple basic service components in a historical process. Among the multiple basic service components configured in the server, determine the basic service components whose state indicators meet the preset requirements. Then get the log files for the identified underlying service components.
其中,在获取服务端中已配置的多个基础服务组件的各个基础服务组件的在历史过程中的状态指标时,对于多个基础服务组件中的任意一个基础服务组件,可以获取在历史过程中该基础服务组件出现目标状态的第一出现次数,然后将第一出现次数作为该基础服务组件在历史过程中的状态指标等。Wherein, when obtaining the state indicators of each basic service component in the historical process of the multiple basic service components configured in the server, for any one of the multiple basic service components, you can obtain the historical process The basic service component has the first number of occurrences of the target state, and then the first number of occurrences is used as a state indicator of the basic service component in a historical process.
目标状态可以包括调用失败的状态或者调用异常的状态等,或者,目标状态可以包括调用正常以外的其他可能出现的状态等。The target state may include a call failure state or a call abnormal state, or the target state may include other possible states other than call normal.
然而,发明人发现,对于该基础服务组件而言,该基础服务组件自身的原因可能会导致该基础服务组件出现目标状态,该基础服务组件依赖的基础服务组件出现目标状态也可能会导致该基础服务组件出现目标状态。However, the inventors found that for the basic service component, the basic service component itself may cause the target state of the basic service component, and the target state of the basic service component that the basic service component depends on may also cause the basic The service component has the target state.
也即,有时候在该基础服务组件出现目标状态的情况下,可能是由该基础服务组件自身的原因引起的,也有可能是该基础服务组件依赖的基础服务组件出现目标状态而引起的。That is to say, sometimes when the basic service component has the target state, it may be caused by the basic service component itself, or it may be caused by the basic service component that the basic service component depends on.
因此,在获取的在历史过程中该基础服务组件出现目标状态的第一出现次数中,不仅 包括:由该基础服务组件自身引起该基础服务组件出现目标状态的次数,也包括:该基础服务组件依赖的基础服务组件出现目标状态而引起该基础服务组件出现目标状态的次数。Therefore, the obtained first occurrence times of the target state of the basic service component in the historical process not only includes: the number of times the basic service component itself causes the target state to appear in the basic service component, but also includes: the basic service component The number of times the dependent basic service component appears in the target state and causes the basic service component to appear in the target state.
而该基础服务组件依赖的基础服务组件出现目标状态而引起该基础服务组件出现目标状态与该基础服务组件自身引起该基础服务组件出现目标状态无关,也即,该基础服务组件依赖的基础服务组件出现目标状态而引起该基础服务组件出现目标状态与的次数是不应当记入第一出现次数中的,否则会导致第一出现次数不准确,很可能将符合预置要求的基础服务组件误判为不符合要求的基础服务组件,而在被误判为不符合要求的基础服务组件恰好与租户涉及的服务场景息息相关的情况下,就无法给租户提供包括该基础服务组件的组件调用链路,导致租户无法得到对租户很可能有用的且很可能需要参考的组件调用链路,降低了提供效率。The target state of the basic service component that the basic service component depends on causes the target state of the basic service component to have nothing to do with the basic service component itself causing the target state of the basic service component, that is, the basic service component that the basic service component depends on The number of occurrences of the target state caused by the target state of the basic service component should not be recorded in the first number of occurrences, otherwise the first number of occurrences will be inaccurate, and it is likely that the basic service component that meets the preset requirements will be misjudged It is a basic service component that does not meet the requirements, and if the basic service component that is misjudged as not meeting the requirements is closely related to the service scenario involved by the tenant, the tenant cannot be provided with a component call link that includes the basic service component. As a result, tenants cannot obtain component call links that are likely to be useful to tenants and that may need to be referenced, reducing the provision efficiency.
因此,为了解决上述问题,在本申请另一实施例中,在获取服务端中已配置的多个基础服务组件的各个基础服务组件的在历史过程中的状态指标时,对于多个基础服务组件中的任意一个基础服务组件,获取在历史过程中该基础服务组件出现目标状态的第一出现次数。Therefore, in order to solve the above problem, in another embodiment of the present application, when obtaining the state indicators of each basic service component in the historical process of the multiple basic service components configured in the server, for multiple basic service components Any one of the basic service components in , obtain the first occurrence times of the target state of the basic service component in the historical process.
例如,可以在基础服务组件的组件标识与目标状态的出现次数之间的对应关系中,查找与该基础服务组件的组件标识相对应的目标状态的出现次数,并作为第一出现次数。基础服务组件的组件标识与目标状态的出现次数之间的对应关系中存储了多个对应表项,每一个对应表项中包括一个基础服务组件的组件标识以及这个基础服务组件的出现目标状态的第一次数。For example, the number of occurrences of the target state corresponding to the component ID of the basic service component may be found in the correspondence between the component ID of the basic service component and the number of occurrences of the target state, and used as the first number of occurrences. The correspondence between the component ID of the basic service component and the number of occurrences of the target state stores a plurality of corresponding entries, and each corresponding table item includes a component ID of the basic service component and the number of occurrences of the target state of the basic service component. first count.
以及,获取在历史过程中该基础服务组件直接依赖的基础服务组件出现目标状态的第二出现次数。And, acquire the second occurrence times of the target state of the basic service component that the basic service component directly depends on in the historical process.
例如,可以在基础服务组件的组件标识与目标状态的出现次数之间的对应关系中,查找与该基础服务组件直接依赖的基础服务组件的组件标识相对应的目标状态的出现次数,如果该基础服务组件直接依赖的服务为一个,则将查找到的一个出现次数作为第二出现次数。如果该基础服务组件直接依赖的服务为多个,则可以将查找到的各个出现次数求和,得到第二出现次数。For example, in the corresponding relationship between the component ID of the basic service component and the number of occurrences of the target state, the number of occurrences of the target state corresponding to the component ID of the basic service component directly dependent on the basic service component can be found, if the base If there is only one service that the service component directly depends on, the found number of occurrences of one is used as the second number of occurrences. If the basic service component directly depends on multiple services, the found numbers of occurrences can be summed to obtain the second number of occurrences.
然后至少根据第一出现次数以及第二出现次数获取该基础服务组件在历史过程中的状态指标。例如,可以计算第一出现次数与第二出现次数之间的差值,并作为该基础服务组件在历史过程中的状态指标。Then at least according to the first appearance number and the second appearance number, the status index of the basic service component in the historical process is acquired. For example, the difference between the first occurrence number and the second occurrence number can be calculated and used as a status indicator of the basic service component in the historical process.
在本申请另一个实施例中,参见图3,步骤S102可以通过如下流程实现,包括:In another embodiment of the present application, referring to FIG. 3, step S102 may be implemented through the following process, including:
在步骤S301中,分别获取多个组件调用链路中的每两个组件调用链路之间的链路相似度。In step S301, the link similarity between every two component call links among the plurality of component call links is obtained respectively.
组件调用链路之间相似度可以根据组件调用链路中包括的基础服务组件的种类以及基础服务组件之间的依赖关系来确定。The similarity between component calling links can be determined according to the types of basic service components included in the component calling links and the dependencies between basic service components.
在一些实施例中,本步骤可以通过如下流程实现,包括:In some embodiments, this step can be implemented through the following processes, including:
3011、分别获取多个组件调用链路中的各个组件调用链路的字符串形式的链路信息,字符串形式的链路信息中包括:组件调用链路中包括的基础服务组件的字符串形式的组件标识以及组件调用链路中包括的基础服务组件之间的依赖关系。3011. Obtain the link information of each component call link in the string form of the multiple component call links respectively, the link information in the string form includes: the string form of the basic service component included in the component call link Component IDs and dependencies between the underlying service components included in the component call chain.
其中,对于多个组件调用链路中的任意一个组件调用链路,可以获取该组件调用链路的字符串形式的链路信息,该组件调用链路的字符串形式的链路信息中包括:该组件调用链路中包括的基础服务组件的组件标识以及该组件调用链路中包括的各个基础服务组件之间的依赖关系。对于多个组件调用链路中的其他每一个组件调用链路,同样如此。Wherein, for any component call link among the plurality of component call links, the link information of the component call link in the form of a string can be obtained, and the link information of the component call link in the form of a string includes: The component identification of the basic service component included in the component calling link and the dependency relationship among the basic service components included in the component calling link. The same is true for each of the other component call chains in the plurality of component call chains.
在本申请中,不同的基础服务组件的组件标识不同。In this application, the component identifiers of different basic service components are different.
如果某一个基础服务组件依赖另一个基础服务组件,则如果在成功调用某一个基础服务组件之后才可能能够成功调用另一个基础服务组件,则该另一个基础服务组件依赖该某一个基础服务组件。If a certain basic service component depends on another basic service component, if it is possible to successfully call another basic service component after successfully calling a certain basic service component, then the other basic service component depends on this certain basic service component.
在一个例子中,例如,参见图4,假设该组件调用链路中包括基础服务组件A、基础服务组件B、基础服务组件C、基础服务组件D、基础服务组件E以及基础服务组件F。In an example, for example, referring to FIG. 4 , it is assumed that the component calling link includes basic service component A, basic service component B, basic service component C, basic service component D, basic service component E, and basic service component F.
且基础服务组件A分别依赖基础服务组件B、基础服务组件C以及基础服务组件D,基础服务组件D分别依赖基础服务组件E以及基础服务组件F。And the basic service component A depends on the basic service component B, the basic service component C and the basic service component D respectively, and the basic service component D depends on the basic service component E and the basic service component F respectively.
其中,基础服务组件A的组件标识为“A”,基础服务组件B的组件标识为“B”,基础服务组件C的组件标识为“C”,基础服务组件D的组件标识为“D”,基础服务组件E的组件标识为“E”,基础服务组件F的组件标识为“F”。Among them, the component ID of the basic service component A is "A", the component ID of the basic service component B is "B", the component ID of the basic service component C is "C", and the component ID of the basic service component D is "D", The component ID of the basic service component E is "E", and the component ID of the basic service component F is "F".
则该组件调用链路的字符串形式的链路信息可以包括[A[B C D[E F]]]。Then the link information in the string form of the component calling link may include [A[B C D[E F]]].
从该组件调用链路的字符串形式的链路信息可以看出,基础服务组件E和基础服务组件F分别被基础服务组件D依赖,基础服务组件B、基础服务组件C以及基础服务组件D分别被基础服务组件A依赖。It can be seen from the link information in the string form of the component call link that the basic service component E and the basic service component F are respectively dependent on the basic service component D, and the basic service component B, the basic service component C and the basic service component D are respectively Depended on by the basic service component A.
3012、根据多个组件调用链路中的各个组件调用链路的字符串形式的链路信息,获取多个组件调用链路中的每两个组件调用链路之间的链路距离。3012. Acquire the link distance between every two component call links in the multiple component call links according to the link information in the form of a character string of each component call link in the multiple component call links.
本步骤可以通过如下流程实现,包括:This step can be achieved through the following processes, including:
21)、将多个组件调用链路中的各个组件调用链路的字符串形式的链路信息分别转换为向量形式的链路信息。21) Converting the link information in the string form of each component call link among the multiple component call links into vector form link information.
对于多个组件调用链路的任意一个组件调用链路,对该组件调用链路的字符串形式的链路信息中的、该组件调用链路中的各个基础服务组件的字符串形式的组件标识分别编码,分别得到该组件调用链路中包括的各个基础服务组件的向量形式的组件标识。For any component call link of multiple component call links, in the link information of the component call link in string form, the component identifier of each basic service component in the component call link in string form Encode them separately to obtain the component identifiers in the form of vectors of each basic service component included in the component call link.
字符串形式的组件标识即为一个字符串,向量形式的组件标识即为一个向量。A component ID in the form of a string is a string, and a component ID in the form of a vector is a vector.
例如,对基础服务组件A的字符串形式的组件标识“A”编码,得到基础服务组件A的向量形式的组件标识“[1 2 2 4]”。对于基础服务组件B、C、D、E以及F,同样如此。For example, encode the component identifier "A" of the basic service component A in the form of a character string to obtain the component identifier "[1 2 2 4]" of the basic service component A in the form of a vector. The same is true for base service components B, C, D, E, and F.
然后,使用该组件调用链路中包括的各个基础服务组件的向量形式的组件标识,分别替换该组件调用链路的字符串形式的链路信息中对应的字符串形式的组件标识,得到该组件调用链路的中间链路信息。Then, use the component identifiers in the vector form of each basic service component included in the component call link to replace the corresponding component identifiers in the string form of the link information in the string form of the component call link to obtain the component Call the intermediate link information of the link.
例如,对于该组件调用链路中的任意一个基础服务组件,使用该基础服务组件的向量形式的组件标识替换该组件调用链路的字符串形式的链路信息中的该基础服务组件的字符串形式的组件标识,对于该组件调用链路中的其他每一个基础服务组件,同样执行上述操作。从而得到该组件调用链路的中间链路。For example, for any basic service component in the component call link, use the vector form component identifier of the basic service component to replace the string of the basic service component in the link information of the component call link in the string form The component identification in the form of , for each other basic service component in the calling link of this component, perform the above operation in the same way. Thus, the intermediate link of the component calling link is obtained.
之后,对该组件调用链路的中间链路中的各个基础服务组件的向量形式的组件标识归 一化,得到该组件调用链路的向量形式的链路信息。Afterwards, normalize the component identifiers in the vector form of each basic service component in the intermediate link of the component call link, and obtain the link information in the vector form of the component call link.
例如,分别获取该组件调用链路的中间链路中的各个向量形式的组件标识(是一个向量表示)中的各个数字,分别计算各个数字的平方的和值,计算该和值的开方,将该组件调用链路的中间链路中的各个向量形式的组件标识(是一个向量表示)中的各个数字分别除以该和值的开方,得到该组件调用链路的向量形式的链路信息。以提高在步骤22)中根据两个组件调用链路的向量形式的链路信息获取的两个组件调用链路之间的链路距离的准确率。For example, each number in each vector-form component identifier (a vector representation) in the intermediate link of the component call link is obtained respectively, the sum of the squares of each number is calculated, and the square root of the sum is calculated, Divide each number in each vector form component identifier (a vector representation) in the intermediate link of the component call link by the square root of the sum value to obtain the vector form link of the component call link information. In order to improve the accuracy rate of the link distance between the two component calling links obtained in step 22) according to the link information in the form of the vector calling links of the two components.
22)、根据多个组件调用链路中的每两个组件调用链路的向量形式的链路信息,获取多个组件调用链路中的每两个组件调用链路之间的链路距离。22) Acquiring the link distance between every two component calling links among the multiple component calling links according to the vector form link information of every two component calling links among the multiple component calling links.
对于多个组件调用链路中的任意两个组件调用链路,可以计算该两个组件调用链路的向量形式的链路信息之间的欧式距离,并作为该两个组件调用链路之间的链路距离等。For any two component call links in multiple component call links, the Euclidean distance between the vector form link information of the two component call links can be calculated, and used as the distance between the two component call links link distance, etc.
对于多个组件调用链路中的其他每两个组件调用链路,同样如此,从而分别得到多个组件调用链路中的每两个组件调用链路之间的链路距离。The same is true for every other two component calling links in the multiple component calling links, so that the link distance between every two component calling links in the multiple component calling links is respectively obtained.
3013、根据多个组件调用链路中的每两个组件调用链路之间的链路距离,分别获取多个组件调用链路中的每两个组件调用链路之间的链路相似度。3013. According to the link distance between every two component calling links in the multiple component calling links, respectively acquire the link similarity between every two component calling links in the multiple component calling links.
在本申请中,对于多个组件调用链路中的任意两个组件调用链路,在该两个组件调用链路之间的链路距离越大的情况下,该两个组件调用链路之间的链路相似度越小,在该两个组件调用链路之间的链路距离越小的情况下,该两个组件调用链路之间的链路相似度越大。In this application, for any two component call links in multiple component call links, if the link distance between the two component call links is greater, the link between the two component call links The smaller the link similarity between the two components is, the smaller the link distance between the two component call links is, the greater the link similarity between the two component call links is.
因此,在一个例子中,可以计算该两个组件调用链路之间的链路距离的倒数,得到该两个组件调用链路之间的链路相似度。Therefore, in an example, the reciprocal of the link distance between the calling links of the two components may be calculated to obtain the link similarity between the calling links of the two components.
在步骤S302中,将多个组件调用链路中的链路相似度大于预设相似度的组件调用链路聚合为一个组件调用链路集合。In step S302, among multiple component call links, component call links whose link similarity is greater than a preset similarity are aggregated into a set of component call links.
在本申请一个实施例中,可以使用聚类算法,基于多个组件调用链路中的每两个组件调用链路之间的链路相似度,将多个组件调用链路聚类,得到至少一个组件调用链路集合。In one embodiment of the present application, a clustering algorithm may be used to cluster multiple component call links based on the link similarity between every two component call links in the multiple component call links, to obtain at least A component called LinksCollection.
聚类算法可以包括:dbscan(Density-Based Spatial Clustering of Applications with,基于密度的聚类算法)或者k-means(k-means clustering algorithm,k均值聚类算法)或者infomap(基于信息论的社团发现算法)等。Clustering algorithms can include: dbscan (Density-Based Spatial Clustering of Applications with, density-based clustering algorithm) or k-means (k-means clustering algorithm, k-means clustering algorithm) or infomap (community discovery algorithm based on information theory )wait.
在本申请一个实施例中,参见图5,步骤S103可以通过如下流程实现,包括:In an embodiment of the present application, referring to FIG. 5, step S103 can be implemented through the following process, including:
在步骤S401中,获取组件调用链路集合中的各个组件调用链路在服务端中分别真实出现过的次数和/或各个组件调用链路中分别包括的基础服务组件的数量。In step S401, the number of actual occurrences of each component call link in the component call link set in the server and/or the number of basic service components included in each component call link is obtained.
在本申请一个实施例中,可以获取组件调用链路集合中的各个组件调用链路在服务端中分别真实出现过的次数。In one embodiment of the present application, the number of actual occurrences of each component invocation link in the component invocation link set in the server end may be acquired.
其中,对于组件调用链路集合而言,其中往往包括有多个组件调用链路。Wherein, for the set of component calling links, it often includes multiple component calling links.
有时候,组件调用链路集合中的部分链路是相同的(相同可以理解为包括的基础服务组件相同且包括的基础服务组件之间的依赖关系相同等),如此,则这部分链路在历史过程中在服务端中真实出现过M次,M等于这部分链路的数量。Sometimes, some of the links in the component call link set are the same (the same can be understood as including the same basic service components and the same dependencies between the included basic service components, etc.), so this part of the links in In the historical process, it has actually appeared M times in the server, and M is equal to the number of links in this part.
其中,对于组件调用链路集合中的任意一个组件调用链路而言,在组件调用链路集合 中的除该组件调用链路以外的其他组件调用链路中,如果不存在与该组件调用链路相同的组件调用链路,则说明该组件调用链路在历史过程中在服务端中真实出现过的次数为1次。Among them, for any component call link in the component call link set, if there is no component call link in the component call link set other than the component call link If the same component call link is used, it means that the component call link has actually appeared once in the server in the historical process.
在组件调用链路集合中的除该组件调用链路以外的其他组件调用链路中,如果存在N个与该组件调用链路相同的组件调用链路,则说明该组件调用链路在历史过程中在服务端中真实出现过的次数为N+1次,其中,N为正整数。Among the other component call links in the component call link set, if there are N component call links identical to the component call link, it means that the component call link is in the historical process The number of actual occurrences in the server is N+1 times, where N is a positive integer.
或者,在本申请另一个实施例中,可以获取组件调用链路集合中的各个组件调用链路中分别包括的基础服务组件的数量。Or, in another embodiment of the present application, the number of basic service components respectively included in each component invocation link in the component invocation link set may be obtained.
或者,在本申请又一实施例中,可以获取组件调用链路集合中的各个组件调用链路在服务端中分别真实出现过的次数以及各个组件调用链路中分别包括的基础服务组件的数量。Or, in yet another embodiment of the present application, the number of actual occurrences of each component call link in the component call link set in the server and the number of basic service components included in each component call link can be obtained .
在步骤S402中,根据各个组件调用链路在服务端中分别真实出现过的次数和/或各个组件调用链路中分别包括的基础服务组件的数量,在各个组件调用链路集合中分别选择适用于租户的至少一个组件调用链路。In step S402, according to the number of actual occurrences of each component call link in the server and/or the number of basic service components included in each component call link, select the applicable component in each component call link set Invoke link for at least one component of the tenant.
在本申请一个实施例中,如果在步骤S401中获取到的是组件调用链路集合中的各个组件调用链路在服务端中分别真实出现过的次数,则在步骤S402中,可以在组件调用链路集合中,按照在服务端中分别真实出现过的次数由高至低的顺序,选择至少一个组件调用链路。In one embodiment of the present application, if what is obtained in step S401 is the number of actual occurrences of each component invocation link in the component invocation link set in the server, then in step S402, the component invocation link can be called In the link set, select at least one component to call the link in descending order of the number of times it has actually appeared in the server.
或者,在本申请另一实施例中,如果在步骤S401中获取到的是组件调用链路集合中的各个组件调用链路中分别包括的基础服务组件的数量,则在步骤S402中,可以在组件调用链路集合中,按照包括的基础服务组件的数量由高至低的顺序,选择至少一个组件调用链路。Or, in another embodiment of the present application, if what is obtained in step S401 is the number of basic service components respectively included in each component call link in the component call link set, then in step S402, the In the set of component invocation links, at least one component invocation link is selected in descending order of the number of included basic service components.
或者,在本申请另一实施例中,如果在步骤S401中获取到的组件调用链路集合中的各个组件调用链路在服务端中分别真实出现过的次数以及各个组件调用链路中分别包括的基础服务组件的数量,则在步骤4202中,对于组件调用链路集合中的任意一个组件调用链路,可以根据该组件调用链路在服务端中分别真实出现过的次数以及该组件调用链路中包括的基础服务组件的数量,获取该组件调用链路的提供分值,对于组件调用链路集合中的其他每一个组件调用链路,执行上述操作,从而得到组件调用链路集合中的每一个组件调用链路的提供分值,然后在组件调用链路集合中,按照提供分值由高至低的顺序,选择至少一个组件调用链路。Or, in another embodiment of the present application, if each component call link in the set of component call links obtained in step S401 actually appears on the server side and each component call link includes The number of basic service components, then in step 4202, for any component call link in the component call link set, the number of times the component call link has actually appeared in the server and the component call link The number of basic service components included in the route, obtain the component call link provided score, for each other component call link in the component call link set, perform the above operations, so as to get the component call link set The score provided by each component call link, and then, in the set of component call links, at least one component call link is selected in descending order of the provided score.
其中,在根据该组件调用链路在历史过程中在服务端中真实出现过的次数以及该组件调用链路中包括的基础服务组件的数量,获取该组件调用链路的提供分值时,可以按照如下公式实现:Among them, when obtaining the provision score of the component call link according to the number of times the component call link has actually appeared in the server in the historical process and the number of basic service components included in the component call link, you can According to the following formula to achieve:
Figure PCTCN2022134793-appb-000001
Figure PCTCN2022134793-appb-000001
其中,在上述公式中,S为该组件调用链路的提供分值。Wherein, in the above formula, S is the score provided by the component calling the link.
w1为第一预设系数,w2为第二预设系数。w1 is a first preset coefficient, and w2 is a second preset coefficient.
X为该组件调用链路在服务端中真实出现过的次数,Y为该组件调用链路中包括的基础服务组件的数量。X is the number of times the component call link actually appears in the server, and Y is the number of basic service components included in the component call link.
C1为第一预设数值,以及C2为第二预设数值。C1 is a first preset value, and C2 is a second preset value.
C1可以包括在服务端中真实出现过的各个组件调用链路在历史过程中在服务端中真实出现过的次数的平均值等。C1 may include the average number of times that each component call link actually appeared in the server in the historical process and so on.
C2可以包括在服务端中出现过的各个组件调用链路分别包括的基础服务组件的数量的平均值等。C2 may include an average value of the number of basic service components included in each component call link that has appeared in the server, and the like.
其中,第一预设系数w1与第二预设系数w2之间的和值可以等于特定的数值,特定的数值包括1、1.5或2等,本申请对此不做限定。Wherein, the sum of the first preset coefficient w1 and the second preset coefficient w2 may be equal to a specific value, and the specific value includes 1, 1.5 or 2, etc., which is not limited in this application.
第一预设系数w1可以大于或等于0且小于或等于特定的数值,第二预设系数w2可以大于或等于0且小于或等于特定的数值。The first preset coefficient w1 may be greater than or equal to 0 and less than or equal to a specific value, and the second preset coefficient w2 may be greater than or equal to 0 and less than or equal to a specific value.
在本申请中,在租户需要借助服务端中提供的基础服务组件生成服务模型的情况下,获取在历史过程中在服务端中真实出现过的多个组件调用链路,多个组件调用链路是服务端在历史过程中处理客户的真实的线上数据的过程中形成的;将多个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合;在各个组件调用链路集合中,分别选择适用于租户的至少一个组件调用链路;向租户提供选择的组件调用链路,以使租户至少借助提供的组件调用链路生成服务模型。In this application, when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain multiple component call links that actually appeared in the server in the historical process, multiple component call links It is formed when the server processes the customer's real online data in the historical process; similar component call links in multiple component call links are clustered to obtain at least one set of component call links; In the set of component invocation links, at least one component invocation link suitable for the tenant is selected respectively; the selected component invocation link is provided to the tenant, so that the tenant at least generates a service model by means of the provided component invocation link.
通过本申请,不需要租户的工作人员在服务端中手动选择需要的基础服务组件以及手动配置各个基础服务组件之间的依赖关系,而可以直接向租户提供历史过程中在服务端中真实出现过的组件调用链路,在服务端中真实出现过的组件调用链路往往是实际可用的组件调用链路(基础服务组件之间的依赖关系已经确定了),从而在满足租户的实际需求的情况下可以降低人工成本,提高租户的体验。Through this application, the staff of the tenant does not need to manually select the required basic service components in the server and manually configure the dependencies between each basic service component, but can directly provide the tenant The component call links that actually appear in the server are often actually available component call links (the dependencies between basic service components have been determined), so that when the actual needs of tenants are met, This can reduce labor costs and improve tenant experience.
其次,通过聚类以及从聚类得到的每一个组件调用链路集合中分别选择组件调用链路,以尽可能避免提供给租户大量的相似的组件调用链路,降低了重复推送的程度,进而降低了租户在提供的组件调用链路中选择需要的组件调用链路的选择难度。Secondly, by clustering and selecting component call links from each component call link set obtained by clustering, to avoid providing tenants with a large number of similar component call links as much as possible, reducing the degree of repeated push, and then The selection difficulty for the tenant to select the required component invocation link among the provided component invocation links is reduced.
另外,由于在服务端中真实出现过的组件调用链路往往是实际可用的组件调用链路,因此,可以避免由于工作经验少而导致人工配置的组件调用链路不可用的情况,在租户使用提供的组件调用链路生成服务模型的情况下,提高了租户使用服务模型对客户的线上数据能够正常处理的可能性,也即,提高了租户能够正常对客户提供服务的可能性。In addition, since the component call links that actually appear in the server are often actually available component call links, it can avoid the situation that the manually configured component call links are unavailable due to lack of work experience. When the provided component invokes the link to generate the service model, it increases the possibility that the tenant can use the service model to process the online data of the customer normally, that is, the possibility that the tenant can provide services to the customer normally increases.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作并不一定是本申请所必须的。It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the application is not limited by the described action sequence, because according to this application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions involved are not necessarily required by this application.
参照图6,示出了本申请的一种信息处理装置的结构框图,应用于服务端,该装置具体可以包括如下模块:Referring to FIG. 6, it shows a structural block diagram of an information processing device of the present application, which is applied to the server. The device may specifically include the following modules:
获取模块11,用于在租户需要借助服务端中提供的基础服务组件生成服务模型的情况下,获取在历史过程中在服务端中真实出现过的多个组件调用链路,多个组件调用链路是服务端在历史过程中处理客户的真实的线上数据的过程中形成的;聚类模块12,用于将多 个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合;选择模块13,用于在各个组件调用链路集合中,分别选择适用于租户的至少一个组件调用链路;提供模块14,用于向租户提供选择的组件调用链路,以使租户至少借助提供的组件调用链路生成服务模型。The acquisition module 11 is used to obtain multiple component call links that actually appeared in the server in the historical process when the tenant needs to generate a service model with the help of the basic service components provided in the server. The multiple component call chains The route is formed by the server during the process of processing the real online data of the customer in the historical process; the clustering module 12 is used to cluster similar component call links in multiple component call links to obtain at least one A set of component call links; a selection module 13, used to select at least one component call link applicable to the tenant in each set of component call links; a providing module 14, used to provide the selected component call link to the tenant, To enable the tenant to at least generate a service model with the help of the provided component invocation link.
在一些实施方式中,所述选择模块包括:第一获取单元,用于获取组件调用链路集合中的各个组件调用链路在服务端中分别真实出现过的次数和/或各个组件调用链路中分别包括的基础服务组件的数量;选择单元,用于根据各个组件调用链路在服务端中分别真实出现过的次数和/或各个组件调用链路中分别包括的基础服务组件的数量,在各个组件调用链路集合中分别选择适用于租户的至少一个组件调用链路。In some implementations, the selection module includes: a first obtaining unit, configured to obtain the number of actual occurrences of each component call link in the component call link set in the server and/or each component call link The number of basic service components included in respectively; the selection unit is used to select the number of basic service components included in each component call link according to the number of times each component call link actually appears in the server and/or the number of basic service components included in each component call link. At least one component invocation link applicable to the tenant is selected from each component invocation link set.
在一些实施方式中,所述选择单元包括:第一选择子单元,用于在组件调用链路集合中,按照在服务端中分别真实出现过的次数由高至低的顺序,选择至少一个组件调用链路;或者,第二选择子单元,用于在组件调用链路集合中,按照包括的基础服务组件的数量由高至低的顺序,选择至少一个组件调用链路;或者,第一获取子单元,用于对于组件调用链路集合中的每一个组件调用链路,根据所述组件调用链路在服务端中分别真实出现过的次数以及所述组件调用链路中包括的基础服务组件的数量,获取所述组件调用链路的提供分值,第三选择子单元,用于在组件调用链路集合中,按照提供分值由高至低的顺序,选择至少一个组件调用链路。In some embodiments, the selection unit includes: a first selection subunit, configured to select at least one component in the component call link set in descending order of the number of actual occurrences in the server call link; or, the second selection subunit is used to select at least one component call link in the set of component call links in descending order of the number of basic service components included; or, the first acquisition The subunit is used to call a link for each component in the component call link set, according to the number of times the component call link has actually appeared in the server and the basic service components included in the component call link The quantity of the component call link is obtained to obtain the score provided by the component call link, and the third selection subunit is used to select at least one component call link in the order of the provided score from high to low in the set of component call links.
在一些实施方式中,所述聚类模块包括:第二获取单元,用于分别获取多个组件调用链路中的每两个组件调用链路之间的链路相似度;聚合单元,用于将多个组件调用链路中的链路相似度大于预设相似度的组件调用链路聚合为一个组件调用链路集合。In some implementations, the clustering module includes: a second acquisition unit, configured to respectively acquire the link similarity between every two component invocation links in the plurality of component invocation links; an aggregation unit, for Aggregating component call links whose link similarity is greater than a preset similarity among multiple component call links is aggregated into a set of component call links.
在一些实施方式中,所述第二获取单元包括:第二获取子单元,用于分别获取多个组件调用链路中的各个组件调用链路的字符串形式的链路信息,字符串形式的链路信息中包括:组件调用链路中包括的基础服务组件的字符串形式的组件标识以及组件调用链路中包括的基础服务组件之间的依赖关系;第三获取子单元,用于根据多个组件调用链路中的各个组件调用链路的字符串形式的链路信息,获取多个组件调用链路中的每两个组件调用链路之间的链路距离;第四获取子单元,用于根据多个组件调用链路中的每两个组件调用链路之间的链路距离,分别获取多个组件调用链路中的每两个组件调用链路之间的链路相似度。In some embodiments, the second acquiring unit includes: a second acquiring subunit, configured to respectively acquire the link information in the form of a character string of each component invoking link in the plurality of component invoking links, the The link information includes: the component identification of the basic service component included in the component call link in the form of a string and the dependency relationship between the basic service components included in the component call link; the third acquisition subunit is used to The link information of each component call link in the string form of each component call link in the component call link, and obtain the link distance between every two component call links in the multiple component call links; the fourth acquisition subunit, The method is used to respectively acquire the link similarity between every two component calling links among the multiple component calling links according to the link distance between every two component calling links among the multiple component calling links.
在一些实施方式中,所述第三获取子单元具体用于:将多个组件调用链路中的各个组件调用链路的字符串形式的链路信息分别转换为向量形式的链路信息;根据多个组件调用链路中的每两个组件调用链路的向量形式的链路信息,获取多个组件调用链路中的每两个组件调用链路之间的链路距离。In some implementations, the third obtaining subunit is specifically configured to: convert the link information in the form of a character string of each component call link in the plurality of component call links into link information in the form of a vector; The link information of every two component call links in the multiple component call links in vector form is obtained to obtain the link distance between every two component call links in the multiple component call links.
在一些实施方式中,所述第三获取子单元具体用于包括:对于多个组件调用链路的任意一个组件调用链路,对所述组件调用链路的字符串形式的链路信息中的、所述组件调用链路中的各个基础服务组件的字符串形式的组件标识分别编码,分别得到所述组件调用链路中包括的各个基础服务组件的向量形式的组件标识;使用所述组件调用链路中包括的各个基础服务组件的向量形式的组件标识,分别替换所述组件调用链路的字符串形式的链路信息中对应的字符串形式的组件标识,得到所述组件调用链路的中间链路信息;对所述组 件调用链路的中间链路中的各个基础服务组件的向量形式的组件标识归一化,得到所述组件调用链路的向量形式的链路信息。In some implementations, the third obtaining subunit is specifically configured to include: for any component calling link of a plurality of component calling links, in the link information in the string form of the component calling link , the component identifications in the form of character strings of each basic service component in the component invocation link are encoded separately, and the component identifications in the form of vectors of each basic service component included in the component invocation link are respectively obtained; using the component invocation The component identifiers in the form of vectors of each basic service component included in the link are respectively replaced with the corresponding component identifiers in the form of strings in the link information of the component invocation link in the form of a character string to obtain the Intermediate link information: normalize the component identifiers in vector form of each basic service component in the intermediate link of the component invocation link to obtain the vector form link information of the component invocation link.
在一些实施方式中,所述获取模块包括:第三获取单元,用于获取服务端中已配置的多个基础服务组件中的至少部分基础服务组件的日志文件,日志文件中记录有:基础服务组件在历史过程中每一次调用时所涉及的组件调用链路的链路标识,以及,在每一次调用时与其所涉及的组件调用链路中的其他基础服务组件之间依赖关系;构建单元,用于根据至少部分基础服务组件的日志文件,构建在历史过程中在服务端中真实出现过的多个组件调用链路。In some implementations, the acquisition module includes: a third acquisition unit, configured to acquire log files of at least some of the basic service components configured in the server, where the log file records: basic service The link identification of the component call link involved in each call of the component in the historical process, and the dependencies between other basic service components in the component call link involved in each call; the building unit, It is used to construct call links of multiple components that actually appeared in the server in the historical process according to the log files of at least some basic service components.
在一些实施方式中,所述构建单元包括:筛选子单元,用于在多个基础服务组件中,筛选日志文件中记录的链路标识相同的基础服务组件;组合子单元,用于根据筛选的基础服务组件的日志文件中记录的、筛选的基础服务组件之间依赖关系,将筛选的基础服务组件组合为一个组件调用链路。In some implementations, the construction unit includes: a screening subunit, used to filter the links recorded in the log files to identify the same basic service component among multiple basic service components; Dependencies between the filtered basic service components recorded in the log files of the basic service components, and the filtered basic service components are combined into a component call link.
在一些实施方式中,所述构建单元还包括:第一确定子单元,用于确定组合得到的组件调用链路中是否存在相同的至少两个子组件调用链路且相同的至少两个子组件调用链路均被同一个基础服务组件依赖;删除子单元,用于在组合得到的组件调用链路中存在相同的两个子组件调用链路且相同的至少两个子组件调用链路均被同一个基础服务组件依赖的情况下,在组合得到的组件调用链路中,删除相同的至少两个子组件调用链路中的部分子组件调用链路,以使组合得到的组件调用链路中保留至少两个子组件调用链路中的一个子组件调用链路。In some implementations, the construction unit further includes: a first determining subunit, configured to determine whether there are at least two subcomponent calling links that are the same and the same at least two subcomponent calling links in the combined component calling links All paths are dependent on the same basic service component; delete the subunit, so that there are two identical subcomponent call links in the combined component call link and the same at least two subcomponent call links are all used by the same basic service In the case of component dependence, in the combined component call link, delete some subcomponent call links in the same at least two subcomponent call links, so that at least two subcomponent call links remain in the combined component call link A child component in the call chain calls the chain.
在一些实施方式中,所述构建单元还包括:第二确定子单元,用于确定链路标识相同的各个基础服务组件在其涉及的同一组件调用链路中是否最终均调用成功;所述组合子单元还用于:在链路标识相同的各个基础服务组件在其涉及的同一组件调用链路中最终均调用成功的情况下,根据筛选的基础服务组件的日志文件中记录的、筛选的基础服务组件之间依赖关系,将筛选的基础服务组件组合为一个组件调用链路。In some implementations, the construction unit further includes: a second determination subunit, configured to determine whether each basic service component with the same link identifier is successfully invoked in the same component invocation link involved in it; the combination The sub-unit is also used for: in the case that each basic service component with the same link identifier is successfully invoked in the same component call link involved, according to the filtered basic service component recorded in the log file The dependencies between service components combine the filtered basic service components into a component call link.
在一些实施方式中,所述第三获取单元包括:第五获取子单元,用于获取租户涉及的服务场景;第一确定子单元,用于在服务端中已配置的多个基础服务组件中,确定涉及所述服务场景的基础服务组件;第六获取子单元,用于获取涉及所述服务场景的基础服务组件的日志文件。In some implementations, the third obtaining unit includes: a fifth obtaining subunit, configured to obtain service scenarios involved in tenants; a first determining subunit, configured to select the basic service components configured in the server , determining the basic service component related to the service scenario; the sixth acquiring subunit is configured to acquire the log file of the basic service component related to the service scenario.
在一些实施方式中,所述第三获取单元包括:第七获取子单元,用于获取服务端中已配置的多个基础服务组件的各个基础服务组件的在历史过程中的状态指标;第二确定子单元,用于在服务端中已配置的多个基础服务组件中,确定状态指标符合预置要求的基础服务组件;第八获取子单元,用于获取确定的基础服务组件的日志文件。In some implementations, the third acquisition unit includes: a seventh acquisition subunit, configured to acquire the state indicators of each basic service component in the historical process of the multiple basic service components configured in the server; the second The determination subunit is used to determine the basic service components whose state indicators meet the preset requirements among the multiple basic service components configured in the server; the eighth acquisition subunit is used to obtain the log files of the determined basic service components.
在一些实施方式中,所述第七获取子单元具体用于:对于多个基础服务组件中的任意一个基础服务组件,获取在历史过程中所述基础服务组件出现目标状态的第一出现次数,获取在历史过程中所述基础服务组件直接依赖的基础服务组件出现目标状态的第二出现次数;根据第一出现次数以及第二出现次数获取所述基础服务组件在历史过程中的状态指标。In some implementations, the seventh obtaining subunit is specifically configured to: for any one of the multiple basic service components, obtain the first number of occurrences of the target state of the basic service component in the historical process, Acquiring the second number of occurrences of the target state of the basic service component that the basic service component directly depends on in the historical process; acquiring the state index of the basic service component in the historical process according to the first occurrence number and the second occurrence number.
在本申请中,在租户需要借助服务端中提供的基础服务组件生成服务模型的情况下, 获取在历史过程中在服务端中真实出现过的多个组件调用链路,多个组件调用链路是服务端在历史过程中处理客户的真实的线上数据的过程中形成的;将多个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合;在各个组件调用链路集合中,分别选择适用于租户的至少一个组件调用链路;向租户提供选择的组件调用链路,以使租户至少借助提供的组件调用链路生成服务模型。In this application, when the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain multiple component call links that actually appeared in the server in the historical process, multiple component call links It is formed when the server processes the customer's real online data in the historical process; similar component call links in multiple component call links are clustered to obtain at least one set of component call links; In the set of component invocation links, at least one component invocation link suitable for the tenant is selected respectively; the selected component invocation link is provided to the tenant, so that the tenant at least generates a service model by means of the provided component invocation link.
通过本申请,不需要租户的工作人员在服务端中手动选择需要的基础服务组件以及手动配置各个基础服务组件之间的依赖关系,而可以直接向租户提供历史过程中在服务端中真实出现过的组件调用链路,在服务端中真实出现过的组件调用链路往往是实际可用的组件调用链路(基础服务组件之间的依赖关系已经确定了),从而在满足租户的实际需求的情况下可以降低人工成本,提高租户的体验。Through this application, the staff of the tenant does not need to manually select the required basic service components in the server and manually configure the dependencies between each basic service component, but can directly provide the tenant The component call links that actually appear in the server are often actually available component call links (the dependencies between basic service components have been determined), so that when the actual needs of tenants are met, This can reduce labor costs and improve tenant experience.
其次,通过聚类以及从聚类得到的每一个组件调用链路集合中分别选择组件调用链路,以尽可能避免提供给租户大量的相似的组件调用链路,降低了重复推送的程度,进而降低了租户在提供的组件调用链路中选择需要的组件调用链路的选择难度。Secondly, by clustering and selecting component call links from each component call link set obtained by clustering, to avoid providing tenants with a large number of similar component call links as much as possible, reducing the degree of repeated push, and then The selection difficulty for the tenant to select the required component invocation link among the provided component invocation links is reduced.
另外,由于在服务端中真实出现过的组件调用链路往往是实际可用的组件调用链路,因此,可以避免由于工作经验少而导致人工配置的组件调用链路不可用的情况,在租户使用提供的组件调用链路生成服务模型的情况下,提高了租户使用服务模型对客户的线上数据能够正常处理的可能性,也即,提高了租户能够正常对客户提供服务的可能性。In addition, since the component call links that actually appear in the server are often actually available component call links, it can avoid the situation that the manually configured component call links are unavailable due to lack of work experience. When the provided component invokes the link to generate the service model, it increases the possibility that the tenant can use the service model to process the online data of the customer normally, that is, the possibility that the tenant can provide services to the customer normally increases.
本申请实施例还提供了一种非易失性可读存储介质,该存储介质中存储有一个或多个模块(programs),该一个或多个模块被应用在设备时,可以使得该设备执行本申请实施例中各方法步骤的指令(instructions)。The embodiment of the present application also provides a non-volatile readable storage medium, and one or more modules (programs) are stored in the storage medium. When the one or more modules are applied to the device, the device can execute Instructions for each method step in the embodiments of the present application.
本申请实施例提供了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得电子设备执行如上述实施例中一个或多个所述的方法。本申请实施例中,所述电子设备包括服务器、网关、子设备等,子设备为物联网设备等设备。The embodiments of the present application provide one or more machine-readable media, on which instructions are stored, and when executed by one or more processors, the electronic device executes the method described in one or more of the above embodiments. In the embodiment of the present application, the electronic device includes a server, a gateway, a sub-device, etc., and the sub-device is an Internet of Things device or the like.
本公开的实施例可被实现为使用任意适当的硬件,固件,软件,或及其任意组合进行想要的配置的装置,该装置可包括服务器(集群)、终端设备如IoT设备等电子设备。Embodiments of the present disclosure can be implemented as an apparatus using any appropriate hardware, firmware, software, or any combination thereof to perform desired configurations, and the apparatus may include servers (clusters), terminal devices such as IoT devices and other electronic devices.
图7示意性地示出了可被用于实现本申请中所述的各个实施例的示例性装置1300。FIG. 7 schematically illustrates an exemplary apparatus 1300 that may be used to implement various embodiments described in this application.
对于一个实施例,图7示出了示例性装置1300,该装置具有一个或多个处理器1302、被耦合到(一个或多个)处理器1302中的至少一个的控制模块(芯片组)1304、被耦合到控制模块1304的存储器1306、被耦合到控制模块1304的非易失性存储器(NVM)/存储设备1308、被耦合到控制模块1304的一个或多个输入/输出设备1310,和被耦合到控制模块1304的网络接口1312。For one embodiment, FIG. 7 illustrates an exemplary apparatus 1300 having one or more processors 1302, a control module (chipset) 1304 coupled to at least one of the processor(s) 1302 , memory 1306 coupled to control module 1304, non-volatile memory (NVM)/storage device 1308 coupled to control module 1304, one or more input/output devices 1310 coupled to control module 1304, and Coupled to the network interface 1312 of the control module 1304 .
处理器1302可包括一个或多个单核或多核处理器,处理器1302可包括通用处理器或专用处理器(例如图形处理器、应用处理器、基频处理器等)的任意组合。在一些实施例中,装置1300能够作为本申请实施例中所述网关等服务器设备。The processor 1302 may include one or more single-core or multi-core processors, and the processor 1302 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1300 can serve as a server device such as a gateway in the embodiments of this application.
在一些实施例中,装置1300可包括具有指令1314的一个或多个计算机可读介质(例如,存储器1306或NVM/存储设备1308)和与该一个或多个计算机可读介质相合并被配置为执行指令1314以实现模块从而执行本公开中所述的动作的一个或多个处理器1302。In some embodiments, apparatus 1300 may include one or more computer-readable media (e.g., memory 1306 or NVM/storage 1308) having instructions 1314 and in combination with the one or more computer-readable media configured to The one or more processors 1302 execute instructions 1314 to implement modules to perform the actions described in this disclosure.
对于一个实施例,控制模块1304可包括任意适当的接口控制器,以向(一个或多个) 处理器1302中的至少一个和/或与控制模块1304通信的任意适当的设备或组件提供任意适当的接口。For one embodiment, the control module 1304 may include any suitable interface controller to provide any suitable Interface.
控制模块1304可包括存储器控制器模块,以向存储器1306提供接口。存储器控制器模块可以是硬件模块、软件模块和/或固件模块。The control module 1304 may include a memory controller module to provide an interface to the memory 1306 . A memory controller module may be a hardware module, a software module and/or a firmware module.
存储器1306可被用于例如为装置1300加载和存储数据和/或指令1314。对于一个实施例,存储器1306可包括任意适当的易失性存储器,例如,适当的DRAM。在一些实施例中,存储器1306可包括双倍数据速率四同步动态随机存取存储器(DDR4SDRAM)。Memory 1306 may be used, for example, to load and store data and/or instructions 1314 for apparatus 1300 . For one embodiment, memory 1306 may comprise any suitable volatile memory, such as suitable DRAM. In some embodiments, memory 1306 may include Double Data Rate Quad Synchronous Dynamic Random Access Memory (DDR4 SDRAM).
对于一个实施例,控制模块1304可包括一个或多个输入/输出控制器,以向NVM/存储设备1308及(一个或多个)输入/输出设备1310提供接口。For one embodiment, control module 1304 may include one or more input/output controllers to provide interfaces to NVM/storage device(s) 1308 and input/output device(s) 1310 .
例如,NVM/存储设备1308可被用于存储数据和/或指令1314。NVM/存储设备1308可包括任意适当的非易失性存储器(例如,闪存)和/或可包括任意适当的(一个或多个)非易失性存储设备(例如,一个或多个硬盘驱动器(HDD)、一个或多个光盘(CD)驱动器和/或一个或多个数字通用光盘(DVD)驱动器)。For example, NVM/storage 1308 may be used to store data and/or instructions 1314 . NVM/storage 1308 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard drives ( HDD), one or more compact disc (CD) drives, and/or one or more digital versatile disc (DVD) drives).
NVM/存储设备1308可包括在物理上作为装置1300被安装在其上的设备的一部分的存储资源,或者其可被该设备访问可不必作为该设备的一部分。例如,NVM/存储设备1308可通过网络经由(一个或多个)输入/输出设备1310进行访问。NVM/storage 1308 may include storage resources that are physically part of the device on which apparatus 1300 is installed, or may not necessarily be part of the device that are accessible by the device. For example, NVM/storage 1308 may be accessed over a network via input/output device(s) 1310 .
(一个或多个)输入/输出设备1310可为装置1300提供接口以与任意其他适当的设备通信,输入/输出设备1310可以包括通信组件、拼音组件、传感器组件等。网络接口1312可为装置1300提供接口以通过一个或多个网络通信,装置1300可根据一个或多个无线网络标准和/或协议中的任意标准和/或协议来与无线网络的一个或多个组件进行无线通信,例如接入基于通信标准的无线网络,如WiFi、2G、3G、4G、5G等,或它们的组合进行无线通信。The input/output device(s) 1310 may provide an interface for the apparatus 1300 to communicate with any other suitable device, and the input/output device 1310 may include a communication component, a pinyin component, a sensor component, and the like. Network interface 1312 may provide an interface for device 1300 to communicate over one or more networks, and device 1300 may communicate with one or more wireless networks according to any of one or more wireless network standards and/or protocols. Components communicate wirelessly, such as accessing wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination of them for wireless communication.
对于一个实施例,(一个或多个)处理器1302中的至少一个可与控制模块1304的一个或多个控制器(例如,存储器控制器模块)的逻辑封装在一起。对于一个实施例,(一个或多个)处理器1302中的至少一个可与控制模块1304的一个或多个控制器的逻辑封装在一起以形成系统级封装(SiP)。对于一个实施例,(一个或多个)处理器1302中的至少一个可与控制模块1304的一个或多个控制器的逻辑集成在同一模具上。对于一个实施例,(一个或多个)处理器1302中的至少一个可与控制模块1304的一个或多个控制器的逻辑集成在同一模具上以形成片上系统(SoC)。For one embodiment, at least one of the processor(s) 1302 may be packaged with the logic of one or more controllers of the control module 1304 (eg, a memory controller module). For one embodiment, at least one of the processor(s) 1302 may be packaged with the logic of one or more controllers of the control module 1304 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die as the logic of the one or more controllers of the control module 1304 . For one embodiment, at least one of the processor(s) 1302 may be integrated on the same die with the logic of the one or more controllers of the control module 1304 to form a system on chip (SoC).
在各个实施例中,装置1300可以但不限于是:服务器、台式计算设备或移动计算设备(例如,膝上型计算设备、手持计算设备、平板电脑、上网本等)等终端设备。在各个实施例中,装置1300可具有更多或更少的组件和/或不同的架构。例如,在一些实施例中,装置1300包括一个或多个摄像机、键盘、液晶显示器(LCD)屏幕(包括触屏显示器)、非易失性存储器端口、多个天线、图形芯片、专用集成电路(ASIC)和扬声器。In various embodiments, the apparatus 1300 may be, but not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (eg, a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, device 1300 may have more or fewer components and/or a different architecture. For example, in some embodiments, device 1300 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touchscreen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit ( ASIC) and speakers.
本申请实施例提供了一种电子设备,包括:一个或多个处理器;和,其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述电子设备执行如本申请中一个或多个所述的方法。An embodiment of the present application provides an electronic device, including: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors, The electronic device is caused to perform one or more of the methods described in this application.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之 处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to the part of the description of the method embodiment.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、和流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程信息处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程信息处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a general-purpose computer, special purpose computer, embedded processor or processor of other programmable information processing terminal equipment to produce a machine, so that the instructions executed by the computer or other programmable information processing terminal equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程信息处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable information processing terminal to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the The instruction means implements the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程信息处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable information processing terminal equipment, so that a series of operation steps are executed on the computer or other programmable terminal equipment to produce computer-implemented processing, so that the computer or other programmable terminal equipment The instructions executed above provide steps for implementing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
尽管已描述了本申请实施例的一些实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括这些实施例和落入本申请实施例范围的所有变更和修改。While a few examples of the embodiments of the present application have been described, additional changes and modifications can be made to these examples by those skilled in the art once the basic inventive concept is understood. Therefore, the appended claims are intended to be construed to include these embodiments and all changes and modifications that fall within the scope of the embodiments of the application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or terminal equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.
以上对本申请所提供的信息处理方法及装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The information processing method and device provided by this application have been introduced in detail above. In this paper, specific examples have been used to illustrate the principle and implementation of this application. The description of the above embodiments is only used to help understand the method and implementation of this application. Its core idea; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation and application scope. limit.

Claims (16)

  1. 一种信息处理方法,应用于服务端,所述方法包括:An information processing method applied to a server, the method comprising:
    在租户需要借助服务端中提供的基础服务组件生成服务模型的情况下,获取在历史过程中在服务端中真实出现过的多个组件调用链路,多个组件调用链路是服务端在历史过程中处理客户的真实的线上数据的过程中形成的;In the case that the tenant needs to generate a service model with the help of the basic service components provided in the server, obtain the call links of multiple components that actually appeared in the server in the historical process. Formed during the process of processing the real online data of customers;
    将多个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合;Clustering similar component call links in multiple component call links to obtain at least one set of component call links;
    在各个组件调用链路集合中,分别选择适用于租户的至少一个组件调用链路;In each set of component invocation links, select at least one component invocation link applicable to the tenant;
    向租户提供选择的组件调用链路,以使租户至少借助提供的组件调用链路生成服务模型。The selected component invocation link is provided to the tenant, so that the tenant at least generates a service model by means of the provided component invocation link.
  2. 根据权利要求1所述的方法,其中,所述在各个组件调用链路集合中,分别选择适用于租户的至少一个组件调用链路,包括:The method according to claim 1, wherein said selecting at least one component invocation link applicable to the tenant in each component invocation link set includes:
    获取组件调用链路集合中的各个组件调用链路在服务端中分别真实出现过的次数和/或各个组件调用链路中分别包括的基础服务组件的数量;Obtain the number of actual occurrences of each component call link in the component call link set in the server and/or the number of basic service components included in each component call link;
    根据各个组件调用链路在服务端中分别真实出现过的次数和/或各个组件调用链路中分别包括的基础服务组件的数量,在各个组件调用链路集合中分别选择适用于租户的至少一个组件调用链路。According to the number of actual occurrences of each component call link in the server and/or the number of basic service components included in each component call link, select at least one applicable to the tenant in each component call link set Component call link.
  3. 根据权利要求2所述的方法,其中,所述根据各个组件调用链路在服务端中分别真实出现过的次数和/或各个组件调用链路中分别包括的基础服务组件的数量,在各个组件调用链路集合中分别选择适用于租户的至少一个组件调用链路,包括:The method according to claim 2, wherein, according to the number of actual occurrences of each component call link in the server and/or the number of basic service components included in each component call link, in each component Select at least one component invocation link applicable to the tenant in the invocation link set, including:
    在组件调用链路集合中,按照在服务端中分别真实出现过的次数由高至低的顺序,选择至少一个组件调用链路;In the set of component invocation links, select at least one component invocation link in descending order of the number of actual occurrences in the server;
    或者,or,
    在组件调用链路集合中,按照包括的基础服务组件的数量由高至低的顺序,选择至少一个组件调用链路;In the set of component call links, select at least one component call link in descending order of the number of basic service components included;
    或者,or,
    对于组件调用链路集合中的每一个组件调用链路,根据所述组件调用链路在服务端中分别真实出现过的次数以及所述组件调用链路中包括的基础服务组件的数量,获取所述组件调用链路的提供分值,在组件调用链路集合中,按照提供分值由高至低的顺序,选择至少一个组件调用链路。For each component call link in the component call link set, according to the number of times the component call link has actually appeared in the server and the number of basic service components included in the component call link, obtain the The provided score of the above-mentioned component call link, in the component call link set, select at least one component call link according to the order of the provided score from high to low.
  4. 根据权利要求1所述的方法,其中,所述将多个组件调用链路中的相似的组件调用链路聚类,得到至少一个组件调用链路集合,包括:The method according to claim 1, wherein the clustering of similar component call links in multiple component call links to obtain at least one set of component call links includes:
    分别获取多个组件调用链路中的每两个组件调用链路之间的链路相似度;Respectively obtain the link similarity between every two component call links in the multiple component call links;
    将多个组件调用链路中的链路相似度大于预设相似度的组件调用链路聚合为一个组件调用链路集合。Aggregating component call links whose link similarity is greater than a preset similarity among multiple component call links is aggregated into a set of component call links.
  5. 根据权利要求4所述的方法,其中,所述分别获取多个组件调用链路中的每两个组件调用链路之间的链路相似度,包括:The method according to claim 4, wherein said respectively obtaining the link similarity between every two component call links in the plurality of component call links comprises:
    分别获取多个组件调用链路中的各个组件调用链路的字符串形式的链路信息,字符串 形式的链路信息中包括:组件调用链路中包括的基础服务组件的字符串形式的组件标识以及组件调用链路中包括的基础服务组件之间的依赖关系;Obtain the link information of each component call link in the string form of multiple component call links respectively, the link information in the string form includes: the component in the string form of the basic service component included in the component call link Identify and depend on the basic service components included in the component call chain;
    根据多个组件调用链路中的各个组件调用链路的字符串形式的链路信息,获取多个组件调用链路中的每两个组件调用链路之间的链路距离;Obtain the link distance between every two component call links in the multiple component call links according to the link information in the form of a character string of each component call link in the multiple component call links;
    根据多个组件调用链路中的每两个组件调用链路之间的链路距离,分别获取多个组件调用链路中的每两个组件调用链路之间的链路相似度。According to the link distance between every two component calling links in the multiple component calling links, the link similarity between every two component calling links in the multiple component calling links is acquired respectively.
  6. 根据权利要求5所述的方法,其中,所述根据多个组件调用链路中的各个组件调用链路的字符串形式的链路信息,获取多个组件调用链路中的每两个组件调用链路之间的链路距离,包括:The method according to claim 5, wherein, according to the link information in the form of a character string of each component call link in the multiple component call links, every two component call links in the multiple component call links are acquired Link distance between links, including:
    将多个组件调用链路中的各个组件调用链路的字符串形式的链路信息分别转换为向量形式的链路信息;Converting the link information in the string form of each component call link in the plurality of component call links into the link information in the vector form;
    根据多个组件调用链路中的每两个组件调用链路的向量形式的链路信息,获取多个组件调用链路中的每两个组件调用链路之间的链路距离。A link distance between every two component call links in the multiple component call links is acquired according to the vector form link information of every two component call links in the multiple component call links.
  7. 根据权利要求6所述的方法,其中,所述将多个组件调用链路中的各个组件调用链路的字符串形式的链路信息分别转换为向量形式的链路信息,包括:The method according to claim 6, wherein said converting the link information in character string form of each component call link in the plurality of component call links into link information in vector form respectively comprises:
    对于多个组件调用链路的任意一个组件调用链路,对所述组件调用链路的字符串形式的链路信息中的、所述组件调用链路中的各个基础服务组件的字符串形式的组件标识分别编码,分别得到所述组件调用链路中包括的各个基础服务组件的向量形式的组件标识;For any component call link of multiple component call links, in the link information in the string form of the component call link, in the string form of each basic service component in the component call link The component identifiers are coded separately to obtain the component identifiers in the form of vectors of each basic service component included in the component call link;
    使用所述组件调用链路中包括的各个基础服务组件的向量形式的组件标识,分别替换所述组件调用链路的字符串形式的链路信息中对应的字符串形式的组件标识,得到所述组件调用链路的中间链路信息;Use the component identifiers in vector form of each basic service component included in the component invocation link to replace the corresponding component identifiers in the form of strings in the link information in the form of character strings in the component invocation link, to obtain the The intermediate link information of the component call link;
    对所述组件调用链路的中间链路中的各个基础服务组件的向量形式的组件标识归一化,得到所述组件调用链路的向量形式的链路信息。The vector-form component identifiers of each basic service component in the intermediate link of the component invocation link are normalized to obtain the vector-form link information of the component invocation link.
  8. 根据权利要求1所述的方法,其中,所述获取在历史过程中在服务端中真实出现过的多个组件调用链路,包括:The method according to claim 1, wherein said obtaining a plurality of component call links that actually appeared in the server during the historical process comprises:
    获取服务端中已配置的多个基础服务组件中的至少部分基础服务组件的日志文件,日志文件中记录有:基础服务组件在历史过程中每一次调用时所涉及的组件调用链路的链路标识,以及,在每一次调用时与其所涉及的组件调用链路中的其他基础服务组件之间依赖关系;Obtain the log files of at least some of the basic service components configured in the server. The log files record: the link of the component call link involved in each call of the basic service component in the historical process Identify, and the dependencies between other basic service components in the component call chain involved in each call;
    根据至少部分基础服务组件的日志文件,构建在历史过程中在服务端中真实出现过的多个组件调用链路。Based on the log files of at least some of the basic service components, construct call links of multiple components that actually appeared in the server in the historical process.
  9. 根据权利要求8所述的方法,其中,所述根据至少部分基础服务组件的日志文件,构建在历史过程中在服务端中真实出现过的多个组件调用链路,包括:The method according to claim 8, wherein, according to at least part of the log files of the basic service components, constructing a plurality of component call links that actually appeared in the server during the historical process includes:
    在多个基础服务组件中,筛选日志文件中记录的链路标识相同的基础服务组件;Among multiple basic service components, the link recorded in the filter log file identifies the same basic service component;
    根据筛选的基础服务组件的日志文件中记录的、筛选的基础服务组件之间依赖关系,将筛选的基础服务组件组合为一个组件调用链路。According to the dependency relationship between the filtered basic service components recorded in the log file of the filtered basic service components, the filtered basic service components are combined into a component call link.
  10. 根据权利要求9所述的方法,其中,所述方法还包括:The method according to claim 9, wherein the method further comprises:
    确定组合得到的组件调用链路中是否存在相同的至少两个子组件调用链路且相同的 至少两个子组件调用链路均被同一个基础服务组件依赖;Determine whether there are at least two identical subcomponent invocation links in the combined component invocation links and the same at least two subcomponent invocation links are all dependent on the same basic service component;
    在组合得到的组件调用链路中存在相同的两个子组件调用链路且相同的至少两个子组件调用链路均被同一个基础服务组件依赖的情况下,在组合得到的组件调用链路中,删除相同的至少两个子组件调用链路中的部分子组件调用链路,以使组合得到的组件调用链路中保留至少两个子组件调用链路中的一个子组件调用链路。In the case where the same two sub-component call links exist in the combined component call link and the same at least two sub-component call links are all dependent on the same basic service component, in the combined component call link, Part of the same at least two subcomponent calling links is deleted, so that one of the at least two subcomponent calling links remains in the combined component calling links.
  11. 根据权利要求9所述的方法,其中,所述方法还包括:The method according to claim 9, wherein the method further comprises:
    确定链路标识相同的各个基础服务组件在其涉及的同一组件调用链路中是否最终均调用成功;Determine whether each basic service component with the same link ID is successfully called in the same component call link involved in it;
    在链路标识相同的各个基础服务组件在其涉及的同一组件调用链路中最终均调用成功的情况下,再执行根据筛选的基础服务组件的日志文件中记录的、筛选的基础服务组件之间依赖关系,将筛选的基础服务组件组合为一个组件调用链路的步骤。In the case that each basic service component with the same link ID is finally called successfully in the same component call link involved in it, and then execute the filtered basic service component according to the log file of the filtered basic service component. Dependency, the step of combining the filtered basic service components into a component call chain.
  12. 根据权利要求8所述的方法,其中,所述获取服务端中已配置的多个基础服务组件中的至少部分基础服务组件的日志文件,包括:The method according to claim 8, wherein said acquiring the log files of at least some of the basic service components configured in the server comprises:
    获取租户涉及的服务场景;Obtain the service scenarios involved in the tenant;
    在服务端中已配置的多个基础服务组件中,确定涉及所述服务场景的基础服务组件;Among the multiple basic service components configured in the server, determine the basic service components involved in the service scenario;
    获取涉及所述服务场景的基础服务组件的日志文件。Obtain log files of basic service components related to the service scenario.
  13. 根据权利要求8所述的方法,其中,所述获取服务端中已配置的多个基础服务组件中的至少部分基础服务组件的日志文件,包括:The method according to claim 8, wherein said acquiring the log files of at least some of the basic service components configured in the server comprises:
    获取服务端中已配置的多个基础服务组件的各个基础服务组件的在历史过程中的状态指标;Obtain the status indicators of each basic service component in the historical process of multiple basic service components configured in the server;
    在服务端中已配置的多个基础服务组件中,确定状态指标符合预置要求的基础服务组件;Among the multiple basic service components configured in the server, determine the basic service components whose status indicators meet the preset requirements;
    获取确定的基础服务组件的日志文件。Get log files for identified underlying service components.
  14. 根据权利要求13所述的方法,其中,所述获取服务端中已配置的多个基础服务组件的各个基础服务组件的在历史过程中的状态指标,包括:The method according to claim 13, wherein said obtaining status indicators of each basic service component in the historical process of the multiple basic service components configured in the server comprises:
    对于多个基础服务组件中的任意一个基础服务组件,获取在历史过程中所述基础服务组件出现目标状态的第一出现次数,获取在历史过程中所述基础服务组件直接依赖的基础服务组件出现目标状态的第二出现次数;For any basic service component among multiple basic service components, obtain the first occurrence number of the target state of the basic service component in the historical process, and obtain the occurrence of the basic service component that the basic service component directly depends on in the historical process the second occurrence of the target state;
    根据第一出现次数以及第二出现次数获取所述基础服务组件在历史过程中的状态指标。The state indicators of the basic service components in the historical process are acquired according to the first occurrence times and the second occurrence times.
  15. 一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如权利要求1至14中任一项所述的方法的步骤。An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor implements the program described in any one of claims 1 to 14 when executing the program steps of the method.
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至14中任一项所述的方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.
PCT/CN2022/134793 2021-12-01 2022-11-28 Information processing method and apparatus WO2023098634A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111451539.5A CN113869989B (en) 2021-12-01 2021-12-01 Information processing method and device
CN202111451539.5 2021-12-01

Publications (1)

Publication Number Publication Date
WO2023098634A1 true WO2023098634A1 (en) 2023-06-08

Family

ID=78985532

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/134793 WO2023098634A1 (en) 2021-12-01 2022-11-28 Information processing method and apparatus

Country Status (2)

Country Link
CN (1) CN113869989B (en)
WO (1) WO2023098634A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113869989B (en) * 2021-12-01 2022-05-06 阿里云计算有限公司 Information processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657192A (en) * 2015-11-03 2017-05-10 阿里巴巴集团控股有限公司 Method used for presenting service calling information and equipment thereof
CN111506411A (en) * 2020-04-21 2020-08-07 北京思特奇信息技术股份有限公司 Multi-tenant service management method and system
US11005732B1 (en) * 2017-08-23 2021-05-11 F5 Networks, Inc. Methods for improved service chain classification and management and devices thereof
CN113052700A (en) * 2021-03-26 2021-06-29 深圳前海微众银行股份有限公司 Method and device for determining micro-service call chain
CN113869989A (en) * 2021-12-01 2021-12-31 阿里云计算有限公司 Information processing method and device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9460169B2 (en) * 2011-01-12 2016-10-04 International Business Machines Corporation Multi-tenant audit awareness in support of cloud environments
US9672355B2 (en) * 2011-09-16 2017-06-06 Veracode, Inc. Automated behavioral and static analysis using an instrumented sandbox and machine learning classification for mobile security
US20140149186A1 (en) * 2012-11-29 2014-05-29 David Bernard Flaxer Method and system of using artifacts to identify elements of a component business model
CN105323282B (en) * 2014-07-28 2018-12-04 神州数码信息系统有限公司 A kind of enterprise's application deployment and management system towards multi-tenant
US10353756B2 (en) * 2016-10-11 2019-07-16 Oracle International Corporation Cluster-based processing of unstructured log messages
US20190026650A1 (en) * 2017-07-24 2019-01-24 International Business Machines Corporation Bootstrapping multiple varieties of ground truth for a cognitive system
CN109960839B (en) * 2017-12-26 2023-04-28 中国移动通信集团浙江有限公司 Service link discovery method and system of service support system based on machine learning
CN109961204B (en) * 2017-12-26 2021-04-23 中国移动通信集团浙江有限公司 Service quality analysis method and system under micro-service architecture
US11055081B2 (en) * 2018-09-17 2021-07-06 International Business Machines Corporation Recommending software project dependency upgrades
US10833951B2 (en) * 2018-11-06 2020-11-10 Telefonaktiebolaget Lm Ericsson (Publ) System and method for providing intelligent diagnostic support for cloud-based infrastructure
US11695654B2 (en) * 2019-02-27 2023-07-04 Hewlett Packard Enterprise Development Lp High performance compute infrastructure as a service
US11593084B2 (en) * 2019-10-31 2023-02-28 Dell Products L.P. Code development for deployment on a cloud platform
CN111459766B (en) * 2019-11-14 2024-01-12 国网浙江省电力有限公司信息通信分公司 Micro-service system-oriented call chain tracking and analyzing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657192A (en) * 2015-11-03 2017-05-10 阿里巴巴集团控股有限公司 Method used for presenting service calling information and equipment thereof
US11005732B1 (en) * 2017-08-23 2021-05-11 F5 Networks, Inc. Methods for improved service chain classification and management and devices thereof
CN111506411A (en) * 2020-04-21 2020-08-07 北京思特奇信息技术股份有限公司 Multi-tenant service management method and system
CN113052700A (en) * 2021-03-26 2021-06-29 深圳前海微众银行股份有限公司 Method and device for determining micro-service call chain
CN113869989A (en) * 2021-12-01 2021-12-31 阿里云计算有限公司 Information processing method and device

Also Published As

Publication number Publication date
CN113869989A (en) 2021-12-31
CN113869989B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
TWI743458B (en) Method, device and system for parallel execution of blockchain transactions
US8356310B2 (en) Executing business logic extensions on a client computing system
EP3210134B1 (en) Composite partition functions
US9781020B2 (en) Deploying applications in a networked computing environment
US10776740B2 (en) Detecting potential root causes of data quality issues using data lineage graphs
CN105518673B (en) Managing data ingestion
WO2019075774A1 (en) Device parameter configuration method and apparatus, computer device and storage medium
US10656934B2 (en) Efficient software testing
US20160026698A1 (en) Enabling business process continuity on periodically replicated data
US10630399B2 (en) Testing distributed applications that have an established exchange in an advanced message queuing protocol (AMQP) message broker
WO2017032170A1 (en) Method and apparatus for importing mirror image file
WO2023098634A1 (en) Information processing method and apparatus
TWI686703B (en) Method and device for data storage and business processing
WO2023045552A1 (en) Service deployment method, service deployment system, electronic device, and storage medium
WO2022267769A1 (en) Method and apparatus for generating graph data
CN110008431B (en) Page component construction method and device, page generation equipment and readable storage medium
US8776098B2 (en) Exchanging data using data transformation
CN113515271B (en) Service code generation method and device, electronic equipment and readable storage medium
US20170161359A1 (en) Pattern-driven data generator
US10659326B2 (en) Cloud computing network inspection techniques
US20240061732A1 (en) Industry opinionated api managed service
US20240119028A1 (en) Request handling in a multi-protocol cloud environment
US20230153313A1 (en) File ingestion in a multi-tenant cloud environment
CN114968532A (en) Task execution method and device, electronic equipment and computer readable storage medium
CN116739805A (en) Data processing method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22900438

Country of ref document: EP

Kind code of ref document: A1