CN112070342B - Microservice evaluation method and device, electronic equipment and computer readable storage medium - Google Patents
Microservice evaluation method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN112070342B CN112070342B CN202010731495.0A CN202010731495A CN112070342B CN 112070342 B CN112070342 B CN 112070342B CN 202010731495 A CN202010731495 A CN 202010731495A CN 112070342 B CN112070342 B CN 112070342B
- Authority
- CN
- China
- Prior art keywords
- evaluation
- service
- target micro
- user
- micro
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000011156 evaluation Methods 0.000 title claims abstract description 816
- 238000000034 method Methods 0.000 claims abstract description 41
- 238000012545 processing Methods 0.000 claims description 23
- 230000008569 process Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 15
- 238000004891 communication Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 claims description 12
- 238000012546 transfer Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 14
- 230000000694 effects Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 238000012795 verification Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000013475 authorization Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0639—Performance analysis of employees; Performance analysis of enterprise or organisation operations
- G06Q10/06393—Score-carding, benchmarking or key performance indicator [KPI] analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Databases & Information Systems (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Economics (AREA)
- Educational Administration (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Marketing (AREA)
- Computing Systems (AREA)
- Game Theory and Decision Science (AREA)
- Data Mining & Analysis (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a micro-service evaluation method and device, electronic equipment and a computer readable storage medium. The method comprises the following steps: receiving information of target micro-service evaluation set by an administrator, and creating evaluation tokens and blockchain addresses of the target micro-service evaluation; receiving a request of a user for participating in target micro-service evaluation, and transferring an evaluation token to a block chain address of the user; receiving an evaluation score input by a user on a target micro-service evaluation, transferring an evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block from transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting; and updating the evaluation score of the target micro-service evaluation according to the number of the evaluation tokens in the blockchain address of the target micro-service evaluation. The embodiment of the invention can shorten the offline period of the micro service, improve the efficiency, ensure the disclosure and fairness of the micro service evaluation and ensure that the evaluation information of the user is not tampered.
Description
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a micro-service evaluation method, a micro-service evaluation device, an electronic device, and a computer readable storage medium based on a blockchain technology.
Background
With development of micro-service technology, the application of micro-service aiming at service requirements is more and more, and offline management of micro-service on a platform is required. The general micro-service off-line is that a platform administrator judges whether the micro-service needs to be off-line according to the calling frequency and the last calling time of the micro-service, informs a person required by the micro-service, determines whether the micro-service needs to be off-line according to service requirements, if the micro-service needs to be off-line, the platform administrator initiates the application flow of the micro-service off-line on line, and each auditor carries out approval to finally determine the micro-service off-line.
Therefore, the existing micro-service offline process is complex, long in period and low in efficiency, and other users cannot obtain notification of the micro-service offline, so that the micro-service cannot be evaluated fairly.
Disclosure of Invention
The embodiment of the invention aims to provide a micro-service evaluation method, a micro-service evaluation device, electronic equipment and a computer readable storage medium, which can shorten the offline period of micro-service, improve the efficiency and ensure the openness and fairness of micro-service evaluation.
In order to solve the technical problems, the embodiment of the invention is realized as follows:
In a first aspect, an embodiment of the present invention provides a micro-service evaluation method, including:
receiving information of target micro-service evaluation set by an administrator, and creating an evaluation token and a blockchain address of the target micro-service evaluation;
Receiving a request of a user for participating in the target micro-service evaluation, and transferring the evaluation token to a blockchain address of the user;
Receiving an evaluation score input by the user on the target micro-service evaluation, transferring the evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block by the transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting;
and updating the evaluation score of the target micro-service evaluation according to the number of the evaluation tokens in the blockchain address of the target micro-service evaluation.
In a second aspect, an embodiment of the present invention provides a micro-service evaluation apparatus, including:
The creation module is used for receiving information of target micro-service evaluation set by an administrator and creating evaluation tokens and blockchain addresses of the target micro-service evaluation;
The evaluation module is used for receiving a request of a user for participating in the target micro-service evaluation and transferring the evaluation token to a blockchain address of the user; receiving an evaluation score input by the user on the target micro-service evaluation, transferring the evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block by the transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting;
And the processing module is used for updating the evaluation score of the target micro-service evaluation according to the number of the evaluation tokens in the blockchain address of the target micro-service evaluation.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete communication with each other through a bus; the memory is used for storing a computer program; the processor is configured to execute the program stored in the memory, and implement the micro-service evaluation method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the micro-service evaluation method according to the first aspect.
The micro-service evaluation method, the micro-service evaluation device, the electronic equipment and the computer readable storage medium provided by the embodiment of the invention are used for creating evaluation tokens and blockchain addresses of target micro-service evaluation by receiving information of target micro-service evaluation set by an administrator; receiving a request of a user for participating in target micro-service evaluation, and transferring an evaluation token to a block chain address of the user; receiving an evaluation score input by a user on a target micro-service evaluation, transferring an evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block from transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting; updating the evaluation score of the target micro-service evaluation according to the number of evaluation tokens in the blockchain address of the target micro-service evaluation; the evaluation of the target micro-service is mapped into asset transaction on the blockchain by utilizing the blockchain technology, so that the on-line evaluation of the target micro-service which needs to be off-line is realized, the off-line period of the micro-service can be shortened, the efficiency is improved, the openness and fairness of the evaluation of the target micro-service can be ensured through the participation of users in the evaluation, the evaluation information of the users can be ensured not to be tampered according to the characteristics of the blockchain, the fraudulent evaluation is effectively avoided, and the safety of the micro-service evaluation is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an implementation of a micro-service evaluation method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of one implementation of creating a targeted micro-service valuation in accordance with an embodiment of the invention;
FIG. 3 is a flow diagram of one implementation of an evaluation token for a user to obtain a targeted micro-service evaluation in accordance with an embodiment of the present invention;
FIG. 4 is a flow chart of one implementation of uploading user rating information for a target micro-service to a blockchain in accordance with embodiments of the present invention;
FIG. 5 is a flow diagram of one implementation of obtaining an evaluation score for a targeted micro-service evaluation in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram showing a composition structure of a micro-service evaluation apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic diagram showing another constitution of a micro-service evaluation device according to an embodiment of the present invention;
Fig. 8 is a schematic diagram of a composition structure of an electronic device implementing an embodiment of the present invention.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, shall fall within the scope of the invention.
Fig. 1 is a flow chart of an implementation manner of a micro service evaluation method according to an embodiment of the present invention, where the method in fig. 1 may be executed by a micro service evaluation device as an execution body, and the micro service evaluation device may be applied to a service platform adopting a micro service technology, as shown in fig. 1, and the method at least includes:
S102, receiving information of target micro-service evaluation set by an administrator, and creating evaluation tokens and blockchain addresses of the target micro-service evaluation.
In the embodiment of the invention, when the micro-services on the service platform adopting the micro-service technology are managed in a offline mode, the micro-services needing to be managed in the offline mode can be used as target micro-services, a manager of the service platform creates corresponding target micro-service evaluation for each target micro-service, the registered user of the service platform participates in the target micro-service evaluation to obtain the evaluation score of the target micro-service evaluation, and whether the target micro-services are managed in the offline mode is determined according to the evaluation score. Therefore, to realize the evaluation of the target micro-service, the administrator and the registered user of the service platform are required to perform corresponding operations, after the administrator and the registered user log in the service platform, the corresponding operation interface can be returned by inquiring the identity information stored in the database, the administrator and the registered user can perform corresponding operations through the returned operation interface, for example, when the identity information is the administrator, the background management interface is returned to the administrator, and when the identity information is the registered user, the foreground service interface is returned to the registered user.
Optionally, the administrator can create the target micro-service evaluation through the returned operation interface, and can also manage the micro-service evaluation through user management, micro-service evaluation management, bulletin management and the like through the returned operation interface; the registered user can participate in the target micro-service evaluation through the returned operation interface, and can also view the evaluation result, verify the evaluation result and the like through the returned operation interface to participate in the related activities aiming at the micro-service evaluation; the embodiment of the invention does not limit the form of the operation performed by the manager and the registered user through the returned operation interface.
In an embodiment of the invention, creating the target micro-service valuation includes creating a valuation token of the target micro-service valuation and a blockchain address, wherein the valuation token of the target micro-service valuation is used as a valuation score for the target micro-service valuation, and the blockchain address of the target micro-service valuation can map the valuation of the target micro-service to an asset transaction on a blockchain by receiving the valuation token of the target micro-service valuation transferred from the blockchain address of the registered user. An administrator may create an evaluation token and blockchain address for a target micro-service evaluation by setting information for the target micro-service evaluation at an operation interface, for example, the information for the target micro-service evaluation may include: the topic name, start time, end time, token name, etc. of the target micro-service evaluation, the type of information of the target micro-service evaluation set by the administrator in the embodiment of the present invention is not limited.
S104, receiving a request of a user for participating in target micro-service evaluation, and transferring an evaluation token to a blockchain address of the user.
In the embodiment of the invention, the registered user can make the blockchain address of the user obtain the evaluation token of the target micro-service evaluation by making a request for participation in the target micro-service evaluation on the operation interface, for example, the registered user makes the request for participation in the target micro-service evaluation by clicking the main name of the target micro-service evaluation on the operation interface. Optionally, the blockchain address of the user may be created when the user registers, or may be created after the user makes a request for participation in the target micro-service evaluation. When the administrator performs user management on the operation interface, the administrator may view information of all registered users currently or delete information of the registered users on the user management page, for example, the information of the registered users may include: the administrator cannot check or delete the related information of the blockchain account number such as the blockchain address of the user, and the like, so that the administrator cannot correspond the blockchain address of the user to the user name, thereby ensuring the anonymity of the user evaluation information.
S106, receiving the evaluation score input by the user on the target micro-service evaluation, transferring the evaluation token corresponding to the evaluation score from the blockchain address of the user to the blockchain address of the target micro-service evaluation, generating a block from the transferred transaction information, and uploading the block to the blockchain after consensus and broadcasting.
In the embodiment of the invention, after a request for participating in target micro-service evaluation is put forward through an operation interface, a registered user can input an evaluation score for the target micro-service evaluation through the operation interface, an evaluation token of the target micro-service evaluation corresponding to the evaluation score of the user in a blockchain address of the user is transferred to a blockchain address of the target micro-service evaluation by the blockchain address of the user, a transfer transaction is completed, then transferred transaction information is generated into a block, and after consensus is achieved, the block is broadcast to all nodes in a blockchain network, so that transfer transaction information for evaluation is uploaded to a blockchain. For example, the registered user clicks the main name of the target micro-service evaluation on the operation interface, enters the evaluation page of the target micro-service evaluation, and inputs the evaluation score of the target micro-service evaluation on the evaluation page of the target micro-service evaluation.
S108, updating the evaluation score of the target micro-service evaluation according to the number of the evaluation tokens in the blockchain address of the target micro-service evaluation.
In the embodiment of the invention, after mapping the evaluation of the target micro-service into the asset transaction on the blockchain, according to the number of the evaluation tokens of the target micro-service evaluation in the blockchain address of the target micro-service evaluation, the evaluation score of the target micro-service evaluation by the registered user currently participating in the target micro-service evaluation can be obtained, then the evaluation score of the target micro-service evaluation by the registered user currently participating in the target micro-service evaluation is utilized to update the stored evaluation score of the target micro-service evaluation, so as to obtain the new evaluation score of the target micro-service evaluation, wherein the stored evaluation score of the target micro-service evaluation is obtained based on the evaluation scores of all the registered users previously participating in the target micro-service evaluation on the target micro-service evaluation.
According to the micro-service evaluation method provided by the embodiment of the invention, the evaluation token and the blockchain address of the target micro-service evaluation are created by receiving the information of the target micro-service evaluation set by an administrator; receiving a request of a user for participating in target micro-service evaluation, and transferring an evaluation token to a block chain address of the user; receiving an evaluation score input by a user on a target micro-service evaluation, transferring an evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block from transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting; updating the evaluation score of the target micro-service evaluation according to the number of evaluation tokens in the blockchain address of the target micro-service evaluation; the evaluation of the target micro-service is mapped into asset transaction on the blockchain by utilizing the blockchain technology, so that the on-line evaluation of the target micro-service which needs to be off-line is realized, the off-line period of the micro-service can be shortened, the efficiency is improved, the openness and fairness of the evaluation of the target micro-service can be ensured through the participation of users in the evaluation, the evaluation information of the users can be ensured not to be tampered according to the characteristics of the blockchain, the fraudulent evaluation is effectively avoided, and the safety of the micro-service evaluation is ensured.
The micro service evaluation method of the present invention will be described in detail with reference to the embodiments of fig. 2 to 5.
FIG. 2 is a flow chart of an implementation manner of creating a target micro service evaluation according to an embodiment of the present invention, as shown in FIG. 2, receiving information of the target micro service evaluation set by an administrator, and creating an evaluation token and a blockchain address of the target micro service evaluation, where the method at least includes:
S202, receiving a theme name, a start time, an end time, an evaluation dimension and a token name of target micro-service evaluation set by an administrator; wherein the token names are in one-to-one correspondence with the theme names.
Alternatively, the target micro-service evaluation may include multiple evaluation dimensions, that is, evaluation indexes or evaluation options, and the characteristics of each aspect of the target micro-service may be represented by the multiple evaluation dimensions, so as to make a quantitative determination on the evaluated target micro-service. After setting the theme name, the start time and the end time of the target micro-service evaluation through the operation interface, the administrator can also set the evaluation dimension of the target micro-service evaluation through the operation interface, for example, the administrator selects the evaluation dimension of the target micro-service evaluation from the evaluation options provided by clicking the operation interface.
Optionally, each target micro-service evaluation has a corresponding evaluation token, that is, the theme name of the target micro-service evaluation corresponds to the token name of the evaluation token one by one, so that the specificity of the evaluation token of the target micro-service evaluation can be ensured, and the evaluation token of one target micro-service evaluation is prevented from being used in other target micro-service evaluation. Therefore, after setting the token name of the target micro service evaluation through the operation interface, the administrator can also check whether the evaluation token with the token name has been created, for example, check whether the created account number has already been created by calling the interface function, if the evaluation token with the token name has been created, prompt the administrator to reset other token names, and if the evaluation token with the token name has not been created, continue to execute the next operation.
S204, creating an evaluation token of the target micro-service evaluation according to the token name, and determining the effective time and the effective duration of the evaluation token according to the starting time and the ending time.
Alternatively, after determining that the token name of the evaluation token set by the administrator is unoccupied, the evaluation token of the target micro-service evaluation may be created according to the token name, for example, the evaluation token having the token name is created by creating an account number, and the effective time of the evaluation token may be determined according to the start time and the end time of the target micro-service evaluation set by the administrator, so that the transfer transaction of evaluating the target micro-service without reaching the effective time of the evaluation token or exceeding the effective time of the evaluation token may not be successful, evaluation data may not be written into the blockchain, abnormal evaluation of the designated time of the non-evaluation activity is avoided, and fairness of the evaluation activity are affected.
S206, creating a blockchain address of the target micro-service evaluation, and storing the corresponding relation among the blockchain address, the theme name, the start time, the end time, the evaluation dimension and the token name.
Optionally, after the evaluation token of the target micro service evaluation is created, a blockchain address may be created for each target micro service evaluation, for example, by calling an interface function to create a blockchain account for each target micro service evaluation, where the blockchain account includes a blockchain address, a private key and a public key.
FIG. 3 is a flow chart of an implementation of a rating token for a user to obtain a target micro-service rating according to an embodiment of the invention, wherein the flow chart in FIG. 3, receiving a request from the user to participate in the target micro-service rating, transferring the rating token to a blockchain address of the user, at least comprises:
s302, a request of a user for participating in target micro-service evaluation is received.
Optionally, the operation interface may provide the subject name of the target micro-service evaluation for the registered user, and the registered user may enter the evaluation page of the target micro-service evaluation by clicking the subject name of the target micro-service evaluation. In some optional examples, the operation interface may further provide the evaluation status of the target micro-service evaluation by the user for the registered user, that is, the evaluation status is evaluated or not evaluated, for example, the evaluation status may be displayed in a text manner, or different evaluation statuses may be distinguished by topic names with different colors, or the topic names of the evaluated target micro-service may be set to a non-clickable status.
S304, receiving an evaluation authority set by an administrator for an evaluation dimension of a target microservice evaluation by a user according to the request; wherein, the evaluation authority of each evaluation dimension of the target micro-service evaluation by different users is different.
Optionally, the registered user needs to obtain the evaluation authority first, that is, after the registered user submits a request for participating in the target micro-service evaluation through the operation interface, the administrator may set the evaluation authority for the registered user who submits the request through the operation interface according to the request of the registered user, for example, the administrator checks the information of the registered user who submits the request according to the request of the registered user, sets the evaluation authority of each evaluation dimension of the target micro-service evaluation for the registered user who submits the request according to the identity and function of the registered user, and the registered user may score the evaluation dimension of the target micro-service evaluation with the evaluation authority.
The evaluation authority of each evaluation dimension of the target micro-service evaluation is different according to different authorizations of the administrator, for example, the target micro-service evaluation has 6 evaluation dimensions, namely, function availability, service stability, service usability, service expansibility, execution efficiency and document perfection, the first user only has the evaluation authority for two evaluation dimensions of the service stability and the service usability, and the second user only has the evaluation authority for three evaluation dimensions of the service expansibility, the execution efficiency and the document perfection.
S306, transferring the evaluation token to the blockchain address of the user according to the evaluation dimension of the evaluation authority of the user.
Alternatively, for each target micro-service evaluation, the evaluation tokens may be transferred to the blockchain address of the user according to the number of evaluation dimensions and the highest score of the evaluation dimensions of the target micro-service evaluation for which the registered user has evaluation rights, for example, the number of evaluation dimensions of the target micro-service evaluation for which the registered user has evaluation rights is 2, and the highest score of each evaluation dimension is 5, and the number of evaluation tokens of the target micro-service evaluation transferred to the blockchain address of the user is 10.
FIG. 4 is a flow chart of an implementation manner of uploading user rating information for a target micro-service to a blockchain according to an embodiment of the present invention, as shown in FIG. 4, receiving a rating score input by a user for a target micro-service rating, transferring a rating token corresponding to the rating score from a blockchain address of the user to a blockchain address of the target micro-service rating, generating a block from the transferred transaction information, and uploading the block to the blockchain after consensus and broadcasting, wherein the method at least comprises:
S402, receiving an evaluation score input by a user on an evaluation dimension of the target micro-service evaluation with the evaluation authority.
Optionally, before opening the evaluation page of the target micro-service evaluation to score the evaluation dimension of the target micro-service evaluation, the registered user needs to first obtain the evaluation token of the target micro-service evaluation, that is, after the registered user clicks the theme name of the target micro-service evaluation provided by the operation interface to obtain authorization, the registered user needs to first obtain the evaluation token of the target micro-service evaluation, so that the blockchain address of the user obtains the evaluation token of the target micro-service evaluation, for example, the registered user can obtain the evaluation token of the target micro-service evaluation by clicking a get button provided by the operation interface.
In some optional examples, when the registered user gets the evaluation token of the target micro-service evaluation, the registered user clicks the get button, calls the interface function to transfer the evaluation token of the target micro-service evaluation to the blockchain address of the user through the creation account number, records the information of the registered user and the blockchain address of the target micro-service evaluation, at the moment, shows that the user gets the evaluation token successfully, if the registered user clicks the get button again, determines that the registered user has got the evaluation token of the target micro-service evaluation according to the recorded information of the registered user and the blockchain address of the target micro-service evaluation, at the moment, shows that the user has got the evaluation token, thereby avoiding the user from repeatedly getting the evaluation token of the target micro-service evaluation, ensuring that the user can only perform one evaluation on one target micro-service, avoiding repeated evaluation, and ensuring fairness of evaluation activities.
Alternatively, after the registered user gets the evaluation token of the target micro-service evaluation, an evaluation page of the target micro-service evaluation is opened, and an evaluation option of the target micro-service evaluation with evaluation authority of the registered user is displayed in the evaluation page of the target micro-service evaluation.
S404, transferring the evaluation tokens corresponding to the evaluation scores from the blockchain address of the user to the blockchain address of the target micro-service evaluation; wherein the evaluation token contains information of the corresponding evaluation dimension.
Optionally, after the registration user scores the evaluation options of the target micro-service evaluation with the evaluation authority in the evaluation page of the target micro-service evaluation, the registration user can inquire whether the registration user participates in the target micro-service evaluation of the theme name according to the blockchain address of the user and the blockchain address of the target micro-service evaluation, if the registration user already participates in the target micro-service evaluation of the theme name, the target micro-service evaluation of the registration user is ended, and if the registration user does not already participate in the target micro-service evaluation of the theme name, the evaluation token in the blockchain address of the user is transferred to the blockchain address of the target micro-service evaluation, so that the user can only evaluate one target micro-service once, the repeated evaluation is avoided, and the fairness of the evaluation activity is ensured. For example, by calling an interface function, a user's rating list may be queried according to the user's blockchain address, and then the transfer transaction information for the user to evaluate may be queried from the user's rating list according to the blockchain address of the target micro-service rating, to determine whether the registered user has participated in the target micro-service rating for the topic name. The embodiment of the application does not limit the implementation mode of inquiring whether the registered user participates in the target micro-service evaluation.
S406, generating a block of the transferred transaction information, and uploading the block to a block chain after consensus and broadcasting.
Optionally, after transferring the evaluation token in the blockchain address of the user to the blockchain address of the target micro-service evaluation, the endorsement node may collect the transfer transaction information evaluated by the user node, package the transfer transaction information evaluated to generate a block, and after reaching consensus, broadcast the block to all nodes in the blockchain network, so as to realize uploading the transfer transaction information evaluated to the blockchain.
FIG. 5 is a flow chart of an implementation manner of obtaining an evaluation score of a target micro service evaluation according to an embodiment of the present invention, wherein the updating the evaluation score of the target micro service evaluation according to the number of evaluation tokens in the blockchain address of the target micro service evaluation at least includes:
S502, counting the number of evaluation tokens of each evaluation dimension in the blockchain address of the target micro-service evaluation, and obtaining the evaluation score of each evaluation dimension of the target micro-service evaluation.
Optionally, after uploading the transferred transaction information generating block to the blockchain, counting the number of evaluation tokens of each evaluation dimension according to the information of the evaluation dimension included in the evaluation token of each evaluation dimension in the blockchain address of the target micro-service evaluation, obtaining the evaluation score of each evaluation dimension of the target micro-service evaluation with evaluation authority by the registered user, and updating the evaluation score of each evaluation dimension of the target micro-service evaluation which is already stored by using the obtained evaluation score of each evaluation dimension of the target micro-service evaluation with evaluation authority, so as to obtain a new evaluation score of the corresponding evaluation dimension of the target micro-service evaluation, wherein the evaluation score of the corresponding evaluation dimension of the target micro-service evaluation which is already stored is obtained based on the evaluation scores of the corresponding evaluation dimensions of the target micro-service evaluation by all registered users participating in the target micro-service evaluation before.
S504, carrying out comprehensive evaluation processing on the evaluation scores of each evaluation dimension of the target micro-service evaluation, and updating the evaluation score of the target micro-service evaluation.
Optionally, after updating the evaluation scores of the corresponding evaluation dimensions of the target micro service evaluation that are already stored according to the number of evaluation tokens of each evaluation dimension in the blockchain address of the target micro service evaluation, a new evaluation score of the target micro service evaluation may be obtained by performing comprehensive evaluation processing on the currently stored evaluation scores of each evaluation dimension of the target micro service evaluation, and updating the stored evaluation scores of the target micro service evaluation. Alternatively, the method for performing comprehensive evaluation processing on the evaluation scores of the evaluation dimensions of the target micro-service evaluation may be a analytic hierarchy process, a TOPSIS comprehensive evaluation method, an entropy value method, or the like.
In some alternative examples, the method of comprehensive evaluation processing may adopt a multiplication combination mode, for example, a combination of a hierarchical analysis method and an entropy weight method is adopted, comprehensive evaluation processing is performed on the evaluation score of each evaluation dimension of the target micro-service evaluation based on the multiplication combination of the hierarchical analysis method and the entropy weight method, and the evaluation score of the target micro-service evaluation obtained by the comprehensive evaluation processing can be objective and scientific by modifying the hierarchical analysis method according to the dynamic balance coefficient of the evaluation score of each evaluation dimension deviating from the average value of the evaluation scores of each evaluation dimension and the evaluation score of each evaluation dimension.
Wherein, the calculation formula of the weight of the multiplication combination is as follows:
Wherein n is the number of evaluation dimensions; w Aj and w Ej obtain the weight of the j-th evaluation dimension by an analytic hierarchy process and an entropy weight process respectively; w Ai and w Ei obtain the weight of the ith evaluation dimension by an analytic hierarchy process and an entropy weight process respectively.
In order to improve the accuracy of the evaluation index to the evaluation result, the weight of the multiplication combination is corrected, and the calculation formula of the corrected weight is as follows:
Wherein m is the number of evaluation dimensions; w' j is the weight of the j-th evaluation dimension before the verification; x j is the evaluation score for the ith evaluation dimension; t j is the dynamic balance coefficient of the j-th evaluation dimension; s (x j) is a variable weight coefficient of the j-th evaluation dimension. The calculation formula of the variable weight coefficient is as follows:
The dynamic balance coefficient T j is used for describing the situation that the dynamic balance coefficient T j changes with the evaluation index value under different evaluation schemes, namely, under the analytic hierarchy process and the entropy weight process, and the calculation formula of the dynamic balance coefficient is as follows:
Wherein, To average the evaluation scores for the j-th evaluation dimension under the evaluation scheme, T j reflects the extent to which the average value of the evaluation index value x ij deviates.
In some possible implementation manners, the micro service evaluation method according to the embodiment of the present invention may further display the evaluation score of the target micro service evaluation and the evaluation score of each evaluation dimension of the target micro service evaluation after updating the evaluation score of the target micro service evaluation. Alternatively, the evaluation score of the target micro-service evaluation, and the evaluation score of each evaluation dimension of the target micro-service evaluation may be displayed according to the topic name of the target micro-service evaluation input or clicked by the user.
In some possible implementation manners, after updating the evaluation score of the target micro-service evaluation, the micro-service evaluation method of the embodiment of the invention can also receive the hash value of the block of the transfer transaction of the target micro-service evaluation, which is input by the user, obtain the theme name, the evaluation time and the evaluation score of each evaluation dimension of the target micro-service evaluation from the blockchain, and display the theme name, the evaluation time and the evaluation score of each evaluation dimension of the target micro-service evaluation, which are obtained, so that the user can conveniently verify the authenticity of the evaluation result at any time, and can also conveniently verify whether the evaluation score of the user is correctly input, and traceability and verifiability of the evaluation information are realized by utilizing the characteristics of the blockchain technology. Optionally, after uploading the evaluation information of the user to the blockchain, a hash value of a block is returned, and the user can query the evaluation information of the user according to the hash value of the block to verify the evaluation result.
Corresponding to the above-described method, based on the same technical concept, the embodiment of the present invention further provides a micro-service evaluation device, and fig. 6 is a schematic structural diagram of a micro-service evaluation device according to the embodiment of the present invention, where the micro-service evaluation device may be applied to a service platform adopting a micro-service technology, and may be used to execute the micro-service evaluation method described in fig. 1, as shown in fig. 6, where the micro-service evaluation device at least includes: a creation module 610, an evaluation module 620, and a processing module 630, wherein the creation module 610, the evaluation module 620, and the processing module 630 are connected.
A creation module 610, configured to receive information of a target micro-service evaluation set by an administrator, and create an evaluation token and a blockchain address of the target micro-service evaluation.
In the present embodiment, the description of the creation module 610 may be referred to the description of S102 in fig. 1, and will not be described here.
The evaluation module 620 is configured to receive a request from a user to participate in a target micro-service evaluation, and transfer the request to an evaluation token from a blockchain address of the user; and receiving an evaluation score input by the user on the target micro-service evaluation, transferring an evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block from the transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting.
In the present embodiment, the description of the evaluation module 620 can be referred to the description of S104 and S106 in fig. 1, and will not be described here.
The processing module 630 is configured to update an evaluation score of the target micro-service evaluation according to the number of evaluation tokens in the blockchain address of the target micro-service evaluation.
In the present embodiment, the description of the processing module 630 may refer to the description of S108 in fig. 1, and will not be described here.
The micro-service evaluation device provided by the embodiment of the invention creates an evaluation token and a blockchain address of target micro-service evaluation by receiving information of the target micro-service evaluation set by an administrator; receiving a request of a user for participating in target micro-service evaluation, and transferring an evaluation token to a block chain address of the user; receiving an evaluation score input by a user on a target micro-service evaluation, transferring an evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block from transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting; updating the evaluation score of the target micro-service evaluation according to the number of evaluation tokens in the blockchain address of the target micro-service evaluation; the evaluation of the target micro-service is mapped into asset transaction on the blockchain by utilizing the blockchain technology, so that the on-line evaluation of the target micro-service which needs to be off-line is realized, the off-line period of the micro-service can be shortened, the efficiency is improved, the openness and fairness of the evaluation of the target micro-service can be ensured through the participation of users in the evaluation, the evaluation information of the users can be ensured not to be tampered according to the characteristics of the blockchain, the fraudulent evaluation is effectively avoided, and the safety of the micro-service evaluation is ensured.
Optionally, a creation module 610 is configured to receive a theme name, a start time, an end time, an evaluation dimension, and a token name of the target micro service evaluation set by the administrator; wherein, the token names are in one-to-one correspondence with the theme names; establishing an evaluation token of the target micro-service evaluation according to the name of the token, and determining the effective time and the effective duration of the evaluation token according to the starting time and the ending time; and creating a blockchain address of the target microservice evaluation, and storing the corresponding relation of the blockchain address, the theme name, the starting time, the ending time, the evaluation dimension and the token name.
Optionally, an evaluation module 620, configured to receive a request from a user to participate in a target micro-service evaluation; receiving an evaluation authority set by an administrator for an evaluation dimension of a user aiming at target microservice evaluation according to the request; wherein, the evaluation rights of different users for each evaluation dimension of the target microservice evaluation are different; and transferring the block chain address of the user to the evaluation token according to the evaluation dimension of the user with the evaluation authority.
Optionally, an evaluation module 620, configured to receive an evaluation score input by a user for an evaluation dimension of a target micro-service evaluation with an evaluation authority; transferring an evaluation token corresponding to the evaluation score from the blockchain address of the user to the blockchain address of the target microservice evaluation; wherein the evaluation tokens contain information of the corresponding evaluation dimension; and generating a block of the transferred transaction information, and uploading the block to a block chain after consensus and broadcasting.
Optionally, the processing module 630 is configured to count the number of evaluation tokens of each evaluation dimension in the blockchain address of the target micro-service evaluation, to obtain an evaluation score of each evaluation dimension of the target micro-service evaluation; and carrying out comprehensive evaluation processing on the evaluation scores of each evaluation dimension of the target micro-service evaluation, and updating the evaluation score of the target micro-service evaluation.
Alternatively, as shown in fig. 7, the micro service evaluation device according to the embodiment of the present invention includes a display module 740 and a verification module 750 in addition to the creation module 710, the evaluation module 720 and the processing module 730. Wherein the display module 740 and the verification module 750 are respectively connected with the processing module 730.
The display module 740 is configured to display the evaluation score of the target micro-service evaluation and the evaluation score of each evaluation dimension of the target micro-service evaluation.
The verification module 750 is configured to receive a hash value of a block of the transfer transaction, which is input by the user and records the user's evaluation of the target micro-service, and obtain, from the blockchain, a topic name, an evaluation time, and an evaluation score of each evaluation dimension of the user's evaluation of the target micro-service.
In accordance with the above-described method, based on the same technical concept, the embodiment of the present invention further provides an electronic device, and fig. 8 is a schematic diagram of a composition structure of an electronic device for implementing the embodiment of the present invention, as shown in fig. 8, where the electronic device may have a relatively large difference due to different configurations or performances, and may include one or more processors 801 and a memory 802, where the memory 802 may store one or more storage applications or data. Wherein the memory 802 may be transient storage or persistent storage. The application programs stored in memory 802 may include one or more modules (not shown in the figures), each of which may include a series of computer-executable instructions for use in a computer device. Still further, the processor 801 may be configured to communicate with a memory 802 and execute a series of computer executable instructions in the memory 802 on a computer device. The computer device may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input/output interfaces 805, and one or more keyboards 806.
In this embodiment, the electronic device includes a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete communication with each other through a bus; a memory for storing a computer program; and the processor is used for executing the programs stored in the memory and realizing the following methods:
receiving information of target micro-service evaluation set by an administrator, and creating evaluation tokens and blockchain addresses of the target micro-service evaluation;
Receiving a request of a user for participating in target micro-service evaluation, and transferring an evaluation token to a block chain address of the user;
receiving an evaluation score input by a user on a target micro-service evaluation, transferring an evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block from transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting;
and updating the evaluation score of the target micro-service evaluation according to the number of the evaluation tokens in the blockchain address of the target micro-service evaluation.
The electronic equipment provided by the embodiment of the invention creates the evaluation token and the blockchain address of the target micro-service evaluation by receiving the information of the target micro-service evaluation set by an administrator; receiving a request of a user for participating in target micro-service evaluation, and transferring an evaluation token to a block chain address of the user; receiving an evaluation score input by a user on a target micro-service evaluation, transferring an evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block from transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting; updating the evaluation score of the target micro-service evaluation according to the number of evaluation tokens in the blockchain address of the target micro-service evaluation; the evaluation of the target micro-service is mapped into asset transaction on the blockchain by utilizing the blockchain technology, so that the on-line evaluation of the target micro-service which needs to be off-line is realized, the off-line period of the micro-service can be shortened, the efficiency is improved, the openness and fairness of the evaluation of the target micro-service can be ensured through the participation of users in the evaluation, the evaluation information of the users can be ensured not to be tampered according to the characteristics of the blockchain, the fraudulent evaluation is effectively avoided, and the safety of the micro-service evaluation is ensured.
In correspondence with the above-described method, based on the same technical concept, the embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, which when executed by a processor, implements the following method:
receiving information of target micro-service evaluation set by an administrator, and creating evaluation tokens and blockchain addresses of the target micro-service evaluation;
Receiving a request of a user for participating in target micro-service evaluation, and transferring an evaluation token to a block chain address of the user;
receiving an evaluation score input by a user on a target micro-service evaluation, transferring an evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block from transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting;
and updating the evaluation score of the target micro-service evaluation according to the number of the evaluation tokens in the blockchain address of the target micro-service evaluation.
The computer readable storage medium provided by the embodiment of the invention creates an evaluation token and a blockchain address of a target micro-service evaluation by receiving information of the target micro-service evaluation set by an administrator; receiving a request of a user for participating in target micro-service evaluation, and transferring an evaluation token to a block chain address of the user; receiving an evaluation score input by a user on a target micro-service evaluation, transferring an evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block from transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting; updating the evaluation score of the target micro-service evaluation according to the number of evaluation tokens in the blockchain address of the target micro-service evaluation; the evaluation of the target micro-service is mapped into asset transaction on the blockchain by utilizing the blockchain technology, so that the on-line evaluation of the target micro-service which needs to be off-line is realized, the off-line period of the micro-service can be shortened, the efficiency is improved, the openness and fairness of the evaluation of the target micro-service can be ensured through the participation of users in the evaluation, the evaluation information of the users can be ensured not to be tampered according to the characteristics of the blockchain, the fraudulent evaluation is effectively avoided, and the safety of the micro-service evaluation is ensured.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are to be included in the scope of the claims of the present invention.
Claims (5)
1. A method of micro-service evaluation, comprising:
receiving information of target micro-service evaluation set by an administrator, and creating an evaluation token and a blockchain address of the target micro-service evaluation;
Receiving a request of a user for participating in the target micro-service evaluation, and transferring the evaluation token to a blockchain address of the user;
Receiving an evaluation score input by the user on the target micro-service evaluation, transferring the evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block by the transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting;
Updating an evaluation score of the target micro-service evaluation according to the number of the evaluation tokens in the blockchain address of the target micro-service evaluation;
the related information of the blockchain account of the user cannot be checked or deleted by an administrator, wherein the related information of the blockchain account comprises the blockchain address of the user;
The receiving the information of the target micro-service evaluation set by the administrator, creating an evaluation token and a blockchain address of the target micro-service evaluation, including:
Receiving a theme name, a starting time, an ending time, an evaluation dimension and a token name of target microservice evaluation set by an administrator; wherein the token names are in one-to-one correspondence with the theme names;
creating an evaluation token of the target micro-service evaluation according to the token name, and determining the effective time and the effective duration of the evaluation token according to the starting time and the ending time;
Creating a blockchain address of the target microservice evaluation, and storing the corresponding relation among the blockchain address, the theme name, the starting time, the ending time, the evaluation dimension and the token name;
The receiving a request from a user to participate in the targeted micro-service evaluation, transferring the evaluation token to a blockchain address of the user, comprising:
receiving a request of a user for participating in the target micro-service evaluation;
Receiving an evaluation authority set by an administrator for the evaluation dimension of the user for the target micro-service evaluation according to the request; wherein, different users have different evaluation rights to each evaluation dimension of the target micro-service evaluation;
Transferring the evaluation token to a blockchain address of the user according to the evaluation dimension of the user with the evaluation authority;
the evaluation authority set for the user with respect to the evaluation dimension of the target micro-service evaluation according to the request comprises:
Checking information of a registered user making a request according to the request;
The receiving the evaluation score input by the user to the target micro-service evaluation, transferring the evaluation token corresponding to the evaluation score from the blockchain address of the user to the blockchain address of the target micro-service evaluation, generating a block of the transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting, wherein the method comprises the following steps:
receiving an evaluation score input by the user on an evaluation dimension of the target micro-service evaluation with the evaluation authority;
Transferring the evaluation token corresponding to the evaluation score from the blockchain address of the user to the blockchain address of the target microservice evaluation; wherein the evaluation token includes information of the corresponding evaluation dimension;
Generating a block of the transferred transaction information, and uploading the block to a block chain after consensus and broadcasting;
The step of transferring the rating token corresponding to the rating score from the blockchain address of the user to the blockchain address of the target micro service rating; wherein the evaluation token contains information of the corresponding evaluation dimension, further comprising:
Inquiring whether the registered user participates in the target micro-service evaluation of the theme name according to the blockchain address of the user and the blockchain address of the target micro-service evaluation, ending the target micro-service evaluation of the registered user if the registered user has already participated in the target micro-service evaluation of the theme name, and transferring evaluation tokens in the blockchain address of the user to the blockchain address of the target micro-service evaluation if the registered user has not participated in the target micro-service evaluation of the theme name;
setting evaluation authority for the evaluation dimension of the target micro-service evaluation by the requested registered user according to the information of the registered user;
Wherein the information of the registered user comprises the identity and function of the registered user;
the updating of the rating score of the target micro-service rating based on the number of rating tokens in the blockchain address of the target micro-service rating comprises:
Counting the number of evaluation tokens of each evaluation dimension in the blockchain address of the target micro-service evaluation to obtain an evaluation score of each evaluation dimension of the target micro-service evaluation;
And carrying out comprehensive evaluation processing on the evaluation scores of all the evaluation dimensions of the target micro service based on a multiplication combination of an analytic hierarchy process and an entropy weight process, and correcting the combination weight of the multiplication combination according to the dynamic balance coefficient of the evaluation scores of all the evaluation dimensions deviating from the average value of the evaluation scores of all the evaluation dimensions and the evaluation score of all the evaluation dimensions to update the evaluation score of the target micro service evaluation.
2. The method of claim 1, wherein updating the evaluation score of the target micro-service valuation based on the number of valuation tokens in the blockchain address of the target micro-service valuation further comprises:
displaying the evaluation score of the target micro-service evaluation and the evaluation score of each evaluation dimension of the target micro-service evaluation;
And receiving a hash value of a block of the transfer transaction of the target micro-service evaluation, which is input by a user, and acquiring a theme name, evaluation time and evaluation scores of the user for each evaluation dimension of the target micro-service evaluation from the blockchain.
3. A micro-service evaluation device, comprising:
The creation module is used for receiving information of target micro-service evaluation set by an administrator and creating evaluation tokens and blockchain addresses of the target micro-service evaluation;
The evaluation module is used for receiving a request of a user for participating in the target micro-service evaluation and transferring the evaluation token to a blockchain address of the user; receiving an evaluation score input by the user on the target micro-service evaluation, transferring the evaluation token corresponding to the evaluation score from a blockchain address of the user to a blockchain address of the target micro-service evaluation, generating a block by the transferred transaction information, and uploading the block to a blockchain after consensus and broadcasting;
The processing module is used for updating the evaluation score of the target micro-service evaluation according to the number of the evaluation tokens in the blockchain address of the target micro-service evaluation;
the related information of the blockchain account of the user cannot be checked or deleted by an administrator, wherein the related information of the blockchain account comprises the blockchain address of the user;
The creation module is specifically used for receiving the theme name, the starting time, the ending time, the evaluation dimension and the token name of the target microservice evaluation set by the administrator; wherein the token names are in one-to-one correspondence with the theme names;
creating an evaluation token of the target micro-service evaluation according to the token name, and determining the effective time and the effective duration of the evaluation token according to the starting time and the ending time;
Creating a blockchain address of the target microservice evaluation, and storing the corresponding relation among the blockchain address, the theme name, the starting time, the ending time, the evaluation dimension and the token name;
The evaluation module is specifically used for receiving a request of a user for participating in the target micro-service evaluation;
Receiving an evaluation authority set by an administrator for the evaluation dimension of the user for the target micro-service evaluation according to the request; wherein, different users have different evaluation rights to each evaluation dimension of the target micro-service evaluation;
Transferring the evaluation token to a blockchain address of the user according to the evaluation dimension of the user with the evaluation authority;
the evaluation module is further configured to: receiving an evaluation score input by the user on an evaluation dimension of the target micro-service evaluation with the evaluation authority;
Transferring the evaluation token corresponding to the evaluation score from the blockchain address of the user to the blockchain address of the target microservice evaluation; wherein the evaluation token includes information of the corresponding evaluation dimension;
Generating a block of the transferred transaction information, and uploading the block to a block chain after consensus and broadcasting;
The step of transferring the rating token corresponding to the rating score from the blockchain address of the user to the blockchain address of the target micro service rating; wherein the evaluation token contains information of the corresponding evaluation dimension, further comprising:
Inquiring whether the registered user participates in the target micro-service evaluation of the theme name according to the blockchain address of the user and the blockchain address of the target micro-service evaluation, ending the target micro-service evaluation of the registered user if the registered user has already participated in the target micro-service evaluation of the theme name, and transferring evaluation tokens in the blockchain address of the user to the blockchain address of the target micro-service evaluation if the registered user has not participated in the target micro-service evaluation of the theme name;
the evaluation authority set for the user with respect to the evaluation dimension of the target micro-service evaluation according to the request comprises:
Checking information of a registered user making a request according to the request;
setting evaluation authority for the evaluation dimension of the target micro-service evaluation by the requested registered user according to the information of the registered user;
Wherein the information of the registered user comprises the identity and function of the registered user;
The processing module is specifically configured to:
Counting the number of evaluation tokens of each evaluation dimension in the blockchain address of the target micro-service evaluation to obtain an evaluation score of each evaluation dimension of the target micro-service evaluation;
And carrying out comprehensive evaluation processing on the evaluation scores of all the evaluation dimensions of the target micro service based on a multiplication combination of an analytic hierarchy process and an entropy weight process, and correcting the combination weight of the multiplication combination according to the dynamic balance coefficient of the evaluation scores of all the evaluation dimensions deviating from the average value of the evaluation scores of all the evaluation dimensions and the evaluation score of all the evaluation dimensions to update the evaluation score of the target micro service evaluation.
4. An electronic device comprising a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete communication with each other through a bus; the memory is used for storing a computer program; the processor is configured to execute a program stored in the memory, and implement the micro service evaluation method according to any one of claims 1 to 2.
5. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the micro-service evaluation method according to any one of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010731495.0A CN112070342B (en) | 2020-07-27 | 2020-07-27 | Microservice evaluation method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010731495.0A CN112070342B (en) | 2020-07-27 | 2020-07-27 | Microservice evaluation method and device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112070342A CN112070342A (en) | 2020-12-11 |
CN112070342B true CN112070342B (en) | 2024-04-23 |
Family
ID=73656207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010731495.0A Active CN112070342B (en) | 2020-07-27 | 2020-07-27 | Microservice evaluation method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112070342B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115114603B (en) * | 2021-03-17 | 2024-06-11 | 中国移动通信集团福建有限公司 | Base station equipment data management method and device and electronic equipment |
CN113742194A (en) * | 2021-09-17 | 2021-12-03 | 北京航空航天大学 | Block chain system environment three-dimensional scoring method based on analytic hierarchy process |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108182517A (en) * | 2017-12-19 | 2018-06-19 | 广东小天才科技有限公司 | Method and device for evaluating learning application program, server and storage medium |
CN108960852A (en) * | 2018-06-19 | 2018-12-07 | 武汉斑马快跑科技有限公司 | One kind is called a taxi evaluation system |
CN109102340A (en) * | 2018-08-22 | 2018-12-28 | 泰康保险集团股份有限公司 | Service evaluation method, apparatus, electronic equipment and medium based on block chain |
KR102000385B1 (en) * | 2018-02-05 | 2019-07-15 | 여미옥 | Artmarket platform service method based on block chain |
-
2020
- 2020-07-27 CN CN202010731495.0A patent/CN112070342B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108182517A (en) * | 2017-12-19 | 2018-06-19 | 广东小天才科技有限公司 | Method and device for evaluating learning application program, server and storage medium |
KR102000385B1 (en) * | 2018-02-05 | 2019-07-15 | 여미옥 | Artmarket platform service method based on block chain |
CN108960852A (en) * | 2018-06-19 | 2018-12-07 | 武汉斑马快跑科技有限公司 | One kind is called a taxi evaluation system |
CN109102340A (en) * | 2018-08-22 | 2018-12-28 | 泰康保险集团股份有限公司 | Service evaluation method, apparatus, electronic equipment and medium based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN112070342A (en) | 2020-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109584066B (en) | Privacy transaction based on block chain and application method and device thereof | |
CN110033244B (en) | Intelligent contract execution method and device based on block chain and electronic equipment | |
CN110046998B (en) | Cross-chain right using system, method, device, electronic equipment and storage medium | |
CN113395363B (en) | Data processing method, device and equipment based on block chain and storage medium | |
CN112435030B (en) | Data processing method and device based on block chain and electronic equipment | |
CN112070342B (en) | Microservice evaluation method and device, electronic equipment and computer readable storage medium | |
CN112380294A (en) | Block chain cross-chain access method and device | |
CN113221191B (en) | Block chain-based data evidence storage method, device, equipment and storage medium | |
CN111340628A (en) | Asset information management method and device based on block chain | |
CN107276970A (en) | One kind is unbinded, binding method and device | |
CN111737764A (en) | Method and device for generating description information | |
CN110990456A (en) | Block chain-based information reading and converting method, device and medium | |
CN114697063A (en) | Security authentication method and device, electronic equipment and storage medium | |
CN113194143A (en) | Block chain account creating method and device and electronic equipment | |
CN110060151B (en) | Service execution method and device | |
CN111556148A (en) | Data sharing method, data sharing platform and device | |
CN111461878A (en) | Block chain transaction processing method and system based on intelligent contracts outside chains | |
CN116451280A (en) | Asset management method and device based on blockchain | |
CN113032823B (en) | Method and device for generating device ID | |
CN116260852A (en) | Calling method, equipment and medium for third party service | |
CN114640684A (en) | Organization member extension method, processor and storage medium for federation chain | |
CN114238520A (en) | Data sharing method and device | |
CN111556160A (en) | Data asset admission method and device | |
CN110677403A (en) | Sound detection data chaining method and device of Internet of things applying block chains | |
CN113987566B (en) | HYPERLEDGER FABRIC-based internal bridging cross-chain method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |