Microservice tool evaluation method and system
By combining user reviews, developer published content and tool performance parameters, the interactive information evaluation model is used to evaluate microservice tools, which solves the inconsistency and incompleteness of existing evaluation methods and provides more accurate evaluation results.
Patent Information
- Application Number
- CN202311591104.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-11-27
AI Technical Summary
Existing microservice tool evaluation methods suffer from the problems of inconsistent subjective evaluation and incomplete objective evaluation. Subjective evaluation is easily affected by the testing environment and personal bias. Objective evaluation lacks the support of objective evaluation data of the platform for tools, resulting in unreliable and unreliable evaluation results. Not comprehensive enough.
By obtaining user reviews, evaluation information of developer-published content, and tool performance parameters, combined with information quality evaluation, interaction efficiency evaluation, and tool performance parameters, a preset interactive information evaluation model is used to perform text feature extraction and sentiment analysis to obtain an interaction efficiency evaluation. , and perform a weighted sum to recommend the highest-rated microservice tools.
It solves the problem of inconsistency in subjective evaluation and incomplete objective evaluation, provides more comprehensive evaluation results, and gives users more accurate microservice tool recommendations.
Smart Images

Figure CN117493210B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence technology, and specifically relates to a microservice tool evaluation method, system, electronic device and storage medium. Background Art
[0002] Microservices is an architectural style. A large and complex software application consists of one or more microservices. Each microservice in the system can be deployed independently, and each microservice is loosely coupled. Each microservice focuses only on completing one task and completing it well. In all cases, each task represents a small business capability. In other words, microservices is an architectural style that splits an application into small, independent and autonomous service units. Each service unit focuses on a specific business function and communicates through APIs. This architecture helps improve the scalability, maintainability and flexibility of the application, enabling the architecture to be developed, deployed and managed more quickly.
[0003] With the widespread application of microservice architecture in enterprises, dozens of microservice tools may even be needed in complex business scenarios. How users can select suitable microservice tools has become an urgent problem to be solved. Existing methods for evaluating microservice tools include subjective evaluation methods based on user experience and objective evaluation methods that convert the characteristics of microservice tools into specific values for analysis and comparison through measurement and statistics. However, there are the following disadvantages:
[0004] 1) Subjective evaluation is easily affected by the test environment, personal background, and subjective bias. Different evaluators, at different times and locations, may have different evaluation criteria and results, leading to inconsistency and unreliability in the evaluation. 2) Existing objective evaluation methods focus on using user evaluation data on tools, but lack platform support for objective evaluation data of microservice tools and developer resource data, resulting in incomplete evaluation results.
[0005] Therefore, an efficient microservice tool evaluation method is urgently needed. Summary of the invention
[0006] The present invention provides a microservice tool evaluation method, system, electronic device and storage medium to overcome at least one technical problem existing in the prior art.
[0007] To achieve the above object, the present invention provides a microservice tool evaluation method, the method comprising:
[0008] Obtain evaluation information based on user evaluation, evaluation information based on developer-published content, and evaluation information based on tool performance parameters for each microservice tool; wherein the evaluation information based on developer-published content is obtained through information quality evaluation and interactive effectiveness evaluation; the method for obtaining interactive effectiveness evaluation includes preprocessing the obtained interactive information and extracting text features; using a preset interactive information evaluation model to determine interrogative sentences on the extracted text features, and obtaining evaluations of interactive information containing interrogative sentences and evaluations that do not contain interrogative sentences; determining the robot reply type or manual reply type for text features determined as interrogative sentences, and obtaining evaluations containing robot reply types and evaluations containing manual reply types; performing sentiment analysis on text features determined as manual reply types, and obtaining sentiment value evaluations of interactive information; obtaining interactive effectiveness evaluations based on evaluations of interactive information containing interrogative sentences, evaluations that do not contain interrogative sentences, evaluations containing robot reply types, evaluations containing manual reply types, and sentiment value evaluations;
[0009] Obtain evaluations of each microservice tool based on evaluation information based on user evaluations, evaluation information based on developer published content, and evaluation information based on tool performance parameters;
[0010] Based on the evaluation of each microservice tool, determine and recommend the microservice tool with the highest evaluation.
[0011] Further, preferably, the method for obtaining evaluation information based on tool performance parameters includes:
[0012] According to the obtained information of tool performance parameters of the microservice tool, the response time, throughput, load capacity and concurrency performance evaluation corresponding to the microservice tool are obtained;
[0013] The response time, throughput, load capacity, and concurrency performance evaluations of the obtained microservice tools are normalized respectively;
[0014] The response time, throughput, load capacity and concurrency performance evaluation corresponding to the normalized microservice tool are used to obtain evaluation information based on tool performance parameters.
[0015] Further, preferably, the load capacity corresponding to the obtained microservice tool is normalized and obtained in the following manner:
[0016]
[0017] Where x is the original data of load capacity; x′ is the data after normalization of load capacity; T capacity_min is the minimum value of the load capacity data corresponding to all microservice tools; T capacity_maxIt is the maximum value of the load capacity data corresponding to all microservice tools.
[0018] Further, preferably, the information quality evaluation is obtained through information completeness evaluation, information clarity evaluation and information availability evaluation.
[0019] Further, preferably, the integrity evaluation indicators include tool name and description, supported programming languages and platforms, functional features, documentation, tutorials and usage examples;
[0020] Clarity evaluation indicators include,titles, paragraphs, subsections, numbering, charts and images;
[0021] Availability evaluation indicators include online publication, direct download links, multi-channel access, search functionality and compatibility.
[0022] Further, preferably, the method for obtaining the information quality evaluation includes:
[0023] Clean and pre-process the developer-published content information corresponding to the acquired microservice tools;
[0024] Based on the completeness evaluation index, the completeness evaluation of the pre-processed developer content information is obtained; based on the availability evaluation index of the developer content information, the availability evaluation of the developer content information is obtained; based on the clarity evaluation index, the clarity evaluation of the developer content information is obtained;
[0025] The information quality evaluation is obtained based on the completeness evaluation, accessibility evaluation and clarity evaluation.
[0026] Further, preferably, the interactive information evaluation model is obtained after training with a question data set; wherein the question data set is obtained through a finite state automaton based on a question form feature set; the question form feature set includes modal particle features, interrogative pronoun features, interrogative format features, modal adverb features and supplementary features.
[0027] In order to solve the above problems, the present invention also provides a microservice tool evaluation system, the system comprising:
[0028] An information acquisition unit is used to acquire evaluation information based on user evaluation, evaluation information based on developer-published content, and evaluation information based on tool performance parameters of each microservice tool; wherein the evaluation information based on developer-published content is acquired through information quality evaluation and interactive effectiveness evaluation; the acquisition method of interactive effectiveness evaluation includes preprocessing the acquired interactive information and extracting text features; using a preset interactive information evaluation model to perform interrogative sentence determination on the extracted text features, and acquiring evaluations of interactive information containing interrogative sentences and evaluations that do not contain interrogative sentences; determining the robot reply type or the manual reply type for text features determined as interrogative sentences, and acquiring evaluations containing robot reply types and evaluations containing manual reply types; performing sentiment analysis on text features determined as manual reply types, and acquiring sentiment value evaluations of interactive information; acquiring interactive effectiveness evaluations based on evaluations of interactive information containing interrogative sentences, evaluations that do not contain interrogative sentences, evaluations containing robot reply types, evaluations containing manual reply types, and sentiment value evaluations;
[0029] An evaluation acquisition unit, used to acquire evaluations of each microservice tool based on evaluation information based on user evaluations, evaluation information based on developer published content, and evaluation information based on tool performance parameters of each microservice tool;
[0030] The recommendation unit is used to determine and recommend the microservice tool with the highest evaluation based on the evaluation of each microservice tool.
[0031] In order to solve the above problems, the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps in the above-mentioned microservice tool evaluation method.
[0032] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is executed by a processor in an electronic device to implement the above-mentioned microservice tool evaluation method.
[0033] The microservice tool evaluation method, system, electronic device, and storage medium provided by the present invention obtain information of three major dimensions of each microservice tool, namely, evaluation information based on user evaluation, evaluation information based on developer published content, and evaluation information based on tool performance parameters; and have the following beneficial effects:
[0034] 1) By combining subjective evaluation with objective evaluation, it solves the problem that subjective evaluation is easily affected by the test environment, personal background and subjective bias. Different evaluators, at different times and places may have different evaluation criteria and results, leading to the problem of inconsistency and unreliability of evaluation.
[0035] 2) Through the two dimensions of evaluation information based on developer-published content and evaluation information based on tool performance parameters, the existing objective evaluation methods focus on using user evaluation data on tools, but lack the platform's support for objective evaluation data on microservice tools and developer resource data, resulting in incomplete evaluation results.
[0036] 3) Obtain more comprehensive evaluation results, and then provide users with more accurate microservice tool recommendation results. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic diagram of a process flow of a microservice tool evaluation method provided by an embodiment of the present invention;
[0039] Figure 2 A schematic diagram of the principle of a microservice tool evaluation method provided by an embodiment of the present invention;
[0040] Figure 3 A schematic diagram of a module of a microservice tool evaluation system provided by an embodiment of the present invention;
[0041] Figure 4 A schematic diagram of the internal structure of an electronic device for implementing a microservice tool evaluation method provided by an embodiment of the present invention;
[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0044] Figure 1 and Figure 2 This paper gives an overall description of the microservice tool evaluation method. Figure 1A flowchart of a microservice tool evaluation method provided by an embodiment of the present invention, the method may be executed by a system, and the system may be implemented by software and / or hardware; Figure 2 A schematic diagram of the principle of a microservice tool evaluation method provided by an embodiment of the present invention.
[0045] like Figure 1 As shown, in this embodiment, the microservice tool evaluation method includes steps S10 to S30.
[0046] S10, obtaining evaluation information based on user evaluation, evaluation information based on developer published content, and evaluation information based on tool performance parameters of each microservice tool; wherein the evaluation information based on developer published content is obtained through information quality evaluation and interactive effectiveness evaluation; the interactive effectiveness evaluation acquisition method includes preprocessing the obtained interactive information and extracting text features; using a preset interactive information evaluation model to determine the extracted text features for question sentences, and obtaining evaluations of interactive information containing question sentences and evaluations without question sentences; determining the robot reply type or manual reply type for text features determined as question sentences, and obtaining evaluations containing robot reply types and evaluations containing manual reply types; performing sentiment analysis on text features determined as manual reply types, and obtaining sentiment value evaluations of the interactive information; obtaining interactive effectiveness evaluations based on the interactive information evaluations containing question sentences, evaluations without question sentences, evaluations containing robot reply types, evaluations containing manual reply types, and sentiment value evaluations. S20, obtaining evaluations of each microservice tool according to the evaluation information based on user evaluation, evaluation information based on developer published content, and evaluation information based on tool performance parameters. S30. Based on the evaluation of each microservice tool, determine and recommend the microservice tool with the highest evaluation.
[0047] like Figure 2 As shown, the evaluation system is divided into three parts: evaluation information based on user evaluation, evaluation information based on developer published content, and evaluation information based on tool performance parameters. Specifically, it includes steps S11 to S13.
[0048] S11. First, we need to obtain evaluation information based on user evaluation. The evaluation information based on user evaluation includes two parts: one is the star rating data of the user on the microservice tool; the other is the comment text of the user on the microservice tool.
[0049] For the star rating data of users on microservice tools, it is necessary to preprocess the star rating data of users on the tools: convert the star rating of users on the tools into the star rating value U of users on the microservice tools star The specific implementation method can be that one star is mapped to one point, five stars are mapped to five points, etc.
[0050] In another part, the user preprocesses the review text of the microservice tool and extracts text features, and then performs sentiment scoring.
[0051] It should be noted that the text of various evaluation information of each microservice tool is obtained and preprocessed. Specifically, the text can be cleaned, which can include removing stop words (such as "de", "le", etc.); removing meaningless punctuation marks; splitting the text into individual words; dealing with synonyms and polysemous words; removing low-frequency and high-frequency words. It can be screened and labeled manually, or a regularization function can be introduced to screen the text. The text preprocessing described in the present invention can be implemented by the above methods. For example, in the process of obtaining the interactive efficiency evaluation, the preprocessing of the obtained interactive information can also be implemented by the above methods. In the link of preprocessing the review text of the microservice tool by the user, duplicate reviews and reviews of irrelevant tools in the user's reviews can be removed, and their star rating data, etc. can be deleted at the same time.
[0052] Text feature extraction is performed on the preprocessed review text of the microservice tool by the user. The specific steps include establishing a bag-of-words model, counting the number of times each word appears in the text to obtain the vector representation of the word, or analyzing the text content, refining the main content of the text, and converting it into a vector representation, etc. The specific implementation method can be the Word2Vec model or the Glove model. The text preprocessing described in the present invention can be implemented by the above methods. For example, in the process of obtaining the interactive efficiency evaluation, text feature extraction is performed on the preprocessed interactive information, and the above methods can also be used.
[0053] Sentiment scoring is performed based on the text features of the review text of the microservice tool by the user to obtain the review text value U of the microservice tool by the user. comment . The specific implementation method is to establish a review sentiment analysis dataset: crawl the review text from software download websites, such as the app store on Apple mobile phones, and perform subjective evaluation. It is recommended that each labeled review statement has no less than 3,000 pieces. The function of the text sentiment intensity analysis module can be implemented by an NLP model (for example, a Chinese sentiment analysis library based on BERT).
[0054] Based on the following formula, based on the star rating value U of the microservice tool by the user star and the review text value U of the microservice tool by the user comment Obtain the evaluation information U based on the user evaluation score .
[0055] U score =λ 1 U star +λ 2 U comment
[0056] Among them, λ1 and λ2 are the weighted values of the user's star rating and comment sentiment score for the microservice tool respectively; λ1+λ2=1.
[0057] S12. Obtain evaluation information based on the content published by the developer.
[0058] The evaluation information based on the content published by the developer is obtained through information quality evaluation and interaction effectiveness evaluation.
[0059] The information quality evaluation D info The methods for obtaining include:
[0060] S1211. Clean and pre-process the developer-published content information corresponding to the acquired microservice tool.
[0061] S1212. Based on the completeness evaluation index, obtain the completeness evaluation of the pre-processed developer-published content information; the completeness evaluation index includes the tool name and description, supported programming languages and platforms, functional features, documentation, tutorials and usage examples. Based on the availability evaluation index of the developer-published content information, obtain the availability evaluation of the developer-published content information; the availability evaluation index includes online publishing, direct download link, multi-channel access, search function and compatibility. Based on the clarity evaluation index, obtain the clarity evaluation of the developer-published content information; the clarity evaluation index includes title, paragraph, subsection, number, chart and image.
[0062] Specifically, the integrity evaluation evaluates the integrity of the necessary information contained in the information, such as whether all necessary topics or key elements are covered, to obtain an integrity score. Exemplary, integrity score range: Map the integrity score to a standardized range, such as between 0 and 5, to indicate the degree of data integrity, where 5 indicates the highest integrity and 0 indicates the lowest integrity. For the integrity evaluation indicators, the following are exemplary explanations: Tool name and description: Each developer tool should include a brief description of the tool's name, purpose, and main functions; Supported programming languages and platforms: A detailed list of programming languages, operating systems, and development platforms for which the tool is applicable. Features: A detailed list of the various functions of the tool, such as code editing, debugging, testing, performance optimization, etc. Documentation and tutorials: Provide links to the tool's official documentation as well as some introductory tutorials and learning resources. Usage examples: Provide some actual usage examples to demonstrate how the tool solves development problems.
[0063] Clarity evaluation is to evaluate whether the structure and organization of information is clear and easy to understand, such as the use of titles, paragraphs, subsections, numbers, etc., to obtain a clarity score. Exemplary, clarity score range: map the clarity score to a standardized range, such as between 0 and 5, to indicate the clarity of the document, where 5 indicates the highest clarity and 0 indicates the lowest clarity. For the completeness evaluation indicators, the following are exemplary descriptions: Title: Use clear and concise titles to summarize the entire document or each major section, and give readers a clear navigation guide. Paragraph: Organize relevant information into paragraphs, and leave appropriate spacing between paragraphs to improve readability and comprehension. Subsection: Where necessary, use subsection titles to further subdivide the main section, making it easier for readers to find what they are interested in. Numbering: Use numbers to effectively convey the order and hierarchy of information when listing or describing steps, guidelines, or important points. Charts and images: Use clear and easy-to-understand charts and images to support text descriptions to help readers better understand and apply information.
[0064] Availability evaluation: evaluates the ease with which users can obtain information, such as the online availability of information, download speed, etc., to derive an availability score. For example, the availability score range: maps the availability score to a standardized range, such as between 0 and 5, indicating the availability of the document, where 5 indicates the highest availability and 0 indicates the lowest availability. For example, the availability evaluation index, online publishing can be that tool information should be published on an easily accessible website to ensure that developers can easily find detailed information about the tool. Direct download links can be provided to enable users to quickly download the tool without searching or navigating on the website. Multi-channel accessibility can be that tool information should be accessible on different online channels, such as official websites, developer communities, GitHub, etc., to meet the preferences of different users. Search function can be provided on the tool information page, so that users can directly search for keywords to find the content they are interested in. Compatibility can be ensured that the tool information webpage can be displayed and accessed normally on different browsers and devices to ensure consistency in user experience.
[0065] S1213, obtaining the information quality evaluation D according to the integrity evaluation, availability evaluation and clarity evaluation info .
[0066] The interaction effectiveness evaluation D interactive The methods for obtaining include:
[0067] S1221, preprocessing the obtained interactive information and extracting text features;
[0068] S1222. Use the preset interactive information evaluation model to determine whether the extracted text features are interrogative sentences, and obtain the evaluation of the interactive information containing interrogative sentences and the evaluation without interrogative sentences; determine whether the text features determined to be interrogative sentences are of the robot reply type or the human reply type, and obtain the evaluation containing the robot reply type and the evaluation containing the human reply type; perform sentiment analysis on the text features determined to be of the human reply type, and obtain the sentiment value evaluation of the interactive information.
[0069] It should be noted that the interactive information evaluation model is obtained after being trained using a question sentence data set; among them, the question sentence data set is obtained through a finite state automaton based on a question sentence form feature set; the question sentence form feature set includes a modal particle feature, an interrogative pronoun feature, an interrogative format feature, a modal adverb feature, and a supplementary feature.
[0070] Specifically, the question sentence form feature set includes a modal particle feature, an interrogative pronoun feature, an interrogative format feature, a modal adverb feature, and a supplementary feature. In the specific implementation process, the above features can be further divided into a total of 8 features X1 to X8. Specifically, X1 is a modal particle, and the classification criterion is whether there is the modal particle "ne"; X2 is a modal particle, and the classification criterion is whether there are modal particles "ma, me, ma, ba"; X3 is an interrogative pronoun, and the classification criterion is containing what, how, which, where, er, who, what, why, he, hebu, why, why, how, za, ganma; X4 is an interrogative format, and the classification criterion is yes-no question: modal verb plus modal particle; X5 is an interrogative format classification criterion for alternative questions: X or x; X6 is an interrogative format, and the classification criterion is positive-negative question: X not X, X not X, there is no X, is it not, is it not, is it not, is it not, in the end, why, why, why, why, why, why, why, why; X7 is a modal adverb, and the classification criterion is containing jing, qi; X8 is a supplementary feature, and the classification criterion is a supplementary feature containing X3, X5, and X6.
[0071] An exemplary description is as follows: evaluation of interactive information containing interrogative sentences and evaluation without interrogative sentences, for example, if it contains interrogative sentences, the mapping score is 1, otherwise it is 0. For the text features judged as interrogative sentences, the robot reply type or the manual reply type is determined, and the manual answer type is distinguished, that is, the mapping score is 1, otherwise it is 0; the text of the developer's manual reply is sentimentally analyzed using the NLP model to calculate the sentiment value; the sentiment value is mapped to a standardized range of 0 to 5, and linear mapping or other suitable methods can be used. For example, the mapping rules can be set according to the range of sentiment values. Specifically, the determination of the robot reply type or the manual reply type for the text features judged as interrogative sentences is achieved by technical means in the prior art, such as Islam N, Sutradhar D, Noor H, et al. Distinguishing Human Generated Text From ChatGPT Generated Text Using Machine Learning[J].arXivpreprint arXiv:2306.01761,2023.
[0072] S1223. Obtaining interaction effectiveness evaluation D based on interaction information evaluation containing interrogative sentences, evaluation without interrogative sentences, evaluation containing robot reply types, evaluation containing manual reply types, and sentiment value evaluation interactive .
[0073] The evaluation information D based on the developer's published content is obtained by the following formula: score Information quality evaluation info and interactive effectiveness evaluation D interactive Get.
[0074] D score =λ 3 D file +λ 4 D interactive
[0075] Among them, λ 3 and λ 4 are the weighted values of information quality evaluation and interaction effectiveness evaluation respectively; 3 +λ 4 =1.
[0076] S13. Obtaining evaluation information based on tool performance parameters.
[0077] The method for obtaining evaluation information based on tool performance parameters includes:
[0078] S131. According to the obtained tool performance parameter information of the microservice tool, the response time, throughput, load capacity and concurrent performance evaluation corresponding to the microservice tool are obtained. S132. The response time, throughput, load capacity and concurrent performance evaluation corresponding to the obtained microservice tool are respectively normalized.
[0079] Specifically, the response time T time It refers to the time it takes for the system to respond to a request. It is usually the time interval from when a request is sent to when a response is received. A short response time means that the system can respond to requests quickly and provide a better user experience. In the code, you can use a timer or timestamp to measure the time difference between the start and end of a request. Use performance analysis tools or performance monitoring libraries, such as JProfiler, Java Flight Recorder, etc. used by Java applications, to capture and analyze the execution time of methods.
[0080] The response time corresponding to the obtained microservice tool is normalized and obtained in the following way:
[0081]
[0082] Where x is the original response time data; x′ is the normalized response time data; T capacity_min is the minimum value of the response time data corresponding to all microservice tools; T capacity_max It is the maximum value of the response time data corresponding to all microservice tools.
[0083] ThroughputT throughput Refers to the number of requests that the system can handle per unit time. High throughput means that the system has high processing power and concurrency performance and can handle more requests at the same time. You can use load testing tools such as Apache JMeter, Gatling, etc. to simulate concurrent requests and measure the number of requests processed per unit time. In the code, you can record the processing timestamp of each request, and then calculate the number of requests per unit time based on the timestamp.
[0084] The throughput corresponding to the obtained microservice tool is normalized and obtained in the following way:
[0085]
[0086] Where x is the raw throughput data; x′ is the throughput normalized data; T capacity_min is the minimum value of the throughput data corresponding to all microservice tools; T capacity_max It is the maximum value of the throughput data corresponding to all microservice tools.
[0087] Load capacity T capacity Refers to the number of concurrent requests or load level that a system can withstand. The evaluation of load capacity considers the stability and performance of the system under high load to determine the reliability and resilience of the system. You can use load testing tools to observe the performance and resource utilization of the system while gradually increasing concurrent requests to determine the maximum load the system can withstand. Use monitoring tools to monitor the use of system resources, such as CPU utilization, memory usage, etc., to determine the system's load capacity.
[0088] The load capacity corresponding to the obtained microservice tool is normalized and obtained in the following way:
[0089]
[0090] Where x is the original data of load capacity; x′ is the data after normalization of load capacity; T capacity_min is the minimum value of the load capacity data corresponding to all microservice tools; T capacity_max It is the maximum value of the load capacity data corresponding to all microservice tools.
[0091] Concurrency performance concurrency Refers to the performance of a system when it processes multiple requests simultaneously. Evaluating concurrent performance usually involves considerations such as how concurrent requests are handled, resource management, and locking mechanisms to ensure that the system can effectively handle concurrent requests without sacrificing performance. In your code, you can use concurrent programming techniques, such as multithreading or asynchronous processing, to implement the processing of concurrent requests. You can evaluate concurrent performance by setting the number of concurrent threads or the number of concurrent asynchronous tasks and observing the system's performance indicators. Use concurrency testing tools to simulate concurrent requests and measure the system's response time and throughput when processing these requests.
[0092] The concurrency performance corresponding to the obtained microservice tools is normalized and obtained in the following way:
[0093]
[0094] Where x is the original data of concurrent performance; x′ is the normalized data of concurrent performance; T capacity_min is the minimum value of the concurrency performance data corresponding to all microservice tools; T capacity_max It is the maximum value of the concurrency performance data corresponding to all microservice tools.
[0095] S133, using the response time, throughput, load capacity and concurrency performance evaluation corresponding to the normalized microservice tool to obtain evaluation information T based on tool performance parameters score .
[0096] Evaluation information based on tool performance parameters T score Obtained by the following formula:
[0097] T score =λ 5 T time +λ 6 T throughput +λ 7 T capacity +λ 8 T concurrency
[0098] Among them, λ 5 , 6 , 7 and λ 8 are the weighted values of response time, throughput, load capacity and concurrency performance respectively; 5 +λ 6 +λ 7 +λ 8 =1.
[0099] S20: Obtain evaluations of each microservice tool according to the evaluation information based on user evaluations, the evaluation information based on developer-published content, and the evaluation information based on tool performance parameters of each microservice tool.
[0100] According to specific needs, the above aspects are weighted and the evaluation of the microservice tool is the overall score. Specifically, the evaluation information based on user evaluation, the evaluation information based on developer content, and the evaluation information based on tool performance parameters are weighted and summed using the following formula.
[0101] SCORE=λ u U score +λ d D score +λ t T score
[0102] Among them, λ u , d and λ t They are the weighted values of the evaluation information based on user evaluation, the evaluation information based on the content released by developers, and the evaluation information based on tool performance parameters.
[0103] S30. Based on the evaluation of each microservice tool, determine and recommend the microservice tool with the highest evaluation.
[0104] Specifically, each microservice tool is sorted according to its evaluation score, and the microservice tool with the highest score is recommended as the microservice tool with the highest evaluation.
[0105] Corresponding to the above-mentioned microservice tool evaluation method, the present invention also provides a microservice tool evaluation system. Figure 3 As shown, the microservice tool evaluation system 300 provided by the present invention can be installed in an electronic device. According to the functions to be implemented, the microservice tool evaluation system 300 may include an information acquisition unit 310, an evaluation acquisition unit 320, and a recommendation unit 330. The unit of the present invention can also be called a module, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0106] In this embodiment, the functions of each module / unit are as follows:
[0107] The information acquisition unit 310 is used to acquire evaluation information based on user evaluation, evaluation information based on developer-published content, and evaluation information based on tool performance parameters of each microservice tool; wherein the evaluation information based on developer-published content is acquired through information quality evaluation and interactive effectiveness evaluation; the acquisition method of interactive effectiveness evaluation includes preprocessing the acquired interactive information and extracting text features; using a preset interactive information evaluation model to perform interrogative sentence determination on the extracted text features, and acquiring evaluations of interactive information containing interrogative sentences and evaluations that do not contain interrogative sentences; determining the robot reply type or the manual reply type for text features determined as interrogative sentences, and acquiring evaluations containing robot reply types and evaluations containing manual reply types; performing sentiment analysis on text features determined as manual reply types, and acquiring sentiment value evaluations of interactive information; acquiring interactive effectiveness evaluations based on the interactive information evaluations containing interrogative sentences, the evaluations that do not contain interrogative sentences, the evaluations containing robot reply types, the evaluations containing manual reply types, and the sentiment value evaluations;
[0108] An evaluation acquisition unit 320 is used to acquire the evaluation of each microservice tool according to the evaluation information based on user evaluation, the evaluation information based on developer published content, and the evaluation information based on tool performance parameters of each microservice tool;
[0109] The recommendation unit 330 is used to determine and recommend the microservice tool with the highest evaluation based on the evaluation of each microservice tool.
[0110] For the specific implementation of the above-mentioned microservice tool evaluation system, reference may be made to the specific implementation example of the above-mentioned microservice tool evaluation method, and no detailed description will be given here.
[0111] The microservice tool evaluation system 300 of the present invention solves the problem that subjective evaluation is easily affected by the test environment, personal background and subjective bias, and different evaluators, at different times and places may have different evaluation criteria and results, leading to inconsistency and unreliability of evaluation by combining subjective evaluation with objective evaluation. The system solves the problem that the existing objective evaluation method focuses on using the user's evaluation data of the tool to operate, but lacks the platform's support for the objective evaluation data of the microservice tool and the developer's resource data, resulting in incomplete evaluation results by using two dimensions: evaluation information based on the developer's published content and evaluation information based on the tool's performance parameters. A more comprehensive evaluation result is obtained, thereby providing users with more accurate microservice tool recommendation results.
[0112] like Figure 4 As shown, the present invention also provides an electronic device 4 for a microservice tool evaluation method.
[0113] The electronic device 4 may include a processor 40, a memory 41 and a bus, and may also include a computer program stored in the memory 41 and executable on the processor 40, such as a microservice tool evaluation program 42. The memory 41 may also include both an internal storage unit of the microservice tool evaluation system and an external storage device. The memory 41 may be used not only to store application software and various data, such as the code of the microservice tool evaluation program, but also to temporarily store data that has been output or is to be output.
[0114] Among them, the memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 41 can be an internal storage unit of the electronic device 4 in some embodiments, such as a mobile hard disk of the electronic device 4. The memory 41 can also be an external storage device of the electronic device 4 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 4. Further, the memory 41 can also include both an internal storage unit of the electronic device 4 and an external storage device. The memory 41 can not only be used to store application software and various types of data installed in the electronic device 4, such as the code of the microservice tool evaluation program, etc., but also can be used to temporarily store data that has been output or is to be output.
[0115] The processor 40 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 40 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules (such as microservice tool evaluation programs, etc.) stored in the memory 41, and calls data stored in the memory 41 to execute various functions of the electronic device 4 and process data.
[0116] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 41 and at least one processor 40, etc.
[0117] Figure 4 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 4 The structure shown does not constitute a limitation on the electronic device 4, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0118] For example, although not shown, the electronic device 4 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 40 through a power management system, so that the power management system can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device 4 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0119] Furthermore, the electronic device 4 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the electronic device 4 and other electronic devices.
[0120] Optionally, the electronic device 4 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 4 and to display a visual user interface.
[0121] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0122] The microservice tool evaluation program 42 stored in the memory 41 in the electronic device 4 is a combination of multiple instructions. When running in the processor 40, it can achieve: obtaining evaluation information based on user evaluation, evaluation information based on developer-published content, and evaluation information based on tool performance parameters of each microservice tool; wherein the evaluation information based on developer-published content is obtained through information quality evaluation and interactive effectiveness evaluation; the method for obtaining interactive effectiveness evaluation includes preprocessing the obtained interactive information and extracting text features; using a preset interactive information evaluation model to perform question sentence judgment on the extracted text features, and obtaining evaluations of interactive information containing question sentences and evaluations of interactive information not containing question sentences; for interactive information judged as question sentences The robot reply type or the manual reply type is determined based on text features, and evaluations containing robot reply types and evaluations containing manual reply types are obtained; sentiment analysis is performed on text features determined as manual reply types, and sentiment value evaluations of interactive information are obtained; interactive effectiveness evaluations are obtained based on evaluations of interactive information containing interrogative sentences, evaluations without interrogative sentences, evaluations containing robot reply types, evaluations containing manual reply types, and sentiment value evaluations; evaluations of various microservice tools are obtained based on evaluation information based on user evaluations, evaluation information based on developer published content, and evaluation information based on tool performance parameters; based on the evaluations of various microservice tools, the microservice tools with the highest evaluations are determined and recommended.
[0123] Specifically, the specific implementation method of the processor 40 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiment is not repeated here. It should be emphasized that in order to further ensure the privacy and security of the above-mentioned microservice tool evaluation program, the above-mentioned microservice tool evaluation data is stored in the node of the blockchain where the server cluster is located.
[0124] Furthermore, if the module / unit integrated in the electronic device 4 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable medium may include: any entity or system capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0125] The embodiment of the present invention also provides a computer-readable storage medium, which can be non-volatile or volatile, and stores a computer program. When the computer program is executed by a processor, it realizes: obtaining evaluation information based on user evaluation, evaluation information based on developer-published content, and evaluation information based on tool performance parameters of each microservice tool; wherein the evaluation information based on developer-published content is obtained through information quality evaluation and interactive effectiveness evaluation; the method for obtaining the interactive effectiveness evaluation includes preprocessing the obtained interactive information and extracting text features; using a preset interactive information evaluation model to perform question sentence judgment on the extracted text features, and obtaining the interactive information evaluation containing question sentences and the evaluation without question sentences. ; For text features determined as interrogative sentences, determine whether they are robot reply types or manual reply types, and obtain evaluations containing robot reply types and evaluations containing manual reply types; perform sentiment analysis on text features determined as manual reply types, and obtain sentiment value evaluations of interactive information; obtain interactive effectiveness evaluations based on interactive information evaluations containing interrogative sentences, evaluations without interrogative sentences, evaluations containing robot reply types, evaluations containing manual reply types, and sentiment value evaluations; obtain evaluations of each microservice tool based on its evaluation information based on user evaluations, evaluation information based on developer published content, and evaluation information based on tool performance parameters; based on the evaluations of each microservice tool, determine and recommend the microservice tool with the highest evaluation.
[0126] Specifically, the specific implementation method when the computer program is executed by the processor can refer to the description of the relevant steps in the microservice tool evaluation method in the embodiment, which will not be repeated here.
[0127] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0128] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0129] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0130] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0131] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0132] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0133] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or systems stated in a system claim can also be implemented by one unit or system through software or hardware. Secondary words are used to indicate names, but not to indicate any particular order.
[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A microservice tool evaluation method, characterized in that: Methods include: Obtain evaluation information based on user evaluation, evaluation information based on developer published content, and evaluation information based on tool performance parameters of each microservice tool; wherein the evaluation information based on developer published content is obtained through information quality evaluation and interactive effectiveness evaluation; the interactive effectiveness evaluation acquisition method includes preprocessing the obtained interactive information and extracting text features; using a preset interactive information evaluation model to perform question sentence determination on the extracted text features, and obtaining evaluations of interactive information containing question sentences and evaluations that do not contain question sentences; determining the robot reply type or manual reply type for text features determined as question sentences, and obtaining evaluations containing robot reply types and evaluations containing manual reply types; and performing situation determination on text features determined as manual reply types. sentiment analysis, and obtain the sentiment value evaluation of the interactive information; obtain the interactive effectiveness evaluation based on the evaluation of interactive information containing interrogative sentences, the evaluation without interrogative sentences, the evaluation containing robot reply types, the evaluation containing manual reply types and the sentiment value evaluation; wherein the method for obtaining the evaluation information based on the tool performance parameters comprises: obtaining the response time, throughput, load capacity and concurrent performance evaluation corresponding to the microservice tool according to the information of the tool performance parameters obtained for the microservice tool; normalizing the response time, throughput, load capacity and concurrent performance evaluation corresponding to the obtained microservice tool respectively; obtaining the evaluation information based on the tool performance parameters by using the response time, throughput, load capacity and concurrent performance evaluation corresponding to the microservice tool after the normalization; The information quality evaluation is obtained through information integrity evaluation, information clarity evaluation and information availability evaluation; the evaluation of each microservice tool is obtained according to the evaluation information based on user evaluation, the evaluation information based on developer published content and the evaluation information based on tool performance parameters of each microservice tool; Based on the evaluation of each microservice tool, determine and recommend the microservice tool with the highest evaluation.
2. The microservice tool evaluation method according to claim 1, characterized in that: The load capacity corresponding to the obtained microservice tool is normalized and obtained in the following way: Where x is the original data of load capacity; x′ is the data after normalization of load capacity; T capacity_min is the minimum value of the load capacity data corresponding to all microservice tools; T capacity_max It is the maximum value of the load capacity data corresponding to all microservice tools.
3. The microservice tool evaluation method according to claim 1, characterized in that: The method for obtaining the information quality evaluation includes: Clean and pre-process the developer-published content information corresponding to the acquired microservice tools; Based on the integrity evaluation index, obtain the integrity evaluation of the preprocessed developer published content information; based on the availability evaluation index, obtain the availability evaluation of the developer published content information; based on the clarity evaluation index, obtain the clarity evaluation of the developer published content information; The information quality evaluation is obtained according to the completeness evaluation, availability evaluation and clarity evaluation.
4. The microservice tool evaluation method according to claim 1, characterized in that: The integrity evaluation indicators include tool name and description, supported programming languages and platforms, functional features, documentation, tutorials and usage examples; The clarity evaluation index includes titles, paragraphs, subsections, numbers, charts and images; The availability evaluation indicators include online publication, direct download link, multi-channel access, search function and compatibility.
5. The microservice tool evaluation method according to claim 1, characterized in that: The interactive information evaluation model is obtained after training with a question data set; wherein, the question data set is obtained through a finite state automaton based on a question form feature set; the question form feature set includes modal particle features, interrogative pronoun features, interrogative format features, modal adverb features and supplementary features.
6. A microservice tool evaluation system, characterized in that: The system includes: An information acquisition unit is used to acquire evaluation information based on user evaluation, evaluation information based on developer-published content, and evaluation information based on tool performance parameters of each microservice tool; wherein the evaluation information based on developer-published content is acquired through information quality evaluation and interactive effectiveness evaluation; the acquisition method of the interactive effectiveness evaluation comprises preprocessing the acquired interactive information and extracting text features; using a preset interactive information evaluation model to perform interrogative sentence determination on the extracted text features, and acquiring interactive information evaluations containing interrogative sentences and evaluations not containing interrogative sentences; determining the robot reply type or manual reply type for text features determined to be interrogative sentences, and acquiring evaluations containing robot reply types and evaluations containing manual reply types; and converting text features determined to be manual reply types into text features; wherein the evaluation information is obtained by performing preprocessing on the acquired interactive information and extracting text features; and obtaining evaluations containing robot reply types and evaluations containing manual reply types. The method comprises the following steps: performing sentiment analysis based on the characteristics of the interactive information, and obtaining the sentiment value evaluation of the interactive information; obtaining the interactive effectiveness evaluation based on the evaluation of the interactive information containing question sentences, the evaluation without question sentences, the evaluation containing robot reply types, the evaluation containing manual reply types and the sentiment value evaluation; wherein the method for obtaining the evaluation information based on the tool performance parameters comprises: obtaining the response time, throughput, load capacity and concurrent performance evaluation corresponding to the microservice tool according to the information of the tool performance parameters obtained of the microservice tool; normalizing the response time, throughput, load capacity and concurrent performance evaluation corresponding to the obtained microservice tool respectively; obtaining the evaluation information based on the tool performance parameters by using the response time, throughput, load capacity and concurrent performance evaluation corresponding to the microservice tool after the normalization; The information quality evaluation is obtained through information integrity evaluation, information clarity evaluation and information availability evaluation; an evaluation acquisition unit is used to obtain the evaluation of each microservice tool according to the evaluation information based on user evaluation, the evaluation information based on developer published content and the evaluation information based on tool performance parameters of each microservice tool; The recommendation unit is used to determine and recommend the microservice tool with the highest evaluation based on the evaluation of each microservice tool.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps in the microservice tool evaluation method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the microservice tool evaluation method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Quantitative method and device for micro-service evaluation, computer equipment and storage medium
CN112395148A
Micro-service maturity evaluation method and system based on maturity model
CN113487209A
