CN117640363B - Micro-service configuration and management and control method and system - Google Patents
Micro-service configuration and management and control method and system Download PDFInfo
- Publication number
- CN117640363B CN117640363B CN202410094623.3A CN202410094623A CN117640363B CN 117640363 B CN117640363 B CN 117640363B CN 202410094623 A CN202410094623 A CN 202410094623A CN 117640363 B CN117640363 B CN 117640363B
- Authority
- CN
- China
- Prior art keywords
- service
- user terminal
- micro
- local area
- area network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000000977 initiatory effect Effects 0.000 claims abstract description 72
- 230000008859 change Effects 0.000 claims abstract description 14
- 238000007726 management method Methods 0.000 claims description 22
- 238000004891 communication Methods 0.000 claims description 8
- 238000010276 construction Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the technical field of computer service, and provides a micro-service configuration and management and control method and system, which are used for judging whether a user terminal initiates a micro-service request currently based on request service attribute information of the user terminal, determining gateway addresses of the user terminal initiating the micro-service request, constructing local area networks of all the user terminals initiating the micro-service request, facilitating micro-service processing for corresponding user terminals by using the same service terminal, and improving uniformity of micro-service processing; identifying the user terminal in the local area network, which has completed the micro service request, returning the corresponding micro service processing result to the corresponding user terminal, and performing connection change processing on the local area network to avoid the user terminal occupying the connection service terminal for a long time; when the local area network is not in the user terminal connection saturation state, the user terminal update connection processing is carried out on the local area network, so that other user terminals can timely obtain micro service processing from the service terminal, and the efficiency and reliability of micro service configuration and management and control are improved.
Description
Technical Field
The present invention relates to the field of computer services, and in particular, to a method and system for configuring and controlling a microservice.
Background
The terminals such as smart phones or portable computers and the like need to perform data auxiliary operation in the working process, which relates to micro-services, and in order to ensure that the terminals can obtain properly matched micro-services in the task execution process, the terminals are connected to corresponding servers, and corresponding micro-service processing is provided for the terminals through the servers. However, the server needs to provide micro service processing for a plurality of terminals at the same time, which requires the server to perform reasonable and effective configuration operation on micro service requests provided by different terminals, so that the processing efficiency and accuracy of the micro service requests are improved; meanwhile, the micro-service processing capability of the server is limited, if the terminal still occupies the connection server after the micro-service processing is completed, the micro-service processing capability of the server cannot be effectively utilized, and the coverage range for providing micro-service configuration for the terminal is reduced.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention provides a micro-service configuration and management and control method and system, which are used for judging whether a user terminal initiates a micro-service request currently based on request service attribute information of the user terminal and determining gateway addresses of the user terminal initiating the micro-service request so as to construct local area networks of all the user terminals initiating the micro-service request, thereby facilitating micro-service processing for corresponding user terminals by using the same service terminal and improving uniformity and efficiency of the micro-service processing; the user terminal which has completed the micro service request in the local area network is identified, the corresponding micro service processing result is returned to the corresponding user terminal, and the local area network performs connection change processing, so that the user terminal is prevented from occupying the connection service terminal for a long time; and when the local area network is not in the user terminal connection saturation state, the user terminal update connection processing is performed on the local area network, so that other user terminals can timely acquire micro-service processing operation from the service terminal, and the efficiency and reliability of micro-service configuration and management and control are improved.
The invention provides a micro-service configuration and control method, which comprises the following steps:
step S1, identifying a service request of a user terminal and determining service attribute information of the user terminal; judging whether the service currently requested by the user terminal belongs to micro service or not based on the request service attribute information, and performing access gateway address identification processing on the user terminal initiating the micro service request;
step S2, constructing a local area network of all the user terminals initiating the micro service request in the network based on the respective access gateway addresses of all the user terminals initiating the micro service request; determining a service terminal accessed to the local area network based on the micro-service processing requirement information in the local area network, and generating a micro-service queue to be processed about the local area network;
step S3, based on the processing state information of the service terminal to the to-be-processed micro service queue, identifying the user terminal in the local area network, which has completed the micro service request, and returning the corresponding micro service processing result to the corresponding user terminal; performing connection change processing on the local area network on the user terminal which confirms that the micro-service processing result is received;
Step S4, judging whether the local area network is in a user terminal access saturation state or not based on the current user terminal access state in the local area network; and when the local area network is not in the user terminal access saturation state, performing user terminal updating connection processing on the local area network.
Further, in the step S1, a service request of a user terminal is identified, and request service attribute information of the user terminal is determined; based on the request service attribute information, judging whether the service currently requested by the user terminal belongs to micro service, and performing access gateway address identification processing on the user terminal initiating micro service request, including:
extracting identity information of a user terminal from a service request of the user terminal, and judging whether the identity information exists in a preset identity list or not; if not, rejecting the service request of the user terminal; if the service request exists, identifying the service request, and determining content keyword information of the user terminal requesting the service;
comparing the content keyword information of the request service with a preset micro-service keyword list, if the content keyword information of the request service exists in the preset micro-service keyword list, judging that the service currently requested by the user terminal belongs to micro-service, and performing access gateway address identification processing on the user terminal initiating the micro-service request to obtain an access gateway address of the user terminal in a network.
Further, in the step S2, a local area network is built in the network for all the user terminals that initiate the micro service request based on the respective access gateway addresses of all the user terminals that initiate the micro service request; determining a service terminal accessing to the local area network based on the micro service processing requirement information in the local area network, and generating a to-be-processed micro service queue about the local area network, wherein the method comprises the following steps:
determining the shortest connection path between all the user terminals initiating the micro service request in the network based on the access gateway addresses of all the user terminals initiating the micro service request in the network; constructing a local area network for all user terminals initiating micro service requests within the network based on the shortest connection path;
acquiring the micro-service processing total data volume information of all user terminals in the local area network, and estimating the micro-service processing operation volume in the local area network based on the micro-service processing total data volume information; determining a service terminal accessed to the local area network based on the micro service processing operand;
and generating a to-be-processed micro-service queue related to the local area network based on the sequence of the micro-service processing data volume respectively initiated by all user terminals in the local area network from small to large.
Further, in the step S3, based on the processing status information of the service terminal on the to-be-processed micro service queue, a user terminal in the local area network, for which the micro service request has been completed, is identified, and a corresponding micro service processing result is returned to a corresponding user terminal; performing connection change processing on the local area network for the user terminal confirming that the micro service processing result is received, wherein the connection change processing comprises the following steps:
acquiring processing progress information of the service terminal on all micro services to be processed under the micro service queue to be processed, identifying the user terminal which has completed the micro service request in the local area network based on the processing progress information, and returning a corresponding micro service processing result to a corresponding user terminal through a communication channel between the service terminal and the user terminal which has completed the micro service request in the local area network;
and based on the access gateway address of the user terminal receiving the micro service processing result, interrupting the connection between the user terminal receiving the micro service processing result and the local area network.
Further, in the step S4, based on the current access state of the user terminal in the local area network, whether the local area network is in the access saturation state of the user terminal is determined; and when the local area network is not in the user terminal access saturation state, performing user terminal update connection processing on the local area network, including:
Acquiring the current user terminal access quantity in the local area network, and judging that the local area network is in a user terminal access saturation state if the user terminal access quantity is greater than or equal to a preset quantity threshold value; otherwise, judging that the local area network is not in the access saturation state of the user terminal;
and when the local area network is not in the access saturation state of the user terminal, accessing other user terminals which are positioned outside the local area network and initiate the micro-service request to the local area network.
The invention also provides a micro-service configuration and management and control system, comprising:
the user terminal identification module is used for identifying the service request of the user terminal and determining the service attribute information of the request of the user terminal; judging whether the service currently requested by the user terminal belongs to micro-service or not based on the request service attribute information;
the user terminal gateway address identification module is used for carrying out access gateway address identification processing on the user terminal initiating the micro service request;
the local area network construction and processing module is used for constructing a local area network of all the user terminals initiating the micro service request in the network based on the respective access gateway addresses of all the user terminals initiating the micro service request; determining a service terminal accessed to the local area network based on the micro-service processing requirement information in the local area network;
A to-be-processed micro-service queue generating module for generating a to-be-processed micro-service queue for the local area network;
the micro-service processing module is used for identifying the user terminal which completes the micro-service request in the local area network based on the processing state information of the service terminal on the micro-service queue to be processed, and returning the corresponding micro-service processing result to the corresponding user terminal;
the local area network connection changing module is used for carrying out connection changing processing on the local area network on the user terminal which confirms that the micro service processing result is received;
the local area network connection updating module is used for judging whether the local area network is in a user terminal access saturation state or not based on the current user terminal access state in the local area network; and when the local area network is not in the user terminal access saturation state, performing user terminal updating connection processing on the local area network.
Further, the user terminal identification module is used for identifying a service request of a user terminal and determining request service attribute information of the user terminal; based on the request service attribute information, judging whether the service currently requested by the user terminal belongs to micro service or not, including:
Extracting identity information of a user terminal from a service request of the user terminal, and judging whether the identity information exists in a preset identity list or not; if not, rejecting the service request of the user terminal; if the service request exists, identifying the service request, and determining content keyword information of the user terminal requesting the service;
comparing the content keyword information of the requested service with a preset micro-service keyword list, and judging that the service currently requested by the user terminal belongs to micro-service if the content keyword information of the requested service exists in the preset micro-service keyword list;
the user terminal gateway address identification module is used for carrying out access gateway address identification processing on the user terminal initiating the micro service request, and comprises the following steps:
and carrying out access gateway address identification processing on the user terminal initiating the micro service request to obtain the access gateway address of the user terminal in the network.
Further, the local area network construction and processing module is used for constructing a local area network about all the user terminals initiating the micro service request in the network based on the respective access gateway addresses of all the user terminals initiating the micro service request; determining a service terminal accessing to the local area network based on the micro service processing requirement information in the local area network, including:
Determining the shortest connection path between all the user terminals initiating the micro service request in the network based on the access gateway addresses of all the user terminals initiating the micro service request in the network; constructing a local area network for all user terminals initiating micro service requests within the network based on the shortest connection path;
acquiring the micro-service processing total data volume information of all user terminals in the local area network, and estimating the micro-service processing operation volume in the local area network based on the micro-service processing total data volume information; determining a service terminal accessed to the local area network based on the micro service processing operand;
the pending micro service queue generating module is configured to generate a pending micro service queue for the local area network, including:
and generating a to-be-processed micro-service queue related to the local area network based on the sequence of the micro-service processing data volume respectively initiated by all user terminals in the local area network from small to large.
Further, the micro service processing module is configured to identify, based on processing status information of the service terminal on the to-be-processed micro service queue, a user terminal in the local area network that has completed a micro service request, and return a corresponding micro service processing result to a corresponding user terminal, where the method includes:
Acquiring processing progress information of the service terminal on all micro services to be processed under the micro service queue to be processed, identifying the user terminal which has completed the micro service request in the local area network based on the processing progress information, and returning a corresponding micro service processing result to a corresponding user terminal through a communication channel between the service terminal and the user terminal which has completed the micro service request in the local area network;
the local area network connection changing module is configured to perform connection changing processing on the local area network for a user terminal that confirms that a micro service processing result is received, and includes:
and based on the access gateway address of the user terminal receiving the micro service processing result, interrupting the connection between the user terminal receiving the micro service processing result and the local area network.
Further, the local area network connection updating module is used for judging whether the local area network is in a user terminal access saturation state or not based on the current user terminal access state in the local area network; and when the local area network is not in the user terminal access saturation state, performing user terminal update connection processing on the local area network, including:
Acquiring the current user terminal access quantity in the local area network, and judging that the local area network is in a user terminal access saturation state if the user terminal access quantity is greater than or equal to a preset quantity threshold value; otherwise, judging that the local area network is not in the access saturation state of the user terminal;
and when the local area network is not in the access saturation state of the user terminal, accessing other user terminals which are positioned outside the local area network and initiate the micro-service request to the local area network.
Compared with the prior art, the micro-service configuration and management method and system are based on the request service attribute information of the user terminal, judge whether the user terminal initiates the micro-service request currently, and determine the gateway address of the user terminal initiating the micro-service request, so that local area networks of all the user terminals initiating the micro-service request are constructed, micro-service processing is conveniently carried out for the corresponding user terminal by using the same service terminal, and the uniformity and efficiency of the micro-service processing are improved; the user terminal which has completed the micro service request in the local area network is identified, the corresponding micro service processing result is returned to the corresponding user terminal, and the local area network performs connection change processing, so that the user terminal is prevented from occupying the connection service terminal for a long time; and when the local area network is not in the user terminal connection saturation state, the user terminal update connection processing is performed on the local area network, so that other user terminals can timely acquire micro-service processing operation from the service terminal, and the efficiency and reliability of micro-service configuration and management and control are improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for provisioning and controlling micro services according to the present invention;
FIG. 2 is a schematic diagram of a micro-service configuration and management system according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flow chart of a micro service configuration and management method according to an embodiment of the present invention is shown. The micro-service configuration and control method comprises the following steps:
step S1, identifying a service request of a user terminal and determining request service attribute information of the user terminal; judging whether the service currently requested by the user terminal belongs to micro service or not based on the request service attribute information, and performing access gateway address identification processing on the user terminal initiating the micro service request;
step S2, constructing a local area network of all the user terminals initiating the micro service request in the network based on the respective access gateway addresses of all the user terminals initiating the micro service request; determining a service terminal accessed to the local area network based on the micro-service processing requirement information in the local area network, and generating a micro-service queue to be processed about the local area network;
step S3, based on the processing state information of the service terminal to the micro service queue to be processed, identifying the user terminal in the local area network, which has completed the micro service request, and returning the corresponding micro service processing result to the corresponding user terminal; performing connection change processing on the local area network for the user terminal which confirms that the micro service processing result is received;
Step S4, judging whether the local area network is in a user terminal access saturation state or not based on the current user terminal access state in the local area network; and when the local area network is not in the user terminal access saturation state, the user terminal updating connection processing is carried out on the local area network.
The micro service configuration and control method judges whether the user terminal initiates a micro service request currently based on the request service attribute information of the user terminal, and determines gateway addresses of the user terminal initiating the micro service request, so that local area networks of all the user terminals initiating the micro service request are constructed, micro service processing is conveniently carried out for corresponding user terminals by using the same service terminal, and uniformity and efficiency of the micro service processing are improved; the user terminal which has completed the micro service request in the local area network is identified, the corresponding micro service processing result is returned to the corresponding user terminal, and the local area network performs connection change processing, so that the user terminal is prevented from occupying the connection service terminal for a long time; and when the local area network is not in the user terminal connection saturation state, the user terminal update connection processing is performed on the local area network, so that other user terminals can timely acquire micro-service processing operation from the service terminal, and the efficiency and reliability of micro-service configuration and management and control are improved.
Preferably, in the step S1, a service request of a user terminal is identified, and request service attribute information of the user terminal is determined; based on the request service attribute information, judging whether the service currently requested by the user terminal belongs to micro service, and performing access gateway address identification processing on the user terminal initiating micro service request, including:
extracting identity information of the user terminal from a service request of the user terminal, and judging whether the identity information exists in a preset identity list or not; if not, rejecting the service request of the user terminal; if the service request exists, identifying the service request, and determining content keyword information of the user terminal for requesting the service;
and comparing the content keyword information of the request service with a preset micro-service keyword list, judging that the service currently requested by the user terminal belongs to micro-service if the content keyword information of the request service exists in the preset micro-service keyword list, and performing access gateway address identification processing on the user terminal initiating the micro-service request to obtain an access gateway address of the user terminal in a network.
In the technical scheme, after the user terminal such as the smart phone or the portable computer initiates the service request, the terminal identity information identification and the content keyword information extraction of the requested service are carried out on the service request, the micro-service requirement of the user terminal is accurately identified, and the subsequent targeted micro-service processing on the matched service terminals selected by different user terminals is facilitated. And performing access gateway address identification processing on the user terminal initiating the micro service request to obtain the access gateway address of the user terminal in the network, thereby providing a reliable network environment for constructing a corresponding local area network to perform micro service processing on the corresponding user terminal.
Preferably, in this step S2, a local area network is built inside the network with respect to all the user terminals that initiate the micro service request, based on their respective access gateway addresses; determining a service terminal accessing the local area network based on the micro-service processing requirement information in the local area network, and generating a to-be-processed micro-service queue about the local area network, comprising:
determining the shortest connection path between all the user terminals initiating the micro service request in the network based on the access gateway addresses of all the user terminals initiating the micro service request in the network; constructing a local area network for all user terminals initiating micro service requests within the network based on the shortest connection path;
acquiring the micro-service processing total data volume information of all user terminals in the local area network, and estimating the micro-service processing operation volume in the local area network based on the micro-service processing total data volume information; determining a service terminal accessing the local area network based on the micro service processing operand;
and generating a to-be-processed micro-service queue related to the local area network based on the sequence of the micro-service processing data volume respectively initiated by all user terminals in the local area network from small to large.
In the technical scheme, based on the access gateway addresses of all the user terminals initiating the micro service requests in the network, the shortest connection paths of all the user terminals initiating the micro service requests in the network are determined, so that a local area network related to all the user terminals initiating the micro service requests is built in the network, the network connection stability in the local area network can be ensured, and the construction workload of the local area network can be reduced. In addition, based on the sequence that the micro-service processing data volume initiated by all user terminals in the local area network is from small to large, a micro-service queue to be processed about the local area network is generated, so that the service terminals accessed to the local area network can process all the micro-service requests to be processed orderly.
Preferably, in the step S3, based on the processing status information of the service terminal on the to-be-processed micro service queue, the user terminal in the local area network that has completed the micro service request is identified, and the corresponding micro service processing result is returned to the corresponding user terminal; performing connection change processing on the local area network for the user terminal confirming that the micro service processing result is received, including:
acquiring processing progress information of the service terminal on all micro services to be processed, which belong to the micro service queue to be processed, identifying the user terminal which has completed the micro service request in the local area network based on the processing progress information, and returning a corresponding micro service processing result to a corresponding user terminal through a communication channel between the service terminal and the user terminal which has completed the micro service request in the local area network;
And based on the access gateway address of the user terminal receiving the micro service processing result, interrupting the connection of the user terminal receiving the micro service processing result and the local area network.
In the technical scheme, based on the processing progress information, the user terminal which has completed the micro service request in the local area network is identified, and the corresponding micro service processing result is returned to the corresponding user terminal through the communication channel between the service terminal and the user terminal which has completed the micro service request in the local area network, so that the corresponding result can be returned to the user terminal in time, and the normal execution of the task of the user terminal is ensured. And based on the determination of the access gateway address of the user terminal receiving the micro-service processing result, the connection between the user terminal receiving the micro-service processing result and the local area network is interrupted, so that the user terminal receiving the micro-service processing result is prevented from occupying the connection service terminal for a long time, and the micro-service processing capability of the service terminal cannot be effectively released.
Preferably, in the step S4, based on the current access state of the ue in the lan, it is determined whether the lan is in the ue access saturation state; and when the local area network is not in the user terminal access saturation state, performing user terminal update connection processing on the local area network, including:
Acquiring the current user terminal access quantity in the local area network, and judging that the local area network is in a user terminal access saturation state if the user terminal access quantity is greater than or equal to a preset quantity threshold value; otherwise, judging that the local area network is not in the access saturation state of the user terminal;
and when the local area network is not in the access saturation state of the user terminal, accessing other user terminals which are positioned outside the local area network and initiate the micro-service request to the local area network.
In the technical scheme, the current access quantity of the user terminals in the local area network is obtained, so that whether the local area network is in a user terminal access saturation state or not is judged, and whether the local area network allows access to a new user terminal or not can be accurately judged. When the local area network is not in the user terminal access saturation state, other user terminals which are positioned outside the local area network and initiate micro service requests are accessed to the local area network, so that the service terminals inside the local area network can process the micro service requests of other user terminals timely and quickly.
Referring to fig. 2, a schematic diagram of a micro service configuration and management system according to an embodiment of the present invention is shown. The micro-service configuration and management system comprises:
The user terminal identification module is used for identifying the service request of the user terminal and determining the request service attribute information of the user terminal; judging whether the service currently requested by the user terminal belongs to micro-service or not based on the request service attribute information;
the user terminal gateway address identification module is used for carrying out access gateway address identification processing on the user terminal initiating the micro service request;
the local area network construction and processing module is used for constructing a local area network of all the user terminals initiating the micro service request in the network based on the respective access gateway addresses of all the user terminals initiating the micro service request; determining a service terminal accessed to the local area network based on the micro-service processing requirement information in the local area network;
the to-be-processed micro-service queue generating module is used for generating to-be-processed micro-service queues related to the local area network;
the micro-service processing module is used for identifying the user terminal which completes the micro-service request in the local area network based on the processing state information of the service terminal on the micro-service queue to be processed, and returning the corresponding micro-service processing result to the corresponding user terminal;
the local area network connection changing module is used for carrying out connection changing processing on the local area network on the user terminal which confirms that the micro service processing result is received;
The local area network connection updating module is used for judging whether the local area network is in a user terminal access saturation state or not based on the current user terminal access state in the local area network; and when the local area network is not in the user terminal access saturation state, the user terminal updating connection processing is carried out on the local area network.
The micro service configuration and management control system judges whether the user terminal initiates a micro service request currently based on the request service attribute information of the user terminal, and determines gateway addresses of the user terminal initiating the micro service request, so that local area networks of all the user terminals initiating the micro service request are constructed, micro service processing is conveniently carried out for corresponding user terminals by using the same service terminal, and uniformity and efficiency of the micro service processing are improved; the user terminal which has completed the micro service request in the local area network is identified, the corresponding micro service processing result is returned to the corresponding user terminal, and the local area network performs connection change processing, so that the user terminal is prevented from occupying the connection service terminal for a long time; and when the local area network is not in the user terminal connection saturation state, the user terminal update connection processing is performed on the local area network, so that other user terminals can timely acquire micro-service processing operation from the service terminal, and the efficiency and reliability of micro-service configuration and management and control are improved.
Preferably, the user terminal identification module is used for identifying a service request of a user terminal and determining request service attribute information of the user terminal; based on the request service attribute information, judging whether the service currently requested by the user terminal belongs to micro service or not, including:
extracting identity information of the user terminal from a service request of the user terminal, and judging whether the identity information exists in a preset identity list or not; if not, rejecting the service request of the user terminal; if the service request exists, identifying the service request, and determining content keyword information of the user terminal for requesting the service;
comparing the content keyword information of the request service with a preset micro-service keyword list, and judging that the service currently requested by the user terminal belongs to micro-service if the content keyword information of the request service exists in the preset micro-service keyword list;
the user terminal gateway address identification module is used for carrying out access gateway address identification processing on the user terminal initiating the micro service request, and comprises the following steps:
and carrying out access gateway address identification processing on the user terminal initiating the micro service request to obtain the access gateway address of the user terminal in the network.
In the technical scheme, after the user terminal such as the smart phone or the portable computer initiates the service request, the terminal identity information identification and the content keyword information extraction of the requested service are carried out on the service request, the micro-service requirement of the user terminal is accurately identified, and the subsequent targeted micro-service processing on the matched service terminals selected by different user terminals is facilitated. And performing access gateway address identification processing on the user terminal initiating the micro service request to obtain the access gateway address of the user terminal in the network, thereby providing a reliable network environment for constructing a corresponding local area network to perform micro service processing on the corresponding user terminal.
Preferably, the local area network construction and processing module is configured to construct a local area network for all the user terminals initiating the micro service request in the network based on respective access gateway addresses of all the user terminals initiating the micro service request; based on the micro service processing requirement information in the local area network, determining the service terminal accessed to the local area network comprises the following steps:
determining the shortest connection path between all the user terminals initiating the micro service request in the network based on the access gateway addresses of all the user terminals initiating the micro service request in the network; constructing a local area network for all user terminals initiating micro service requests within the network based on the shortest connection path;
Acquiring the micro-service processing total data volume information of all user terminals in the local area network, and estimating the micro-service processing operation volume in the local area network based on the micro-service processing total data volume information; determining a service terminal accessing the local area network based on the micro service processing operand;
the pending micro service queue generating module is configured to generate a pending micro service queue for the local area network, including:
and generating a to-be-processed micro-service queue related to the local area network based on the sequence of the micro-service processing data volume respectively initiated by all user terminals in the local area network from small to large.
In the technical scheme, based on the access gateway addresses of all the user terminals initiating the micro service requests in the network, the shortest connection paths of all the user terminals initiating the micro service requests in the network are determined, so that a local area network related to all the user terminals initiating the micro service requests is built in the network, the network connection stability in the local area network can be ensured, and the construction workload of the local area network can be reduced. In addition, based on the sequence that the micro-service processing data volume initiated by all user terminals in the local area network is from small to large, a micro-service queue to be processed about the local area network is generated, so that the service terminals accessed to the local area network can process all the micro-service requests to be processed orderly.
Preferably, the micro service processing module is configured to identify, based on processing status information of the service terminal on the to-be-processed micro service queue, a user terminal in the local area network that has completed a micro service request, and return a corresponding micro service processing result to a corresponding user terminal, where the method includes:
acquiring processing progress information of the service terminal on all micro services to be processed, which belong to the micro service queue to be processed, identifying the user terminal which has completed the micro service request in the local area network based on the processing progress information, and returning a corresponding micro service processing result to a corresponding user terminal through a communication channel between the service terminal and the user terminal which has completed the micro service request in the local area network;
the local area network connection changing module is used for carrying out connection changing processing on the local area network on the user terminal which confirms that the micro service processing result is received, and comprises the following steps:
and based on the access gateway address of the user terminal receiving the micro service processing result, interrupting the connection of the user terminal receiving the micro service processing result and the local area network.
In the technical scheme, based on the processing progress information, the user terminal which has completed the micro service request in the local area network is identified, and the corresponding micro service processing result is returned to the corresponding user terminal through the communication channel between the service terminal and the user terminal which has completed the micro service request in the local area network, so that the corresponding result can be returned to the user terminal in time, and the normal execution of the task of the user terminal is ensured. And based on the access gateway address of the user terminal which determines the received micro service processing result, the connection between the user terminal which receives the micro service processing result and the local area network is interrupted, so that the user terminal which receives the micro service processing result is prevented from occupying the connection service terminal for a long time, and the micro service processing capability of the service terminal cannot be effectively released.
Preferably, the lan connection updating module is configured to determine whether the lan is in a user terminal access saturation state based on a current user terminal access state in the lan; and when the local area network is not in the user terminal access saturation state, performing user terminal update connection processing on the local area network, including:
acquiring the current user terminal access quantity in the local area network, and judging that the local area network is in a user terminal access saturation state if the user terminal access quantity is greater than or equal to a preset quantity threshold value; otherwise, judging that the local area network is not in the access saturation state of the user terminal;
and when the local area network is not in the access saturation state of the user terminal, accessing other user terminals which are positioned outside the local area network and initiate the micro-service request to the local area network.
In the technical scheme, the current access quantity of the user terminals in the local area network is obtained, so that whether the local area network is in a user terminal access saturation state or not is judged, and whether the local area network allows access to a new user terminal or not can be accurately judged. When the local area network is not in the user terminal access saturation state, other user terminals which are positioned outside the local area network and initiate micro service requests are accessed to the local area network, so that the service terminals inside the local area network can process the micro service requests of other user terminals timely and quickly.
As can be seen from the foregoing embodiments, the micro service configuration and management method and system determine whether a user terminal currently initiates a micro service request based on request service attribute information of the user terminal, and determine gateway addresses of the user terminal initiating the micro service request, so as to construct a local area network related to all user terminals initiating the micro service request, thereby facilitating micro service processing for corresponding user terminals by using the same service terminal, and improving uniformity and efficiency of micro service processing; the user terminal which has completed the micro service request in the local area network is identified, the corresponding micro service processing result is returned to the corresponding user terminal, and the local area network performs connection change processing, so that the user terminal is prevented from occupying the connection service terminal for a long time; and when the local area network is not in the user terminal connection saturation state, the user terminal update connection processing is performed on the local area network, so that other user terminals can timely acquire micro-service processing operation from the service terminal, and the efficiency and reliability of micro-service configuration and management and control are improved.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (8)
1. The micro-service configuration and control method is characterized by comprising the following steps:
step S1, identifying a service request of a user terminal and determining service attribute information of the user terminal; judging whether the service currently requested by the user terminal belongs to micro service or not based on the request service attribute information, and performing access gateway address identification processing on the user terminal initiating the micro service request;
step S2, constructing a local area network of all the user terminals initiating the micro service request in the network based on the respective access gateway addresses of all the user terminals initiating the micro service request; determining a service terminal accessing to the local area network based on the micro service processing requirement information in the local area network, and generating a micro service queue to be processed about the local area network, wherein the method comprises the steps of determining the shortest connection path of all user terminals initiating micro service requests in the network based on the access gateway addresses of all user terminals initiating micro service requests in the network; constructing a local area network for all user terminals initiating micro service requests within the network based on the shortest connection path; acquiring the micro-service processing total data volume information of all user terminals in the local area network, and estimating the micro-service processing operation volume in the local area network based on the micro-service processing total data volume information; determining a service terminal accessed to the local area network based on the micro service processing operand; generating a to-be-processed micro-service queue about the local area network based on the sequence from small to large of micro-service processing data volume respectively initiated by all user terminals in the local area network;
Step S3, based on the processing state information of the service terminal to the to-be-processed micro service queue, identifying the user terminal in the local area network, which has completed the micro service request, and returning the corresponding micro service processing result to the corresponding user terminal; performing connection change processing on the local area network on the user terminal which confirms that the micro-service processing result is received;
step S4, judging whether the local area network is in a user terminal access saturation state or not based on the current user terminal access state in the local area network; and when the local area network is not in the user terminal access saturation state, performing user terminal updating connection processing on the local area network.
2. The microservice configuration and management method of claim 1 wherein:
in the step S1, a service request of a user terminal is identified, and request service attribute information of the user terminal is determined; based on the request service attribute information, judging whether the service currently requested by the user terminal belongs to micro service, and performing access gateway address identification processing on the user terminal initiating micro service request, including:
extracting identity information of a user terminal from a service request of the user terminal, and judging whether the identity information exists in a preset identity list or not; if not, rejecting the service request of the user terminal; if the service request exists, identifying the service request, and determining content keyword information of the user terminal requesting the service;
Comparing the content keyword information of the request service with a preset micro-service keyword list, if the content keyword information of the request service exists in the preset micro-service keyword list, judging that the service currently requested by the user terminal belongs to micro-service, and performing access gateway address identification processing on the user terminal initiating the micro-service request to obtain an access gateway address of the user terminal in a network.
3. The microservice configuration and management method of claim 1 wherein:
in the step S3, based on the processing status information of the service terminal on the to-be-processed micro service queue, identifying the user terminal in the local area network that has completed the micro service request, and returning the corresponding micro service processing result to the corresponding user terminal; performing connection change processing on the local area network for the user terminal confirming that the micro service processing result is received, wherein the connection change processing comprises the following steps:
acquiring processing progress information of the service terminal on all micro services to be processed under the micro service queue to be processed, identifying the user terminal which has completed the micro service request in the local area network based on the processing progress information, and returning a corresponding micro service processing result to a corresponding user terminal through a communication channel between the service terminal and the user terminal which has completed the micro service request in the local area network;
And based on the access gateway address of the user terminal receiving the micro service processing result, interrupting the connection between the user terminal receiving the micro service processing result and the local area network.
4. The microservice configuration and management method of claim 1 wherein:
in the step S4, based on the current access state of the user terminal in the local area network, whether the local area network is in the access saturation state of the user terminal is judged; and when the local area network is not in the user terminal access saturation state, performing user terminal update connection processing on the local area network, including:
acquiring the current user terminal access quantity in the local area network, and judging that the local area network is in a user terminal access saturation state if the user terminal access quantity is greater than or equal to a preset quantity threshold value; otherwise, judging that the local area network is not in the access saturation state of the user terminal;
and when the local area network is not in the access saturation state of the user terminal, accessing other user terminals which are positioned outside the local area network and initiate the micro-service request to the local area network.
5. A micro-service configuration and management system, comprising:
The user terminal identification module is used for identifying the service request of the user terminal and determining the service attribute information of the request of the user terminal; judging whether the service currently requested by the user terminal belongs to micro-service or not based on the request service attribute information;
the user terminal gateway address identification module is used for carrying out access gateway address identification processing on the user terminal initiating the micro service request;
the local area network construction and processing module is used for constructing a local area network of all the user terminals initiating the micro service request in the network based on the respective access gateway addresses of all the user terminals initiating the micro service request; determining a service terminal accessing to the local area network based on the micro service processing requirement information in the local area network, wherein the service terminal comprises a shortest connection path between all user terminals initiating the micro service request in the network based on access gateway addresses of all user terminals initiating the micro service request in the network; constructing a local area network for all user terminals initiating micro service requests within the network based on the shortest connection path; acquiring the micro-service processing total data volume information of all user terminals in the local area network, and estimating the micro-service processing operation volume in the local area network based on the micro-service processing total data volume information; determining a service terminal accessed to the local area network based on the micro service processing operand;
The system comprises a to-be-processed micro-service queue generating module, a to-be-processed micro-service queue generating module and a processing module, wherein the to-be-processed micro-service queue generating module is used for generating a to-be-processed micro-service queue related to the local area network based on the sequence from small to large of micro-service processing data volume respectively initiated by all user terminals in the local area network;
the micro-service processing module is used for identifying the user terminal which completes the micro-service request in the local area network based on the processing state information of the service terminal on the micro-service queue to be processed, and returning the corresponding micro-service processing result to the corresponding user terminal;
the local area network connection changing module is used for carrying out connection changing processing on the local area network on the user terminal which confirms that the micro service processing result is received;
the local area network connection updating module is used for judging whether the local area network is in a user terminal access saturation state or not based on the current user terminal access state in the local area network; and when the local area network is not in the user terminal access saturation state, performing user terminal updating connection processing on the local area network.
6. The microservice configuration and management system of claim 5 wherein:
The user terminal identification module is used for identifying a service request of a user terminal and determining request service attribute information of the user terminal; based on the request service attribute information, judging whether the service currently requested by the user terminal belongs to micro service or not, including:
extracting identity information of a user terminal from a service request of the user terminal, and judging whether the identity information exists in a preset identity list or not; if not, rejecting the service request of the user terminal; if the service request exists, identifying the service request, and determining content keyword information of the user terminal requesting the service;
comparing the content keyword information of the requested service with a preset micro-service keyword list, and judging that the service currently requested by the user terminal belongs to micro-service if the content keyword information of the requested service exists in the preset micro-service keyword list;
the user terminal gateway address identification module is used for carrying out access gateway address identification processing on the user terminal initiating the micro service request, and comprises the following steps:
and carrying out access gateway address identification processing on the user terminal initiating the micro service request to obtain the access gateway address of the user terminal in the network.
7. The microservice configuration and management system of claim 5 wherein:
the micro service processing module is configured to identify, based on processing state information of the service terminal on the to-be-processed micro service queue, a user terminal in the local area network that has completed a micro service request, and return a corresponding micro service processing result to a corresponding user terminal, where the method includes:
acquiring processing progress information of the service terminal on all micro services to be processed under the micro service queue to be processed, identifying the user terminal which has completed the micro service request in the local area network based on the processing progress information, and returning a corresponding micro service processing result to a corresponding user terminal through a communication channel between the service terminal and the user terminal which has completed the micro service request in the local area network;
the local area network connection changing module is configured to perform connection changing processing on the local area network for a user terminal that confirms that a micro service processing result is received, and includes:
and based on the access gateway address of the user terminal receiving the micro service processing result, interrupting the connection between the user terminal receiving the micro service processing result and the local area network.
8. The microservice configuration and management system of claim 5 wherein:
the local area network connection updating module is used for judging whether the local area network is in a user terminal access saturation state or not based on the current user terminal access state in the local area network; and when the local area network is not in the user terminal access saturation state, performing user terminal update connection processing on the local area network, including:
acquiring the current user terminal access quantity in the local area network, and judging that the local area network is in a user terminal access saturation state if the user terminal access quantity is greater than or equal to a preset quantity threshold value; otherwise, judging that the local area network is not in the access saturation state of the user terminal;
and when the local area network is not in the access saturation state of the user terminal, accessing other user terminals which are positioned outside the local area network and initiate the micro-service request to the local area network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410094623.3A CN117640363B (en) | 2024-01-24 | 2024-01-24 | Micro-service configuration and management and control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410094623.3A CN117640363B (en) | 2024-01-24 | 2024-01-24 | Micro-service configuration and management and control method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117640363A CN117640363A (en) | 2024-03-01 |
CN117640363B true CN117640363B (en) | 2024-04-05 |
Family
ID=90016584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410094623.3A Active CN117640363B (en) | 2024-01-24 | 2024-01-24 | Micro-service configuration and management and control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117640363B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108123912A (en) * | 2016-11-28 | 2018-06-05 | 央视国际网络无锡有限公司 | A kind of micro services system for supporting P2P |
CN115344620A (en) * | 2022-10-19 | 2022-11-15 | 成都中科合迅科技有限公司 | Method for realizing data on-demand synchronization after front-end and back-end separation by user-defined data pool |
CN116301939A (en) * | 2023-03-17 | 2023-06-23 | 苏州德姆斯信息技术有限公司 | Micro-service deployment method, device, terminal and storage medium |
CN116471334A (en) * | 2023-04-17 | 2023-07-21 | 上海镁信健康科技股份有限公司 | Multi-environment service forwarding method for micro-service registry |
CN116821215A (en) * | 2022-11-30 | 2023-09-29 | 慧之安信息技术股份有限公司 | OPC UA server searching method based on port inquiry |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220164221A1 (en) * | 2020-11-23 | 2022-05-26 | Motorola Solutions, Inc. | Preserving persistent link connections during a cloud-based service system upgrade |
-
2024
- 2024-01-24 CN CN202410094623.3A patent/CN117640363B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108123912A (en) * | 2016-11-28 | 2018-06-05 | 央视国际网络无锡有限公司 | A kind of micro services system for supporting P2P |
CN115344620A (en) * | 2022-10-19 | 2022-11-15 | 成都中科合迅科技有限公司 | Method for realizing data on-demand synchronization after front-end and back-end separation by user-defined data pool |
CN116821215A (en) * | 2022-11-30 | 2023-09-29 | 慧之安信息技术股份有限公司 | OPC UA server searching method based on port inquiry |
CN116301939A (en) * | 2023-03-17 | 2023-06-23 | 苏州德姆斯信息技术有限公司 | Micro-service deployment method, device, terminal and storage medium |
CN116471334A (en) * | 2023-04-17 | 2023-07-21 | 上海镁信健康科技股份有限公司 | Multi-environment service forwarding method for micro-service registry |
Non-Patent Citations (2)
Title |
---|
3GPP.3GPP TS 23.501 V16.5.0.3GPP specs\archive.2020,全文. * |
王燕,伍军,周云霞.基于Spring_Cloud微服务构架的局域网智能管理系统设计.软件.2022,全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN117640363A (en) | 2024-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111367983B (en) | Database access method, system, device and storage medium | |
EP3664372B1 (en) | Network management method and related device | |
CN108924274B (en) | Domain name system DNS processing method and device, storage medium and electronic equipment | |
US20180077157A1 (en) | Method and system for identifying user information in social network | |
CN110267314B (en) | Method and device for switching network slices | |
WO2020228038A1 (en) | Domain name processing method, apparatus, electronic device, and storage medium | |
CN112328760A (en) | Service providing method, device and system | |
US20230342494A1 (en) | Data anonymization method and apparatus, and storage system | |
CN110213365B (en) | User access request processing method based on user partition and electronic equipment | |
CN112637223B (en) | Application protocol identification method and device, computer equipment and storage medium | |
CN107181624A (en) | A kind of method for connecting network, electronic equipment and computer-readable storage medium | |
CN106878052A (en) | A kind of customer shift method and device | |
CN117640363B (en) | Micro-service configuration and management and control method and system | |
CN112118189A (en) | Flow sampling method, computer equipment and computer readable storage medium | |
CN116821215A (en) | OPC UA server searching method based on port inquiry | |
CN115480934A (en) | Distributed data processing method, device, equipment and storage medium | |
CN111343101B (en) | Server current limiting method, device, electronic equipment and readable storage medium | |
CN113037792A (en) | Method, device and gateway for verifying service identification parameters | |
CN110059071A (en) | Data comparison monitoring method, system, equipment and medium based on storing process | |
JP2020057240A (en) | Data construction system for belonging area analysis, data construction program for belonging area analysis, and belonging area analysis system | |
CN108718285A (en) | Flow control methods, device and the server of cloud computing cluster | |
CN117424848B (en) | Node call optimization method, system, equipment and medium based on machine learning | |
CN112261051B (en) | User registration method, device and system | |
CN113726878A (en) | Session processing method, system, device and storage medium in cluster environment | |
CN114915610A (en) | Method, device, electronic equipment and storage medium for sending network request |
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 |