CN112202929A - Service access method, device and equipment in micro-service architecture - Google Patents

Service access method, device and equipment in micro-service architecture Download PDF

Info

Publication number
CN112202929A
CN112202929A CN202011379268.2A CN202011379268A CN112202929A CN 112202929 A CN112202929 A CN 112202929A CN 202011379268 A CN202011379268 A CN 202011379268A CN 112202929 A CN112202929 A CN 112202929A
Authority
CN
China
Prior art keywords
service
service instance
request
list
determining
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
CN202011379268.2A
Other languages
Chinese (zh)
Other versions
CN112202929B (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.)
New Cloud Technology Group Co ltd
Original Assignee
Hunan New Cloudnet 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 Hunan New Cloudnet Technology Co ltd filed Critical Hunan New Cloudnet Technology Co ltd
Priority to CN202011379268.2A priority Critical patent/CN112202929B/en
Publication of CN112202929A publication Critical patent/CN112202929A/en
Application granted granted Critical
Publication of CN112202929B publication Critical patent/CN112202929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/104Grouping of entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a service access method in a micro-service architecture, which is applied to a gateway and comprises the following steps: when an object access request is received, determining a request service instance list corresponding to the object access request; acquiring all service instances from a registration center, and grouping the service instances according to the strategy configuration parameters of the service instances in all the service instances to obtain a grouped service instance list; determining a target service access linked list according to the strategy configuration parameters of each grouped service instance list and the request service instance list; and distributing the object access request to each target service instance in the target service access linked list. Therefore, the matching degree of the target service access linked list obtained according to the method and the object access request is higher, and therefore the accuracy and the efficiency of service access can be relatively improved. The application also discloses a service access device, equipment and a computer readable storage medium in the micro service architecture, which all have the beneficial effects.

Description

Service access method, device and equipment in micro-service architecture
Technical Field
The present invention relates to the field of service access, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for service access in a micro service architecture.
Background
The microservice architecture is a new technology for creating and deploying applications and services around business domain components in the cloud. In the micro-service architecture, a gray scale service and a corresponding gray scale user can be preset, and only the gray scale user can access the gray scale service so as to repair and redevelop the gray scale service according to the use condition of the gray scale user. When a gray-scale user initiates an object access request, a corresponding target service access linked list needs to be set for the object access request, and which service instances can be accessed by the object access request is determined. In the prior art, generally, a corresponding target service access linked list is directly configured for each object access request in advance, so that the object access request performs service access according to the target service access linked list. However, according to the method in the prior art, there may be a case where the service instance in the service access linked list does not exist, resulting in an unreachable object access request.
Therefore, how to improve the accuracy and efficiency of service access is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of this, an object of the present invention is to provide a service access method in a micro-service architecture, which can improve accuracy and efficiency of service access; another object of the present invention is to provide a service access device, a device and a computer readable storage medium in a micro-service architecture, all of which have the above advantages.
In order to solve the above technical problem, the present invention provides a service access method in a micro service architecture, which is applied to a gateway, and includes:
when an object access request is received, determining a request service instance list corresponding to the object access request;
acquiring all service instances from a registration center, and grouping each service instance according to the strategy configuration parameters of each service instance in all the service instances to obtain a grouped service instance list;
determining a target service access linked list according to the strategy configuration parameters of each grouped service instance list and the request service instance list;
and distributing the object access request to each target service instance in the target service access linked list.
Preferably, further comprising:
and when the service instance corresponding to the request service instance does not exist in the service instances of the target service to be accessed by the object access request, sending corresponding first prompt information.
Preferably, further comprising:
when the number of times of receiving the object access request reaches a preset number of times and a corresponding target service access linked list is not determined, determining a missing service instance;
and determining an alternative service instance from the service instances of the target service, and determining the target service access linked list by using the alternative service instance.
Preferably, the process of obtaining all service instances from the registry and grouping each service instance according to the policy configuration parameter of each service instance in all service instances to obtain a grouped service instance list specifically includes:
acquiring all the service instances from the registration center;
respectively judging whether each service instance in all the service instances is preset with the policy configuration parameters;
if yes, acquiring the strategy configuration parameters;
if not, setting corresponding strategy configuration parameters for the service instance according to a preset rule;
and grouping each service instance according to the strategy configuration parameters of each service instance to obtain the grouped service instance list.
Preferably, when the number of times of receiving the object access request reaches the preset number of times and the corresponding target service access linked list is not determined, the method further includes:
and sending out corresponding second prompt information.
Preferably, the process of determining the request service instance list corresponding to the object access request when the object access request is received specifically includes:
when the object access request is received, determining a request service name of a target service corresponding to the object access request;
determining a name service instance list corresponding to the request service name in the registration center according to the request service name;
and determining the request service instance list according to the policy configuration parameters of the user identity of the target user of the object access request and the name service instance list.
Preferably, the policy configuration parameters specifically include: group, environment, and version.
To solve the above technical problem, the present invention further provides a service access device in a micro service architecture, including:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a request service instance list corresponding to an object access request when the object access request is received;
the grouping module is used for acquiring all service instances from a registration center and grouping each service instance according to the strategy configuration parameters of each service instance in all the service instances to obtain a grouped service instance list;
a second determining module, configured to determine a target service access linked list according to the policy configuration parameters of each packet service instance list and the request service instance list;
and the setting module is used for distributing the object access request to each target service instance in the target service access linked list.
To solve the above technical problem, the present invention further provides a service access device in a micro service architecture, including:
a memory for storing a computer program;
a processor for implementing the steps of the service access method in any one of the above-mentioned microservice architectures when executing the computer program.
To solve the above technical problem, the present invention further provides a computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the service access method in any one of the above microservices architectures.
The invention provides a service access method in a micro-service architecture, which is applied to a gateway and comprises the following steps: when an object access request is received, determining a request service instance list corresponding to the object access request; acquiring all service instances from a registration center, and grouping each service instance according to the strategy configuration parameters of each service instance in all the service instances to obtain a grouped service instance list; determining a target service access linked list according to the strategy configuration parameters of each grouped service instance list and the request service instance list; and distributing the object access request to each target service instance in the target service access linked list. Therefore, the target service access linked list in the method is determined by self-adaptive matching according to the object access request and the grouped service instance list determined by all the service instances in the registry, so that the matching degree of the target service access linked list and the object access request is higher, and the accuracy and the efficiency of service access can be relatively improved.
In order to solve the technical problem, the invention further provides a service access device, equipment and a computer readable storage medium in the micro-service architecture, which all have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a service access method in a micro service architecture according to an embodiment of the present invention;
FIG. 2 is a flowchart of a service access method in another micro-service architecture according to an embodiment of the present invention;
fig. 3 is a flowchart of a service access method in a micro service architecture according to another embodiment of the present invention;
fig. 4 is a structural diagram of a service access device in a micro-service architecture according to an embodiment of the present invention;
fig. 5 is a structural diagram of a service access device in a micro service architecture according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core of the embodiment of the invention is to provide a service access method in a micro-service architecture, which can improve the accuracy and efficiency of service access; another core of the present invention is to provide a service access device, a device and a computer readable storage medium in a micro service architecture, all having the above advantages.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a service access method in a micro service architecture according to an embodiment of the present invention. As shown in fig. 1, a service access method in a micro-service architecture, applied to a gateway, includes:
s10: when an object access request is received, a list of requested service instances corresponding to the object access request is determined.
Specifically, the object access request refers to request information to access a target service initiated by a client, and the specific type of the object access request is not limited in this embodiment. Specifically, after receiving the object access request, the corresponding request service instance list is determined according to the request service instance corresponding to the object access request. It is understood that, in the present embodiment, the request service instance list generally includes at least one request service instance for subsequent operations.
S20: and acquiring all service instances from the registration center, and grouping the service instances according to the policy configuration parameters of the service instances in all the service instances to obtain a grouped service instance list.
Specifically, all service instances are obtained from the registration center, and the service instances form a service instance list, that is, the service instance list including all the service instances is determined according to all the obtained service instances; and then grouping the service instances according to the strategy configuration parameters of the service instances in the service instance list to obtain a grouped service instance list.
It should be noted that the policy configuration parameters are set according to actual requirements, and this embodiment does not specifically limit this. It can be understood that after all the service instances of the registry are grouped, at least one grouped service instance list is obtained, and the policy configuration parameters of each service instance in the same grouped service instance list are the same.
S30: determining a target service access linked list according to the strategy configuration parameters of each grouped service instance list and the request service instance list;
s40: and distributing the object access request to each target service instance in the target service access linked list.
Specifically, a grouped service instance list corresponding to the strategy configuration parameters of the request service instance list is determined from the grouped service instance list, and a corresponding target service access linked list is determined according to each service instance in the grouped service instance list; namely, selecting a group service instance list corresponding to the policy configuration parameters of the request service instance list, wherein each service instance in the selected group service instance list is a target service instance, and the target service instance is the access range of the object access request; and then the object access request is distributed to each target service instance in the target service access linked list so as to carry out object access on the target service according to the target service instance.
The service access method in the micro-service architecture provided by the embodiment of the invention is applied to a gateway and comprises the following steps: when an object access request is received, determining a request service instance list corresponding to the object access request; acquiring all service instances from a registration center, and grouping the service instances according to the strategy configuration parameters of the service instances in all the service instances to obtain a grouped service instance list; determining a target service access linked list according to the strategy configuration parameters of each grouped service instance list and the request service instance list; and distributing the object access request to each target service instance in the target service access linked list. Therefore, the target service access linked list in the method is determined by self-adaptive matching according to the object access request and the grouped service instance list determined by all the service instances in the registry, so that the matching degree of the target service access linked list and the object access request is higher, and the accuracy and the efficiency of service access can be relatively improved.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, the service access method in the micro service architecture further includes:
and when the service instance corresponding to the request service instance does not exist in the service instances of the target service to be accessed by the object access request, sending out corresponding first prompt information.
Specifically, in this embodiment, after receiving the object access request and determining the corresponding requested service instance according to the object access request, the service instance of the target service corresponding to the object access request is determined, and it is determined whether a service instance corresponding to the requested service instance exists in each service instance of the target service to be accessed by the object access request, and if not, a preset prompting device is further triggered to send out first prompting information to prompt a user that the target service access linked list corresponding to the object access request cannot be obtained currently.
Referring to fig. 2, fig. 2 is a flowchart illustrating a service access method in another micro-service architecture according to an embodiment of the present invention. Specifically, the process of determining the request service instance list corresponding to the object access request when the object access request is received specifically includes:
s11: receiving an object access request, and determining a corresponding request service instance according to the object access request;
s12: determining a service instance of a target service corresponding to the object access request, and judging whether a service instance corresponding to the request service instance exists in each service instance of the target service to be accessed by the object access request; if yes, calling S13, and if no, calling S14;
s13: determining a request service instance list corresponding to the object access request;
s14: and sending out first prompt information.
It should be noted that, in this embodiment, a specific type of the first prompt message is not limited, and for example, the first prompt message may be sent by triggering a buzzer, an indicator light, or other prompt device.
As a preferred embodiment, further comprising:
s50: when the number of times of receiving the object access request reaches a preset number of times and a corresponding target service access linked list is not determined, determining a missing service instance;
s60: and determining an alternative service instance from the service instances of the target service, and determining a target service access linked list by using the alternative service instance.
Specifically, in the actual operation, the object access requests which cannot be successfully responded are counted, that is, after the object access requests are received, if the corresponding target service access linked list is not determined according to the object access requests, the counting is accumulated; when the number of times of receiving the object access request reaches the preset number, and the corresponding target service access linked list cannot be determined aiming at the object access requests, the fact that some service instances required to be accessed by the object access request do not exist in the target service to be accessed by the object access request is shown, and therefore the missing service instances are determined. Then, a substitute service instance corresponding to the missing service instance is determined from the service instances of the target service, and the target service access linked list is determined by using the substitute service instance, that is, the substitute service instance capable of substituting the missing service instance is determined in advance, and the substitute service instance is used for substituting the missing service instance to generate the corresponding target service access linked list.
Therefore, according to the method of the embodiment, when the missing service instance exists in the target service and the corresponding target service access linked list cannot be generated, the substitute service instance can be used for replacing the missing service instance to generate the corresponding target service access linked list, the condition that the object access request is unreachable is avoided, and the accuracy and the efficiency of service access are further improved.
On the basis of the foregoing embodiments, the present embodiment further describes and optimizes the technical solution, and specifically, fig. 3 is a flowchart of a service access method in a microservice architecture according to another embodiment of the present invention. As shown in fig. 3, in a service access method in the micro service architecture, S20: the process of obtaining all service instances from the registry and grouping the service instances according to the policy configuration parameters of the service instances in all the service instances to obtain a grouped service instance list specifically comprises the following steps:
s21: acquiring all service instances from a registration center;
s22: respectively judging whether each service instance in all the service instances is preset with a strategy configuration parameter; if so, call S23; if not, calling S24;
s23: acquiring a strategy configuration parameter;
s24: setting corresponding strategy configuration parameters for the service instance according to preset rules;
s25: grouping the service instances according to the strategy configuration parameters of the service instances to obtain a grouped service instance list.
Specifically, in this embodiment, first, all service instances are obtained from the registry, and the service instances correspond to a service instance list; then respectively judging whether each service instance in all the service instances is preset with a strategy configuration parameter; namely, judging whether each service instance in the service instance list is preset with a strategy configuration parameter or not; if yes, directly obtaining the strategy configuration parameters of the service instance; otherwise, setting corresponding policy configuration parameters for the service instance according to a preset rule; and grouping the service instances according to the strategy configuration parameters of the service instances so as to obtain a grouped service instance list.
It should be noted that, in this embodiment, default policy configuration parameters may be preset, and when it is required to set corresponding policy configuration parameters for a service instance that is not set with policy configuration parameters in advance according to a preset rule, the default policy configuration parameters are directly used to set policy configuration parameters for the corresponding service instance.
As a preferred embodiment, the policy configuration parameters specifically include: group, environment, and version.
It should be noted that the group includes a cunw group, the environment includes a normal environment and a gray environment, and the version refers to a version number corresponding to the service instance; in actual operation, the configuration center can dynamically modify the policy configuration parameters of a certain service instance, so that the policy configuration parameters of each service instance can be flexibly adjusted.
Therefore, the embodiment of the present invention further considers the situation that the service instance of the registry may not have the preset policy configuration parameters, so that the embodiment of the present invention sets the corresponding policy configuration parameters for the service instance according to the preset rule, so as to group the service instances, thereby comprehensively and completely obtaining the grouped service instance list.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, when the number of times of receiving the object access request reaches the preset number of times and the corresponding target service access linked list is not determined, the method further includes:
and sending out corresponding second prompt information.
Specifically, in this embodiment, when the number of times of receiving the object access request reaches the preset number of times and the corresponding target service access linked list is not determined, the preset prompting device is further triggered to send out the corresponding second prompting information.
It should be noted that the first prompt message and the second prompt message may be different prompt messages sent by the same prompt device, that is, in actual operation, different working states of the prompt device may be set to be different prompt messages, and different prompt messages are used to prompt different situations. For example, the blinking and the lighting of the indicator light may be set as the first prompt information and the second prompt information, or the prolonged sounding and the short sounding of the buzzer may be set as the first prompt information and the second prompt information, respectively.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, when an object access request is received, the process of determining a request service instance list corresponding to the object access request specifically includes:
when an object access request is received, determining a request service name of a target service corresponding to the object access request;
determining a name service instance list corresponding to the request service name in the registration center according to the request service name;
and determining a request service instance list according to the policy configuration parameters of the user identity of the target user of the object access request and the name service instance list.
Specifically, in this embodiment, when an object access request is received, a request service name of a target service corresponding to the object access request is first determined; the request service name is information for identifying a corresponding target service, and therefore the request service name may also be identification information of other types, which is not limited in this embodiment; then, determining a name service instance list corresponding to the request service name from all service instances in the registration center, namely, the name of each service instance in the name service instance list is the same as the request service name; and then, determining a request service instance list according to the corresponding relation between the policy configuration parameters of the user identity of the target user of the object access request and the name service instance list, namely, determining the request service instance list corresponding to the policy configuration parameters of the user identity of the target user of the current object access request from each name service instance list.
Therefore, according to the method of the embodiment, the request service instance list can be determined more comprehensively and completely.
The foregoing describes in detail an embodiment of a service access method in a micro service architecture provided by the present invention, and the present invention further provides a service access device, an apparatus, and a computer-readable storage medium in a micro service architecture corresponding to the method.
Fig. 4 is a structural diagram of a service access device in a micro service architecture according to an embodiment of the present invention, and as shown in fig. 4, the service access device in the micro service architecture includes:
a first determining module 41, configured to determine, when an object access request is received, a request service instance list corresponding to the object access request;
the grouping module 42 is used for acquiring all service instances from the registration center, and grouping the service instances according to the strategy configuration parameters of the service instances in all the service instances to obtain a grouped service instance list;
a second determining module 43, configured to determine a target service access linked list according to the policy configuration parameters of each group service instance list and the request service instance list;
and the setting module 44 is used for distributing the object access request to each target service instance in the target service access linked list.
The service access device in the micro-service architecture provided by the embodiment of the invention has the beneficial effect of the service access method in the micro-service architecture.
As a preferred embodiment, a service access device in a microservice architecture further comprises:
the first prompt module is used for sending corresponding first prompt information when the service instance corresponding to the request service instance does not exist in the service instances of the target service to be accessed by the object access request.
As a preferred embodiment, a service access device in a microservice architecture further comprises:
the third determining module is used for determining a missing service instance when the frequency of receiving the object access request reaches the preset frequency and the corresponding target service access linked list is not determined;
and the fourth determining module is used for determining a substitute service instance from the service instances of the target service and determining the target service access linked list by using the substitute service instance.
As a preferred embodiment, a service access device in a microservice architecture further comprises:
and the second prompting module is used for sending corresponding second prompting information when the frequency of receiving the object access request reaches a preset frequency and the corresponding target service access linked list is not determined.
Fig. 5 is a structural diagram of a service access device in a micro service architecture according to an embodiment of the present invention, and as shown in fig. 5, a service access device in a micro service architecture includes:
a memory 51 for storing a computer program;
a processor 52 for implementing the steps of the service access method in the above-described microservice architecture when executing the computer program.
The service access equipment in the micro-service architecture provided by the embodiment of the invention has the beneficial effect of the service access method in the micro-service architecture.
To solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the service access method in the above microservice architecture.
The computer-readable storage medium provided by the embodiment of the invention has the beneficial effect of the service access method in the micro-service architecture.
The method, apparatus, device and computer readable storage medium for accessing services in the micro service architecture provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are set forth only to help understand the method and its core ideas of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (9)

1. A service access method in a micro-service architecture is applied to a gateway, and is characterized by comprising the following steps:
when an object access request is received, determining a request service instance list corresponding to the object access request;
acquiring all service instances from a registration center, and grouping each service instance according to the strategy configuration parameters of each service instance in all the service instances to obtain a grouped service instance list;
determining a target service access linked list according to the strategy configuration parameters of each grouped service instance list and the request service instance list;
when the number of times of receiving the object access request reaches a preset number of times and a corresponding target service access linked list is not determined, determining a missing service instance;
determining a substitute service instance from the service instances of the target service, and determining the target service access linked list by using the substitute service instance;
and distributing the object access request to each target service instance in the target service access linked list.
2. The method of claim 1, further comprising:
and when the service instance corresponding to the request service instance does not exist in the service instances of the target service to be accessed by the object access request, sending corresponding first prompt information.
3. The method according to claim 1, wherein the process of obtaining all service instances from a registry and grouping each of the service instances according to the policy configuration parameters of each of the service instances to obtain a grouped service instance list specifically comprises:
acquiring all the service instances from the registration center;
respectively judging whether each service instance in all the service instances is preset with the policy configuration parameters;
if yes, acquiring the strategy configuration parameters;
if not, setting corresponding strategy configuration parameters for the service instance according to a preset rule;
and grouping each service instance according to the strategy configuration parameters of each service instance to obtain the grouped service instance list.
4. The method of claim 1, wherein when the number of times the object access request is received reaches the preset number of times and no corresponding target service access linked list is determined, the method further comprises:
and sending out corresponding second prompt information.
5. The method according to claim 1, wherein the process of determining the list of requested service instances corresponding to the object access request when the object access request is received specifically comprises:
when the object access request is received, determining a request service name of a target service corresponding to the object access request;
determining a name service instance list corresponding to the request service name in the registration center according to the request service name;
and determining the request service instance list according to the policy configuration parameters of the user identity of the target user of the object access request and the name service instance list.
6. The method according to any one of claims 1 to 5, wherein the policy configuration parameters specifically include: group, environment, and version.
7. A service access device in a microservice architecture, comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a request service instance list corresponding to an object access request when the object access request is received;
the grouping module is used for acquiring all service instances from a registration center and grouping each service instance according to the strategy configuration parameters of each service instance in all the service instances to obtain a grouped service instance list;
a second determining module, configured to determine a target service access linked list according to the policy configuration parameters of each packet service instance list and the request service instance list; when the number of times of receiving the object access request reaches a preset number of times and a corresponding target service access linked list is not determined, determining a missing service instance; determining a substitute service instance from the service instances of the target service, and determining the target service access linked list by using the substitute service instance;
and the setting module is used for distributing the object access request to each target service instance in the target service access linked list.
8. A service access device in a microservice architecture, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the service access method in the microservice architecture of any of claims 1 to 6 when executing said computer program.
9. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the service access method in the microservice architecture according to any one of the claims 1 to 6.
CN202011379268.2A 2020-12-01 2020-12-01 Service access method, device and equipment in micro-service architecture Active CN112202929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011379268.2A CN112202929B (en) 2020-12-01 2020-12-01 Service access method, device and equipment in micro-service architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011379268.2A CN112202929B (en) 2020-12-01 2020-12-01 Service access method, device and equipment in micro-service architecture

Publications (2)

Publication Number Publication Date
CN112202929A true CN112202929A (en) 2021-01-08
CN112202929B CN112202929B (en) 2021-03-26

Family

ID=74034344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011379268.2A Active CN112202929B (en) 2020-12-01 2020-12-01 Service access method, device and equipment in micro-service architecture

Country Status (1)

Country Link
CN (1) CN112202929B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338769A (en) * 2021-12-22 2022-04-12 浙江中控技术股份有限公司 Access request processing method and device

Citations (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301947A (en) * 2016-08-31 2017-01-04 广州唯品会信息科技有限公司 Business information processing system and method
CN108683516A (en) * 2018-03-14 2018-10-19 聚好看科技股份有限公司 A kind of upgrade method of application example, device and system
US20190028537A1 (en) * 2017-07-18 2019-01-24 Wipro Limited Method and system for dynamically handling load on a computer network
CN109391655A (en) * 2017-08-09 2019-02-26 腾讯科技(深圳)有限公司 Service gray scale dissemination method, device, system and storage medium
CN109688191A (en) * 2018-10-24 2019-04-26 华为技术有限公司 Traffic scheduling method and communication device
CN109739552A (en) * 2019-01-04 2019-05-10 深圳壹账通智能科技有限公司 Micro services gray scale dissemination method, device, computer equipment and storage medium
CN109791482A (en) * 2016-07-22 2019-05-21 思科技术公司 Scalable service is found in micro services environment
CN109814910A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Automate gray scale dissemination method, device, computer system and storage medium
CN109995713A (en) * 2017-12-30 2019-07-09 华为技术有限公司 Service processing method and relevant device in a kind of micro services frame
US20190220529A1 (en) * 2018-01-18 2019-07-18 Sap Se Artifact deployment for application managed service instances
CN110062043A (en) * 2019-04-16 2019-07-26 杭州朗和科技有限公司 Service administering method, service controlling device, storage medium and electronic equipment
CN110311820A (en) * 2019-07-05 2019-10-08 山东云缦智能科技有限公司 A kind of micro services cluster upgrade method of continual service
CN110377437A (en) * 2019-07-19 2019-10-25 深圳前海微众银行股份有限公司 Communication means, computer equipment and storage medium between a kind of micro services
CN110489139A (en) * 2019-07-03 2019-11-22 平安科技(深圳)有限公司 A kind of real-time data processing method and its relevant device based on micro services
CN110753031A (en) * 2019-09-18 2020-02-04 平安科技(深圳)有限公司 Micro-service-framework-based gray level combining method and device and computer equipment
CN110784409A (en) * 2019-10-31 2020-02-11 湖南御家科技有限公司 Spring Cloud-based micro-service gray level publishing method
US20200133737A1 (en) * 2018-10-29 2020-04-30 Pivotal Software, Inc. Independent services platform
CN111124431A (en) * 2019-12-31 2020-05-08 贵阳货车帮科技有限公司 Service callback method, service processing method, device, equipment and storage medium
CN111163085A (en) * 2019-12-29 2020-05-15 北京车与车科技有限公司 Gray level release scene optimization method
CN111586095A (en) * 2020-03-26 2020-08-25 中国平安财产保险股份有限公司 Micro-service-based gray scale publishing method and device, computer equipment and storage medium
CN111615066A (en) * 2020-02-07 2020-09-01 中国海洋大学 Distributed micro-service registration and calling method based on broadcast
CN111736872A (en) * 2020-06-22 2020-10-02 平安健康保险股份有限公司 Gray scale release upgrading method and device, computer system and readable storage medium
CN111800462A (en) * 2020-05-28 2020-10-20 中国平安财产保险股份有限公司 Micro-service instance processing method and device, computer equipment and storage medium
CN111897571A (en) * 2020-08-04 2020-11-06 上海非码网络科技有限公司 Gray scale publishing method and system based on Spring Cloud
CN112000348A (en) * 2020-07-28 2020-11-27 金蝶医疗软件科技有限公司 Control method and device for service gray release and computer equipment

Patent Citations (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109791482A (en) * 2016-07-22 2019-05-21 思科技术公司 Scalable service is found in micro services environment
CN106301947A (en) * 2016-08-31 2017-01-04 广州唯品会信息科技有限公司 Business information processing system and method
US20190028537A1 (en) * 2017-07-18 2019-01-24 Wipro Limited Method and system for dynamically handling load on a computer network
CN109391655A (en) * 2017-08-09 2019-02-26 腾讯科技(深圳)有限公司 Service gray scale dissemination method, device, system and storage medium
CN109995713A (en) * 2017-12-30 2019-07-09 华为技术有限公司 Service processing method and relevant device in a kind of micro services frame
US20190220529A1 (en) * 2018-01-18 2019-07-18 Sap Se Artifact deployment for application managed service instances
CN108683516A (en) * 2018-03-14 2018-10-19 聚好看科技股份有限公司 A kind of upgrade method of application example, device and system
CN109688191A (en) * 2018-10-24 2019-04-26 华为技术有限公司 Traffic scheduling method and communication device
US20200133737A1 (en) * 2018-10-29 2020-04-30 Pivotal Software, Inc. Independent services platform
CN109814910A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Automate gray scale dissemination method, device, computer system and storage medium
CN109739552A (en) * 2019-01-04 2019-05-10 深圳壹账通智能科技有限公司 Micro services gray scale dissemination method, device, computer equipment and storage medium
CN110062043A (en) * 2019-04-16 2019-07-26 杭州朗和科技有限公司 Service administering method, service controlling device, storage medium and electronic equipment
CN110489139A (en) * 2019-07-03 2019-11-22 平安科技(深圳)有限公司 A kind of real-time data processing method and its relevant device based on micro services
CN110311820A (en) * 2019-07-05 2019-10-08 山东云缦智能科技有限公司 A kind of micro services cluster upgrade method of continual service
CN110377437A (en) * 2019-07-19 2019-10-25 深圳前海微众银行股份有限公司 Communication means, computer equipment and storage medium between a kind of micro services
CN110753031A (en) * 2019-09-18 2020-02-04 平安科技(深圳)有限公司 Micro-service-framework-based gray level combining method and device and computer equipment
CN110784409A (en) * 2019-10-31 2020-02-11 湖南御家科技有限公司 Spring Cloud-based micro-service gray level publishing method
CN111163085A (en) * 2019-12-29 2020-05-15 北京车与车科技有限公司 Gray level release scene optimization method
CN111124431A (en) * 2019-12-31 2020-05-08 贵阳货车帮科技有限公司 Service callback method, service processing method, device, equipment and storage medium
CN111615066A (en) * 2020-02-07 2020-09-01 中国海洋大学 Distributed micro-service registration and calling method based on broadcast
CN111586095A (en) * 2020-03-26 2020-08-25 中国平安财产保险股份有限公司 Micro-service-based gray scale publishing method and device, computer equipment and storage medium
CN111800462A (en) * 2020-05-28 2020-10-20 中国平安财产保险股份有限公司 Micro-service instance processing method and device, computer equipment and storage medium
CN111736872A (en) * 2020-06-22 2020-10-02 平安健康保险股份有限公司 Gray scale release upgrading method and device, computer system and readable storage medium
CN112000348A (en) * 2020-07-28 2020-11-27 金蝶医疗软件科技有限公司 Control method and device for service gray release and computer equipment
CN111897571A (en) * 2020-08-04 2020-11-06 上海非码网络科技有限公司 Gray scale publishing method and system based on Spring Cloud

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338769A (en) * 2021-12-22 2022-04-12 浙江中控技术股份有限公司 Access request processing method and device
CN114338769B (en) * 2021-12-22 2024-04-12 浙江中控技术股份有限公司 Access request processing method and device

Also Published As

Publication number Publication date
CN112202929B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
US11064325B2 (en) Method of discovering services provided by a network repository function
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
CN110557357B (en) Remote procedure call protocol self-adaption method, related device and server
CN108184233B (en) Number carrying method and system
EP3855702A1 (en) Blockchain-based service processing method and system
CN110336848B (en) Scheduling method, scheduling system and scheduling equipment for access request
CN110912972B (en) Service processing method, system, electronic equipment and readable storage medium
CN110213331B (en) Service request processing method, terminal device, electronic device and storage medium
CN104967537A (en) Alarm information pushing method and device
CN112202929B (en) Service access method, device and equipment in micro-service architecture
CN112765520A (en) Message pushing method, device, equipment and storage medium
CN111400039A (en) Control method and device of cloud platform, cloud platform system and electronic equipment
CN111049901A (en) Load balancing method, load balancing system and registration server
CN110417876B (en) Session method, node server in distributed system and master control equipment
CN113810474B (en) Request distribution method and terminal
CN110784358A (en) Method and device for constructing network call relation topological graph
EP3672203A1 (en) Distribution method for distributed data computing, device, server and storage medium
CN107425994B (en) Method, terminal and server for realizing remote parameter management
CN106790354B (en) Communication method and device for preventing data congestion
CN113556407B (en) Interface calling method and device for identification analysis node and electronic equipment
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium
CN108781215B (en) Network service implementation method, service controller and communication system
CN109324914A (en) Service calling method, service call device and central server
CN111726394B (en) Equipment offline detection method and related device thereof
CN112486698A (en) Micro-service access method and related device

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park.

Patentee after: New Cloud Technology Group Co.,Ltd.

Country or region after: China

Address before: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park.

Patentee before: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd.

Country or region before: China