Service registration and service calling method and system based on Nacos

A technology of service registration and service invocation, which is applied in the field of service registration and invocation, can solve the problems of not supporting environment isolation, high transformation cost, and inability to request configuration requests, etc., and achieve the effect of improving convenience and accurate invocation

Pending Publication Date: 2022-05-13
杭州玳数科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the current application service registration process, although Nacos (service registration center) is also used, it is necessary to transform the corresponding application into a microservice and introduce related microservice dependencies. The related transformation costs are too high, and the current application service registration process does not support Environmental isolation related functions, that is, when an application deploys multiple instances, it cannot be requested to the corresponding instance through different request configurations

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Service registration and service calling method and system based on Nacos
  • Service registration and service calling method and system based on Nacos
  • Service registration and service calling method and system based on Nacos

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0021] figure 1 It is a flowchart of a Nacos-based service registration and service invocation method according to an embodiment of the present invention.

[0022] Such as figure 1 As shown, the Nacos-based service registration and service invocation method in the embodiment of the present invention includes the following steps:

[0023] S1. Obtain configuration service information of service registration, where the configuration service information includes...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a Nacos-based service registration and service calling method and system, and the method comprises the following steps: obtaining configuration service information of service registration, the configuration service information comprising an environment isolation identifier; obtaining service registration request information according to the configuration service information; requesting Nacos to perform service registration according to the service registration request information and obtaining a service registration list; defining a service call domain name according to the environment isolation identifier; and calling the service instance in the service registration list according to the service calling domain name request Nacos. According to the method, the project does not need to be transformed into micro-service, micro-service related dependence does not need to be introduced, so that the service registration convenience can be improved, the environment isolation function can be realized by introducing the environment isolation identifier, different configuration requests can be configured to corresponding service instances, and the service registration efficiency is improved. And in addition, accurate calling of the corresponding service instance can be realized.

Description

technical field [0001] The present invention relates to the technical field of service registration and invocation, in particular to a Nacos-based service registration and service invocation method and a Nacos-based service registration and service invocation system. Background technique [0002] In the current application service registration process, although Nacos (service registration center) is also used, it is necessary to transform the corresponding application into a microservice and introduce related microservice dependencies. The related transformation costs are too high, and the current application service registration process does not support Environment isolation-related functions, that is, when an application deploys multiple instances, it cannot be requested to the corresponding instance through different request configurations. Contents of the invention [0003] In order to solve the above technical problems, the present invention provides a Nacos-based ser...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L9/40H04L67/63
CPCH04L63/10H04L63/02
Inventor 陈海涛杨秦敏宁海元
Owner 杭州玳数科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products