Micro-service registration method and device

A micro-service and registration information technology, applied in the computer field, can solve problems such as inability to obtain services and malicious attacks when calling terminals

CN110839029AActive Publication Date: 2020-02-25TENCENT TECH (SHENZHEN) CO LTD
10 Cites 13 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2020-02-25

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention discloses a micro-service registration method and device. The method comprises the following steps: receiving a registration request sent by a micro-service terminal; obtaining a public key of the micro-service terminal to decrypt signature data of the registration information, and detecting whether the information obtained by decrypting the signature data of the registration information is the same as the registration information of the micro-service or not; if yes, detecting whether a first name and a first check code exist in a storage space of the blockchainnetwork or not; if not, sending registration information and signature data of the registration information to each consensus node in the blockchain network; and if the consensus response returned byeach consensus node satisfies the consensus condition, calling the smart contract to store the registration information in the storage space of the blockchain network, and returning a registration completion response to the micro-service terminal for the registration request. By adopting the embodiment of the invention, the address of the micro-service can be prevented from being maliciously tampered, and the safety of the micro-service and the stability of the provided service are improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present application relates to the field of computer technology, and in particular to a microservice registration method and device. Background technique

[0002] In order to ensure security, the existing microservice registry (for example, zookeeper) can only be deployed in a mutually trusted distributed mirror. If, after a microservice terminal is hacked, the address of the registered microservice is maliciously modified in the registration center, causing other calling terminals to fail to obtain the corresponding service or be maliciously attacked through the address returned by the registration center. Contents of the invention

[0003] The embodiments of the present application provide a microservice registration method and device, which can prevent the address of the microservice from being maliciously tampered with, and improve the security of the microservice and the stability of the service provided.

[0004] In the first aspect, the e...

Examples

Embodiment Construction

[0042] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

[0043] It should be understood that the term "and / or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0044] The system involved in the embodiment of the present application may be a distributed system formed by connecting a client and multiple nodes (computing devices of any form in the access network, such as servers and user t...