CN110780979A - Control method and device for configuration under micro-service framework, medium and electronic equipment - Google Patents

Control method and device for configuration under micro-service framework, medium and electronic equipment Download PDF

Info

Publication number
CN110780979A
CN110780979A CN201911033342.2A CN201911033342A CN110780979A CN 110780979 A CN110780979 A CN 110780979A CN 201911033342 A CN201911033342 A CN 201911033342A CN 110780979 A CN110780979 A CN 110780979A
Authority
CN
China
Prior art keywords
block chain
transaction message
execution result
chain network
configuration
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.)
Granted
Application number
CN201911033342.2A
Other languages
Chinese (zh)
Other versions
CN110780979B (en
Inventor
柴鹏辉
付贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Shuke Haiyi Information Technology Co Ltd
Jingdong Technology Information Technology Co Ltd
Original Assignee
Beijing Haiyi Tongzhan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Haiyi Tongzhan Information Technology Co Ltd filed Critical Beijing Haiyi Tongzhan Information Technology Co Ltd
Priority to CN201911033342.2A priority Critical patent/CN110780979B/en
Publication of CN110780979A publication Critical patent/CN110780979A/en
Application granted granted Critical
Publication of CN110780979B publication Critical patent/CN110780979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Abstract

The disclosure provides a control method and device for configuration under a micro-service framework, a computer readable medium and electronic equipment, and relates to the technical field of micro-services. The method comprises the following steps: determining a transaction message according to the attribute configuration information of the micro service, and sending the transaction message to a bookkeeping node in the block chain network; the accounting node executes the contract to obtain an execution result related to the transaction message, and broadcasts the execution result in the block chain network; monitoring the execution result in the blockchain network, and updating the configuration of the microservice according to the monitored transaction event so as to enable the updated configuration to be effective. According to the technical scheme, the block chain network is used as a data exchange storage environment of the attribute configuration information about the micro service, and the processing efficiency of the attribute configuration information is favorably improved through distributed storage and a message transmission mechanism in the block chain network, so that the timeliness of configuration updating of a service system is improved.

Description

Control method and device for configuration under micro-service framework, medium and electronic equipment
Technical Field
The present disclosure relates to the field of micro-service technologies, and in particular, to a method and an apparatus for controlling configuration under a micro-service framework, a computer-readable medium, and an electronic device.
Background
In the case of micro-servitization deployment of application systems, the number of services and configuration information is increasing. For example, various server parameter configurations, various database access parameter configurations, configuration information in various environments, and the like. The traditional configuration file mode or the mode of storing the configuration information in the database cannot meet the requirement of configuration management.
In the prior art, configuration management under a microservice framework is implemented using Docker container deployment. However, when the configuration data is updated, the Docker build needs to be performed again.
Therefore, in the control scheme configured under the micro service framework in the prior art, the processing efficiency of the configuration information needs to be improved.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a method for controlling configuration under a micro service framework, a device for controlling configuration under a micro service framework, a computer readable medium, and an electronic device, so as to improve management efficiency of configuration information at least to a certain extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for controlling a configuration under a micro service framework, the method including:
determining a transaction message according to attribute configuration information of the micro service, and sending the transaction message to a billing node in a block chain network;
the accounting node executes the contract to obtain an execution result related to the transaction message, and broadcasts the execution result in the block chain network;
monitoring the execution result in the block chain network, and updating the configuration of the microservice according to the monitored transaction event so as to enable the updated configuration to take effect.
In an embodiment of the present disclosure, based on the foregoing solution, before the contract is executed by the accounting node to obtain the execution result, the method further includes:
and verifying the validity check of the transaction message through a verification node of the block chain network.
In an embodiment of the present disclosure, based on the foregoing solution, the block chain network includes a plurality of chains, and different chains have corresponding channels; wherein, the determining the transaction message according to the attribute configuration information includes:
determining a transaction message containing a channel number according to the attribute configuration information;
the sending of the transaction message to the accounting node in the block chain network includes:
and determining a target channel according to the channel number, and sending the transaction message to an accounting node in a target block chain of the block chain network through the target channel.
In an embodiment of the disclosure, based on the foregoing solution, the broadcasting the execution result in the blockchain network includes:
and determining a target block chain in the block chain network according to the channel number, and broadcasting the execution result in the target block chain.
In an embodiment of the present disclosure, based on the foregoing scheme, the monitoring an execution result in the blockchain network includes:
creating a subscription object for monitoring the execution result of the transaction message in the block chain network;
and monitoring an execution result in the block chain network through the subscription object.
In an embodiment of the disclosure, based on the foregoing scheme, the sending the transaction packet to an accounting node in a blockchain network includes:
and sending the transaction message to a billing node in the block chain network through the output gateway of the micro service.
In an embodiment of the present disclosure, based on the foregoing scheme, the monitoring a transaction event in the blockchain network includes:
and monitoring the verification node in the block chain network through the receiving-out gateway of the micro service so as to acquire the transaction event.
According to a second aspect of the embodiments of the present disclosure, there is provided a control apparatus configured under a microservice framework, the apparatus including:
a transaction message processing module, configured to: determining a transaction message according to the attribute configuration information of the micro service, and sending the transaction message to a billing node in a block chain network;
an execution result processing module to: the accounting node executes the contract to obtain an execution result related to the transaction message, and broadcasts the execution result in the block chain network;
a configuration validation module to: monitoring the execution result in the block chain network, and updating the configuration of the microservice according to the monitored transaction event so as to enable the updated configuration to take effect.
According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the control method configured under the micro service framework according to any one of the technical solutions of the first aspect of the embodiments.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: one or more processors; a storage device, configured to store one or more programs, and when the one or more programs are executed by the one or more processors, enable the one or more processors to implement the control method configured under the micro-service framework according to any one of the technical solutions of the first aspect of the embodiments.
The control method and apparatus for configuration under a micro service framework provided by the embodiment of the present disclosure, and the computer storage medium and the electronic device for implementing the control method for configuration under a micro service framework may include the following beneficial effects:
in some embodiments of the present disclosure, the blockchain network is used as a data exchange storage environment for attribute configuration information of a microservice, and through a distributed storage and a message passing mechanism inside the blockchain network, it is beneficial to improve the processing efficiency of the attribute configuration information, thereby improving the timeliness of configuration update of a service system.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 illustrates a flow diagram of a control method configured under a microservice framework in accordance with an embodiment of the present disclosure;
FIG. 2 illustrates an information interaction diagram of a control method configured under a microservice framework according to an embodiment of the present disclosure;
FIG. 3 illustrates an information interaction diagram of a control method configured under a microservice framework according to another embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a control method for implementing configuration based on multiple chains according to an embodiment of the present disclosure;
FIG. 5 is a flow chart illustrating a control method for configuration under a microservice framework according to another embodiment of the present disclosure;
FIG. 6 illustrates a schematic structural diagram of a control device configured under a microservice framework in accordance with an embodiment of the present disclosure;
FIG. 7 shows a schematic diagram of a structure of a computer storage medium in an exemplary embodiment of the disclosure; and the number of the first and second groups,
fig. 8 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The micro-service architecture is a distributed application technology architecture, so that the application is effectively split, and agile development, rapid evolution, convenient fault tolerance and elastic expansion are realized. And the blockchain technique is essentially a distributed database. Configuration refers to variables independent of application programs, and configuration forms are generally various and include configuration files, database tables, system environment variables, process starting parameters and the like. Under the micro-service framework, centralized configuration is adopted, and specifically, management of configuration information in an application system is used as a new application function module. This is distinguished from the traditional way in which configuration information is spread to the corners of the system.
In a control management scheme configured under a micro service framework provided by the related technology, a database is introduced for dynamic attribute management. This will cause the configuration to take effect untimely and the data service to go down causing the service to be unavailable. And the problems of very complicated system environment design, difficult quick troubleshooting due to errors and the like can be caused.
In view of one or more of the above problems in the related art, the present technical solution provides a method and an apparatus for controlling configuration under a micro service framework, a computer storage medium, and an electronic device, so as to solve one or more of the above problems in the related art to a certain extent. The following description will first be made of an embodiment of a control method configured under a micro service framework:
fig. 1 shows a flow diagram of a control method configured under a microservice framework according to an embodiment of the present disclosure. The control method for configuration under the micro-service framework provided by the embodiment. The execution main body of the control method configured under the micro service framework provided by the embodiment may be a device with a calculation processing function, such as a server.
Referring to fig. 1, the method for controlling the configuration under the micro service framework provided in this embodiment includes:
step S110, determining a transaction message according to the attribute configuration information of the micro service, and sending the transaction message to a billing node in a block chain network;
step S120, the accounting node executes a contract to obtain an execution result related to the transaction message, and broadcasts the execution result in the block chain network; and the number of the first and second groups,
step S130, monitoring the execution result in the block chain network, and updating the configuration of the microservice according to the monitored transaction event so as to enable the updated configuration to take effect.
In the technical solution provided in the embodiment shown in fig. 1, the blockchain network is used as a data exchange storage environment for attribute configuration information of a microservice, and a message passing mechanism inside the blockchain network and distributed storage are used to facilitate improving the processing efficiency of the attribute configuration information, thereby improving the timeliness of configuration update of a service system.
In an exemplary embodiment, fig. 2 and fig. 3 respectively show an information interaction diagram of a control method configured under a micro service framework according to an embodiment of the disclosure, and details of implementation of each step of the embodiment shown in fig. 1 are explained in detail below with reference to fig. 2 and fig. 3
Referring to fig. 2, the control management of the configuration under the micro service framework is realized through information interaction between the business system 210 and the blockchain network 220, which includes a configuration issuing phase 211 and a configuration listening phase 212. Specifically, the method comprises the following steps:
in an exemplary embodiment, as a specific implementation manner of step S110, in the configuration publishing phase 211, the method includes:
step S21: the modification/update information of the attribute configuration of the microservice is obtained. Illustratively, referring to FIG. 3, a user may publish modification/update information for attribute configuration to a configuration center 30 of a business system. Further, the business system records the audit log in step S22, and in step S23: and determining a transaction message according to the attribute configuration information of the micro service. And, in step S24: and sending the transaction message to a billing node in a block chain network. Thereby completing configuration publishing phase 211.
In an exemplary embodiment, as a specific implementation manner of step S120, after the configuration issue is completed, in step S25, the accounting node in the blockchain network 220 that receives the transaction message executes the contract to obtain an execution result related to the transaction message, and broadcasts the execution result within the blockchain network. Illustratively, referring to fig. 3, in the blockchain network 32, the execution results are propagated among the nodes a, B, and C by point-to-point message propagation.
In an exemplary embodiment, before the accounting node executes the contract to obtain the execution result, the validation node of the blockchain network also verifies the validity check of the transaction message.
In an exemplary embodiment, as a specific implementation manner of step S130, in the configuration listening phase 212, the method includes:
step S26, listen to the blockchain network. Referring to fig. 3, each service system in the service system cluster a/B listens to the blockchain network 32 through its respective listening component (e.g., listening component 331 of service system a1, listening component 332 of service system a2, listening component 341 of service system B1, listening component 342 of service system B2, etc.).
Step S27, the service system acquires the monitored execution result; and performs message processing on the execution result in step S28; thus, the configuration update of the business system is realized in step S29. The configuration listening phase 212 is complete.
In the technical solution provided by the embodiment shown in fig. 2, the block chain network is used as a data exchange storage environment for attribute configuration information about a microservice, which not only can improve the processing efficiency of the attribute configuration information and the timeliness of updating the configuration of a business system, but also has the advantages of unchangeable configuration information, traceable configuration history and the like.
In an exemplary embodiment, in order to adapt to configuration management in multiple environments and multiple clusters of a micro-service framework, the present embodiment uses a block chain channel mechanism to isolate the configuration of multiple environments/multiple clusters, thereby achieving a technical effect of avoiding gray scale issue. Specifically, fig. 4 respectively shows a flowchart of a control method for implementing configuration based on multiple chains according to an embodiment of the present disclosure. Referring to fig. 4:
step S410, determining a transaction message containing a channel number according to the attribute configuration information; step S420, a target channel is determined according to the channel number, and the transaction message is sent to an accounting node in a target block chain of the block chain network through the target channel; and step S430, determining a target block chain in the block chain network according to the channel number, and broadcasting the execution result in the target block chain.
In an exemplary embodiment, the blockchain network includes a plurality of chains. Referring to fig. 3, the blockchain network 32 includes a chain M and a chain N. The chain M is used for storing attribute configuration information about the service system cluster A, and the chain N is used for storing attribute configuration information about the service system cluster B.
Illustratively, in the configuration publishing phase: when the attribute configuration information of the service system cluster a is updated, the issuing component 31 determines a transaction message containing a channel number (channel 1) according to the attribute configuration information, and writes the related transaction message into the channel 1; further, channel 1 calls chain M in the blockchain network. Thus, chain M executes contracts within the chain and broadcasts execution results within chain M.
Similarly, when the attribute configuration information of the service system cluster B is updated, the chain N is called through the channel B. The issuing component 31 determines the transaction message containing the channel number (channel 2) according to the attribute configuration information, and writes the relevant transaction message into the channel 2; further, channel 2 calls chain N in the blockchain network. Thus, chain N executes contracts within the chain and broadcasts execution results within chain N.
Illustratively, in the configuration listening phase: the service system cluster a acquires the execution result in the chain M through the monitoring channel 1, so as to further implement configuration update in the service system cluster a. The service system cluster B acquires the execution result in the chain N through the monitoring channel 2 to further implement configuration update in the service system cluster B.
In the technical solution provided in the embodiment shown in fig. 4, different configurations under multiple environments/multiple clusters are isolated based on a multi-link multi-channel mechanism, so as to adapt to configuration management under multiple environments and in multiple clusters of a micro-service framework, and achieve the technical effect of avoiding gray scale issue.
In an exemplary embodiment, the information interaction between the business system and the blockchain platform is realized through the outgoing gateway of the micro service, wherein the contact gateway can realize the following functions: and the communication gateway and the event monitoring are matched with a micro-service application framework to finish the functions of data consistency and account checking.
Specifically, fig. 5 respectively shows a flowchart of a control method configured under a microservice framework according to another embodiment of the present disclosure. Referring to fig. 5:
in an exemplary embodiment, in step S110, the transaction packet is sent to an accounting node in a blockchain network, and the specific implementation may also be: the service system 52 invokes the publishing component 51 and sends the transaction message to an accounting node in the blockchain network 54 through the breakout gateway 53. Wherein the drop gateway functions as a communication gateway.
In an exemplary embodiment, in step S130, the transaction event in the blockchain network is monitored, and the specific implementation manner may also be: the service system 52 listens through the drop gateway 53 to the authentication node in the blockchain network 54 to obtain the transaction event. Wherein, the exit gateway plays the role of event monitoring.
In an exemplary embodiment, the monitoring of the transaction event in the blockchain network in step S130 may further include: creating a subscription object for monitoring an execution result of the transaction message in the blockchain network; and monitoring an execution result in the block chain network through the subscription object.
In the technical solution provided by the above embodiment, the block chain network is specifically used as a data exchange storage environment of the relevant configuration update information, which is beneficial to the processing efficiency of the attribute configuration information and the timeliness of the configuration update of the service system. The technical scheme also adopts a multi-chain multi-channel mechanism of the block chain, thereby realizing the isolation of the attribute configuration information under multiple environments.
Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments are implemented as computer programs executed by processors, including a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU). When the computer program is executed by a CPU or a GPU, the above-described functions defined by the above-described methods provided by the present disclosure are performed. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following describes embodiments of a control device configured under a micro service framework according to the present disclosure, which can be used to execute a control method configured under a micro service framework according to the foregoing embodiments of the present disclosure.
Fig. 6 shows a schematic structural diagram of a control device configured under a micro service framework according to an embodiment of the present disclosure, and referring to fig. 6, the control device 600 configured under the micro service framework provided in this embodiment includes: a transaction message processing module 601, an execution result processing module 602, and a configuration validation module 603.
The transaction message processing module 601 is configured to: determining a transaction message according to the attribute configuration information of the micro service, and sending the transaction message to a billing node in a block chain network;
the execution result processing module 602 is configured to: the accounting node executes the contract to obtain an execution result related to the transaction message, and broadcasts the execution result in the block chain network; and the number of the first and second groups,
the configuration validation module 603 is configured to: monitoring the execution result in the block chain network, and updating the configuration of the microservice according to the monitored transaction event so as to enable the updated configuration to take effect.
In an embodiment of the present disclosure, based on the foregoing solution, the control device 600 configured under the micro service framework further includes: and (5) a checking module.
Wherein, the check module is used for: and before the accounting node executes the contract to obtain an execution result, verifying the validity check of the transaction message through a verification node of the blockchain network.
In an embodiment of the present disclosure, based on the foregoing solution, the block chain network includes a plurality of chains, and different chains have corresponding channels.
The transaction message processing module 601 is specifically configured to: determining a transaction message containing a channel number according to the attribute configuration information; and determining a target channel according to the channel number, and sending the transaction message to a billing node in a target block chain of the block chain network through the target channel.
In an embodiment of the present disclosure, based on the foregoing scheme, the execution result processing module 602 is specifically configured to: and determining a target block chain in the block chain network according to the channel number, and broadcasting the execution result in the target block chain.
In an embodiment of the present disclosure, based on the foregoing scheme, the configuration validation module 603 is specifically configured to: creating a subscription object for monitoring the execution result of the transaction message in the block chain network; and monitoring the execution result in the block chain network through the subscription object.
In an embodiment of the present disclosure, based on the foregoing scheme, the transaction message processing module 601 is specifically configured to: and sending the transaction message to a billing node in the block chain network through the output gateway of the micro service.
In an embodiment of the present disclosure, based on the foregoing scheme, the configuration validation module 603 is further specifically configured to: and monitoring the verification node in the block chain network through the receiving-out gateway of the micro service so as to acquire the transaction event.
For details that are not disclosed in the embodiments of the control device configured under the micro service framework of the present disclosure, please refer to the embodiments of the control method configured under the micro service framework of the present disclosure for details that are not disclosed in the embodiments of the control device configured under the micro service framework of the present disclosure.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer storage medium capable of implementing the above method. On which a program product capable of implementing the above-described method of the present specification is stored. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product including program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present disclosure described in the "exemplary methods" section above of this specification when the program product is run on the terminal device.
Referring to fig. 7, a program product 700 for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product described above may employ any combination of one or more readable media.
The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing.
More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an erasable programmable Read-Only Memory (EPROM or flash Memory), an optical fiber, a portable compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of one or more of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of Network, including a Local Area Network (LAN) or Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the disclosure is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, and a bus 830 that couples the various system components including the memory unit 820 and the processing unit 810.
Wherein the storage unit stores program codes, and the program codes can be executed by the processing unit 810, so that the processing unit 810 executes the steps according to various exemplary embodiments of the present disclosure described in the "exemplary method" section above in this specification.
For example, the processing unit 810 described above may perform the following as shown in fig. 1: step S110, determining a transaction message according to the attribute configuration information of the micro service, and sending the transaction message to a billing node in a block chain network; step S120, the accounting node executes a contract to obtain an execution result related to the transaction message, and broadcasts the execution result in the block chain network; and step S130, monitoring the execution result in the block chain network, and updating the configuration of the microservice according to the monitored transaction event so as to enable the updated configuration to take effect.
For example, the processing unit 810 may further execute a control method configured under the micro service framework shown in any one of fig. 2 to 5.
Storage 820 may include readable media in the form of volatile storage such as: a Random Access Memory (RAM) 8201 and/or a cache Memory 8202, and may further include a Read-Only Memory (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, Bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 800, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other computing devices. Such communication may be via an Input/Output (I/O) interface 850. Moreover, the electronic device 800 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via the Network adapter 870.
As shown in FIG. 8, the network adapter 860 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware.
Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method for controlling configuration under a micro-service framework, the method comprising:
determining a transaction message according to attribute configuration information of the micro service, and sending the transaction message to a billing node in a block chain network;
the accounting node executes a contract to obtain an execution result related to the transaction message, and broadcasts the execution result in the block chain network;
monitoring the execution result in the block chain network, and updating the configuration of the microservice according to the monitored transaction event so as to enable the updated configuration to take effect.
2. The method of claim 1, wherein before the contract is executed by the billing node to obtain the execution result, the method further comprises:
and verifying the validity check of the transaction message through a verification node of the block chain network.
3. The method of claim 1, wherein the blockchain network comprises a plurality of chains, different chains having corresponding lanes; wherein, the determining the transaction message according to the attribute configuration information includes:
determining a transaction message containing a channel number according to the attribute configuration information;
the sending the transaction message to a billing node in a block chain network includes:
and determining a target channel according to the channel number, and sending the transaction message to an accounting node in a target block chain of the block chain network through the target channel.
4. The method of claim 3, wherein broadcasting the execution result within the blockchain network comprises:
and determining a target block chain in the block chain network according to the channel number, and broadcasting the execution result in the target block chain.
5. The method of claim 1, wherein the listening for the execution result in the blockchain network comprises:
creating a subscription object for monitoring an execution result of the transaction message in the blockchain network;
and monitoring an execution result in the block chain network through the subscription object.
6. The method of claim 1, wherein sending the transaction message to a billing node in a blockchain network comprises:
and sending the transaction message to a billing node in a block chain network through the output gateway of the micro service.
7. The method of claim 2, wherein the listening for transaction events in the blockchain network comprises:
and monitoring a verification node in the block chain network through the access gateway of the micro service to acquire the transaction event.
8. A control device configured under a microservice framework, the device comprising:
a transaction message processing module, configured to: determining a transaction message according to attribute configuration information of the micro service, and sending the transaction message to a billing node in a block chain network;
an execution result processing module to: the accounting node executes a contract to obtain an execution result related to the transaction message, and broadcasts the execution result in the block chain network;
a configuration validation module to: monitoring the execution result in the block chain network, and updating the configuration of the microservice according to the monitored transaction event so as to enable the updated configuration to take effect.
9. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, implements a control method configured under a micro-service framework according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a control method configured under a microservice framework as claimed in any one of claims 1 to 7.
CN201911033342.2A 2019-10-28 2019-10-28 Control method and device for configuration under micro-service framework, medium and electronic equipment Active CN110780979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911033342.2A CN110780979B (en) 2019-10-28 2019-10-28 Control method and device for configuration under micro-service framework, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911033342.2A CN110780979B (en) 2019-10-28 2019-10-28 Control method and device for configuration under micro-service framework, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110780979A true CN110780979A (en) 2020-02-11
CN110780979B CN110780979B (en) 2021-01-26

Family

ID=69387161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911033342.2A Active CN110780979B (en) 2019-10-28 2019-10-28 Control method and device for configuration under micro-service framework, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110780979B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231010A (en) * 2020-09-28 2021-01-15 四川新网银行股份有限公司 Application configuration information management and dynamic updating method based on OSGI (open service gateway initiative) specification
CN113067904A (en) * 2021-06-02 2021-07-02 支付宝(杭州)信息技术有限公司 Method for building block chain sub-network and block chain system
CN113067903A (en) * 2021-06-02 2021-07-02 支付宝(杭州)信息技术有限公司 Method for building block chain sub-network and block chain system
CN113127499A (en) * 2021-05-13 2021-07-16 重庆新致金服信息技术有限公司 Block chain-based micro-service method, equipment and medium
CN113259464A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Method for building block chain sub-network and block chain system
CN113691569A (en) * 2020-05-18 2021-11-23 顺丰科技有限公司 Dynamic extended billing method and device based on alliance chain
CN113726828A (en) * 2020-05-25 2021-11-30 北京北信源软件股份有限公司 High-concurrency credible block chain system and method supporting micro service

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453288A (en) * 2016-09-29 2017-02-22 上海和付信息技术有限公司 Asynchronous mode supporting distributed micro service framework system and implementation method thereof
CN108134696A (en) * 2017-12-15 2018-06-08 云宏信息科技股份有限公司 A kind of micro services configuration update method and device
CN108270874A (en) * 2018-02-05 2018-07-10 武汉斗鱼网络科技有限公司 The update method and device of application program
CN109995713A (en) * 2017-12-30 2019-07-09 华为技术有限公司 Service processing method and relevant device in a kind of micro services frame
CN110149396A (en) * 2019-05-20 2019-08-20 华南理工大学 A kind of platform of internet of things construction method based on micro services framework
US20190312792A1 (en) * 2018-04-10 2019-10-10 Zscaler, Inc. State management across distributed services using cryptographically bound journals

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453288A (en) * 2016-09-29 2017-02-22 上海和付信息技术有限公司 Asynchronous mode supporting distributed micro service framework system and implementation method thereof
CN108134696A (en) * 2017-12-15 2018-06-08 云宏信息科技股份有限公司 A kind of micro services configuration update method and device
CN109995713A (en) * 2017-12-30 2019-07-09 华为技术有限公司 Service processing method and relevant device in a kind of micro services frame
CN108270874A (en) * 2018-02-05 2018-07-10 武汉斗鱼网络科技有限公司 The update method and device of application program
US20190312792A1 (en) * 2018-04-10 2019-10-10 Zscaler, Inc. State management across distributed services using cryptographically bound journals
CN110149396A (en) * 2019-05-20 2019-08-20 华南理工大学 A kind of platform of internet of things construction method based on micro services framework

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691569A (en) * 2020-05-18 2021-11-23 顺丰科技有限公司 Dynamic extended billing method and device based on alliance chain
CN113726828A (en) * 2020-05-25 2021-11-30 北京北信源软件股份有限公司 High-concurrency credible block chain system and method supporting micro service
CN113726828B (en) * 2020-05-25 2023-07-25 北京北信源软件股份有限公司 High concurrency trusted blockchain system and method supporting micro-services
CN112231010A (en) * 2020-09-28 2021-01-15 四川新网银行股份有限公司 Application configuration information management and dynamic updating method based on OSGI (open service gateway initiative) specification
CN112231010B (en) * 2020-09-28 2023-06-06 四川新网银行股份有限公司 Method for managing and dynamically updating application configuration information based on OSGI (open service gateway initiative) specification
CN113127499A (en) * 2021-05-13 2021-07-16 重庆新致金服信息技术有限公司 Block chain-based micro-service method, equipment and medium
CN113127499B (en) * 2021-05-13 2023-04-18 重庆新致金服信息技术有限公司 Block chain-based micro-service method, equipment and medium
CN113067904A (en) * 2021-06-02 2021-07-02 支付宝(杭州)信息技术有限公司 Method for building block chain sub-network and block chain system
CN113067903A (en) * 2021-06-02 2021-07-02 支付宝(杭州)信息技术有限公司 Method for building block chain sub-network and block chain system
CN113259464A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Method for building block chain sub-network and block chain system
CN113259464B (en) * 2021-06-02 2021-11-02 支付宝(杭州)信息技术有限公司 Method for building block chain sub-network and block chain system

Also Published As

Publication number Publication date
CN110780979B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN110780979B (en) Control method and device for configuration under micro-service framework, medium and electronic equipment
CN102984214B (en) A kind of method and device realizing business migration in telecom cloud
US10977076B2 (en) Method and apparatus for processing a heterogeneous cluster-oriented task
CN113505520A (en) Method, device and system for supporting heterogeneous federated learning
CN102591724A (en) Method and device for information interaction
CN110717132A (en) Data collection method and pushing method for full-link monitoring system and related equipment
CN110309108A (en) Data acquisition and storage method, device, electronic equipment, storage medium
CN103154905A (en) Automated analysis of composite applications
CN114339733A (en) Model training method and related equipment
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
CN112019596B (en) Message pushing method and device based on message routing configuration and electronic equipment
CN111680869A (en) Method and device for monitoring release strategy and electronic equipment
CN109739724B (en) Data monitoring method, system, electronic device and storage medium
CN109412970B (en) Data transfer system, data transfer method, electronic device, and storage medium
CN113360558B (en) Data processing method, data processing device, electronic equipment and storage medium
CN115460265A (en) Interface calling method, device, equipment and medium
CN111681093B (en) Method and device for displaying resource page and electronic equipment
CN114661826A (en) Data processing method, device and equipment based on block chain
CN112711602B (en) Method and device for running stored procedure, database system and storage medium
CN113672200A (en) Microservice processing method and device, storage medium and electronic equipment
CN113542323A (en) Service processing method, device, equipment and computer readable storage medium
CN112749193A (en) Workflow processing method and device, storage medium and electronic equipment
CN108989586B (en) IVR implementation method, system, equipment and storage medium
CN110389785B (en) Big data processing system and method, electronic equipment and storage medium
CN109857396B (en) Component construction method and device, storage medium and electronic equipment

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Patentee after: Jingdong Technology Information Technology Co.,Ltd.

Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Patentee before: Jingdong Shuke Haiyi Information Technology Co.,Ltd.

Address after: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Patentee after: Jingdong Shuke Haiyi Information Technology Co.,Ltd.

Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Patentee before: BEIJING HAIYI TONGZHAN INFORMATION TECHNOLOGY Co.,Ltd.