CN112737942A - Service route switching method, device, equipment and medium - Google Patents

Service route switching method, device, equipment and medium Download PDF

Info

Publication number
CN112737942A
CN112737942A CN202011573346.2A CN202011573346A CN112737942A CN 112737942 A CN112737942 A CN 112737942A CN 202011573346 A CN202011573346 A CN 202011573346A CN 112737942 A CN112737942 A CN 112737942A
Authority
CN
China
Prior art keywords
service
name
switching
route
routing information
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
CN202011573346.2A
Other languages
Chinese (zh)
Other versions
CN112737942B (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.)
Shenzhen Bincent Technology Co Ltd
Original Assignee
Shenzhen Bincent 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 Shenzhen Bincent Technology Co Ltd filed Critical Shenzhen Bincent Technology Co Ltd
Priority to CN202011573346.2A priority Critical patent/CN112737942B/en
Publication of CN112737942A publication Critical patent/CN112737942A/en
Application granted granted Critical
Publication of CN112737942B publication Critical patent/CN112737942B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Routing of multiclass traffic

Abstract

The invention relates to the technical field of route switching, and discloses a service route switching method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring a switching service set in a switching request; acquiring a second service name associated with the first service name and a second service environment name from the service management platform; authenticating the switching identification code aiming at the second service name; acquiring first routing information matched with both the second service name and the second service environment name; according to the first service environment name and the second service environment name, performing environment analysis on the first routing information, and searching matched second routing information; switching a first service route corresponding to the first routing information to a second service route corresponding to the second routing information; and completing the service route switching of all the first service names. The invention realizes automatic batch switching of service routes, automatically matches proper route information and improves the efficiency of service route switching.

Description

Service route switching method, device, equipment and medium
Technical Field
The present invention relates to the field of routing switching technologies, and in particular, to a method, an apparatus, a device, and a medium for service routing switching.
Background
With the continuous development of the internet, the continuous update of the user requirements, the continuous update of the service platform, and the requirement of enterprises to switch the service platform of the historical application to the service platform of the new application in time to enjoy the faster, safer and more complete functions and performance brought by the service platform of the new application, in the switching process, the service route switching plays the most important role, because all services are accessed and communicated and transmitted by the service platform through the service route, the timeliness, accuracy and efficiency of the service route switching become more urgent, the existing technical scheme mostly collects and lists all the service names and service environment names needing to be switched manually, then, the maintainer lists the corresponding new service names and new service environment names according to the listed service names and service environment names, and select suitable service route to switch over, consume time long in this in-process, it is higher to invest in the cost of labor, can't provide the service during switching over, even under the artifical wrong condition of switching over, just need switch over again, increased the switching time undoubtedly and still increased the cost of labor, cause the loss of cost of enterprises, influence the promptness of service.
Disclosure of Invention
The invention provides a service route switching method, a service route switching device, computer equipment and a storage medium, and realizes the purpose.
A service route switching method comprises the following steps:
receiving a switching request from a switching user, and acquiring a switching service set in the switching request; the switching service set at least comprises a first service name, a first service environment name corresponding to the first service name and a switching identification code corresponding to the switching user;
acquiring a second service name associated with the first service name and a second service environment name corresponding to the second service name from a service management platform;
authenticating the switching identification code aiming at the second service name through the service management platform;
after the authentication is passed, acquiring first routing information matched with the second service name and the second service environment name from the service management platform;
according to the first service environment name and the second service environment name, performing environment analysis on the first routing information, and searching second routing information matched with the first routing information from the service management platform;
switching a first service route corresponding to the first routing information to a second service route corresponding to the second routing information, and triggering a switching completion instruction of the first service name;
and after detecting the switching completion instructions of all the first service names, confirming that the switching request is completed.
A service route switching apparatus comprising:
the system comprises a receiving module, a switching module and a switching module, wherein the receiving module is used for receiving a switching request from a switching user and acquiring a first service name, a first service environment name and a switching identification code corresponding to the switching user in the switching request;
the acquisition module is used for acquiring a second service name associated with the first service name and a second service environment name corresponding to the second service name from a service management platform;
the authentication module is used for authenticating the second service name for the switching identification code through the service management platform;
the matching module is used for acquiring first routing information matched with the second service name and the second service environment name from the service management platform after the authentication is passed;
the analysis module is used for carrying out environment analysis on the first routing information according to the first service environment name and the second service environment name and finding out second routing information matched with the first routing information from the service management platform;
a switching module, configured to switch a first service route corresponding to the first routing information to a second service route corresponding to the second routing information, and trigger a switching completion instruction of the first service name;
and the confirming module is used for confirming the completion of the switching request after detecting the switching completion instructions of all the first service names.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the service route switching method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned service route switching method.
The invention provides a service route switching method, a service route switching device, computer equipment and a storage medium, wherein a switching service set in a switching request is obtained by receiving the switching request from a switching user; the switching service set at least comprises a first service name, a first service environment name corresponding to the first service name and a switching identification code corresponding to the switching user; acquiring a second service name associated with the first service name and a second service environment name corresponding to the second service name from a service management platform; authenticating the switching identification code aiming at the second service name through the service management platform; after the authentication is passed, acquiring first routing information matched with the second service name and the second service environment name from the service management platform; according to the first service environment name and the second service environment name, performing environment analysis on the first routing information, and searching second routing information matched with the first routing information from the service management platform; switching a first service route corresponding to the first routing information to a second service route corresponding to the second routing information, and triggering a switching completion instruction of the first service name; after the switching completion instruction of all the first service names is detected, the switching request is confirmed to be completed, so that automatic batch switching of service routes is achieved, switching safety is improved in an authentication mode, appropriate route information is automatically matched through environment analysis, switching is carried out, automation of service route switching is completed, manual intervention of route switching operation is not needed, the effect of one-key seamless switching is achieved, service route switching efficiency is improved, and accuracy and reliability of service route switching are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of an application environment of a service route switching method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a service route switching method according to an embodiment of the present invention;
fig. 3 is a flowchart of step S20 of the service route switching method according to an embodiment of the invention;
fig. 4 is a flowchart of step S30 of the service route switching method according to an embodiment of the present invention;
fig. 5 is a flowchart of step S50 of the service route switching method according to an embodiment of the invention;
FIG. 6 is a functional block diagram of a switching module of the service route switching device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a computer device in an embodiment of the 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 some, not all, embodiments of the present invention. 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 service route switching method provided by the invention can be applied to the application environment shown in fig. 1, wherein a client (computer device) communicates with a server through a network. The client (computer device) includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, as shown in fig. 2, a method for switching service routes is provided, which mainly includes the following steps S10-S60:
s10, receiving a switching request from a switching user, and acquiring a switching service set in the switching request; the switching service set at least comprises a first service name, a first service environment name corresponding to the first service name and a switching identification code corresponding to the switching user.
Understandably, the switching user is a user for executing switching service routing, one switching user corresponds to one switching identification code, the switching identification code is a code of a unique identification of the switching user, after the switching user inputs and confirms that all first service names and first service environment names to be switched are completed, the switching user automatically generates the switching service set in the switching request according to all the first service names, the first service environment names and the switching identification codes, and triggers the switching request, and the switching service set indicates all service names to which the switching identification code needs to execute switching and a set of service environment names corresponding to all the service names.
Wherein, the first service name is a service name determined to be switched, the first service environment name is a service environment name determined to be applied to an environment of the first service name corresponding to the first service name, one first service name corresponds to one first service environment name, and the service name is a name under the service, for example: service names SC _ test _1, RPC _ test _2, SC _ online _1, etc., and service environment names are runtime environments under the service name corresponding thereto, such as: the service environment names are SC test environment, SC stable environment, RPC test environment, RPC stable environment, and the like, and the service route is a route providing a service under the service name corresponding to the service route, for example: the service routing is SC _1, RPC _1, SC _2 and the like, one service name and one service environment name are required to correspond to one service routing, and the service name and the service environment name indicate that all accessed clients or service ends under the service name are required to operate under the service environment corresponding to the service environment name, and the service routing is required to be accessed for mutual communication and routing interface scheduling between the accessed clients or service ends, so that calling between services is realized, the interface calling is a plurality of interfaces under the service routing, and through communication between the interfaces, mutual calling between services under two interfaces can be realized, so that calling between services is realized.
In an embodiment, before the step S10, that is, before the receiving the handover request from the handover user, the method includes:
s101, receiving switching content input by the switching user, and acquiring the switching identification code corresponding to the switching user.
Understandably, the switching user inputs the switching content on application software or an application webpage, the switching content is a service name and a service environment name which need to be switched to, the switching identification code corresponding to the switching user is acquired from an application database, the application database is a database which is communicated with the application software or the application webpage and can be applied to application execution, all registered and logged-in switching users and the switching identification codes which are in one-to-one correspondence with the registered and logged-in switching users are recorded in the application database, the switching user also refers to a user who has registered and logged in the due program software or the application webpage, and the application software is application software which is developed for executing a service route switching method and can be used at a client or a server, the application webpage is a webpage of an application program which is developed for executing the service route switching method and can be used at a client or a server.
S102, if the switching content is detected to be empty, all transitional service names are obtained from a service list comparison list in a service management platform, and the obtained transitional service names are determined as the first service names.
Understandably, if it is detected that no content is input into the switching content, all the transitional service names are obtained from a service list comparison list in the service management platform, the service management platform is a platform for managing all the service names, service environment names and service routes, the service management platform comprises the service list comparison list, the service list comparison list records all the transitional service names and transitional service environment names corresponding to the transitional service names, the transitional service names are service names which are determined to be transited, and the obtained transitional service names are recorded as the first service names.
S103, obtaining a transition service environment name corresponding to each transition service name from the service list comparison list, and determining the obtained transition service environment name as the first service environment name.
Understandably, the transitional service environment name corresponding to each transitional service name is obtained from the service list comparison list, the transitional service environment name is the service environment name which is determined to need to be transited to, and the obtained transitional service environment name is recorded as the first service environment name.
S104, packaging the switching identification code, all the first service names and all the first service environment names into the switching service set.
Understandably, the encapsulation process may encapsulate the switching identifier, all the first service names, and all the first service environment names according to a format of the switching service set, which is set according to a requirement.
The switching identification code corresponding to the switching user is acquired by receiving the switching content input by the switching user; if the switching content is detected to be empty, acquiring all transitional service names from a service list comparison list in a service management platform, and determining the acquired transitional service names as the first service names; acquiring transition service environment names corresponding to the transition service names from the service list comparison list, and determining the acquired transition service environment names as the first service environment names; the switching identification code, all the first service names and all the first service environment names are packaged into the switching service set, so that when the input switching content is empty, all the transitional service names are automatically determined as the first service names, all the transitional service environment names are determined as the first service environment names, and the switching service set is automatically packaged, the process of manually inputting all the transitional service names and the transitional service environment names is avoided, manual operation is simplified, and the service route switching efficiency is improved.
In an embodiment, after the step S101, that is, after the switching content that receives the input from the switching user acquires the switching identification code corresponding to the switching user, the method further includes:
and S105, if the switching content is detected not to be empty, checking the input entry service name and the entry service environment name corresponding to the input entry service name.
Understandably, the checking process is to determine whether the entered service name and the entered service environment name corresponding to the entered service name can be found in the service list comparison list and have a corresponding relationship, if the entered service name and the entered service environment name corresponding to the entered service name can be found in the service list comparison list and have a corresponding relationship, it is indicated that the entered service name and the entered service environment name corresponding to the entered service name are checked to be qualified, and if the entered service name and the entered service environment name corresponding to the entered service name cannot be found in the service list comparison list or have no corresponding relationship, it is indicated that the entered service name and the entered service environment name corresponding to the entered service name are checked to be failed.
The input service name is a service name input in the input switching content, and the input service environment name is a service environment name input in the input switching content.
S106, after the verification is qualified, determining the entry service name which is qualified by the verification as the first service name, and simultaneously determining the entry service environment name which corresponds to the entry service name which is qualified by the verification as the first service environment name and corresponding to the first service name.
S107, packaging the switching identification code, all the first service names and all the first service environment names into the switching service set.
The method and the device realize that the input recorded service name and the recorded service environment name corresponding to the input recorded service name are verified if the switching content is detected not to be empty; after the verification is qualified, determining the input service name qualified by the verification as the first service name, and simultaneously determining the input service environment name corresponding to the input service name qualified by the verification as the first service environment name and corresponding to the first service name; the switching identification code, all the first service names and all the first service environment names are packaged into the switching service set, so that automatic verification of the input service names and the input service environment names is realized, the input service names and the input service environment names qualified in verification are automatically packaged into the switching service set, manual operation is simplified, the automatic verification function is realized, the correctness of the input service names and the input service environment names is ensured, and the service route switching efficiency is improved.
In an embodiment, after the step S105, that is, after the input name of the logging service and the name of the logging service environment corresponding to the input name of the logging service are checked, the method further includes:
and S108, after the verification fails, displaying the result of the verification failure to the switching user.
Understandably, after the verification fails, recording the result of the verification failure, which indicates that the input name of the input service is incorrect or the name of the input service environment is incorrect or the corresponding relationship is incorrect, and the like, and displaying the result on the application software or the application webpage for showing to the switching user.
S20, obtain, from the service management platform, a second service name associated with the first service name and a second service environment name corresponding to the second service name.
Understandably, the service list in the service management platform records all transition service names and historical service names associated with the transition service names against a list, and also records historical service environment names corresponding to each of the historical service names, the transition service name is the determined service name needing transition, the historical service name is the historical or current service name, the historical service name is switched by the transition service name associated with the historical service name, the transition service environment name is the service environment name which is determined to need to be transitioned to, the historical service environment name is a historical or current service environment name, and the historical service environment name is replaced by the transition service environment name corresponding to the transition service name associated with the historical service name corresponding to the historical service environment name.
And searching a historical service environment name which is compared with the historical service name and determining the historical service environment name as the second service environment name.
In an embodiment, as shown in fig. 3, the step S20, namely, acquiring, from the service management platform, a second service name associated with the first service name and a second service environment name corresponding to the second service name, includes:
s201, a quick search algorithm is used for searching a transitional service name consistent with the first service name from a service list comparison list in the service management platform.
Understandably, the transitional service name consistent with the first service name is quickly found from the service list comparison list through the quick search algorithm.
Wherein, the fast search algorithm is to use the first service name as a mode character string, use the transition service name in the service management platform as a main character string, when the mode character string and the main character string are searched and matched, each pointer points to the current matched character (the main character string is a pointer i, the mode character string is a pointer j), on the premise of ensuring that the pointer i does not backtrack, the pointer j can only backtrack, wherein, the main character string is a character string to be matched, namely, the instruction data, the mode character string is a matched character string, namely, the update instruction, i is a pointer recording the matching progress in the main character string, j is the distance of backtracking of the pointer, which is equivalent to the distance of shifting the mode character string to the right, namely, when a certain character string fails to be matched, the backtrack position of the j pointer, for a given mode character string, wherein each character may possibly encounter matching failure, and then the corresponding j pointer needs to trace back, the specific trace back position is determined by the mode character string itself and has no relation with the main character string, the trace back position of the j pointer corresponding to each character in the mode character string can be obtained through an algorithm, the obtained result is correspondingly stored in an array (the default array name is next), the algorithm is that for a certain character in the mode character string, a character string in front of the certain character is extracted, the number of continuous identical character strings is respectively checked from two ends of the character string, on the basis of the obtained result, "+ 1" is obtained, the result is the j value corresponding to the character, the value corresponding to the first character of each mode string is 0, and the value corresponding to the second character is 1, for example: finding the next of the mode character string "abcarba", wherein 0 and 1 corresponding to the first two characters are fixed, for the character ' c ', the extracted character strings "ab", a ' and ' b ' are not equal, the number of the same character strings is 0, 0+1 is 1, and therefore the next value corresponding to ' c ' is 1; extracting 'abc' from the fourth character 'a', wherein the first character 'a' is not equal to the fourth character 'c', the same number is 0, and 0+1 is 1, so that the next value corresponding to 'a' is 1; extracting "abca" from the fifth character 'b', wherein the first 'a' and the last 'a' are the same, and the same number is 1, 1+1 is 2, so that the next value corresponding to 'b' is 2; extracting the sixth character 'a', wherein the first two characters 'ab' and the last two characters 'ab' are the same, and the same number is 2, 2+1 is 3, so that the next value corresponding to 'a' is 3; extracting the last character 'c', wherein the first character 'a' is the same as the last character 'a', the same number is 1, and 1+1 is 2, so that the next value corresponding to 'c' is 2; therefore, the value in the next array corresponding to the character string "abcarba" is (0, 1, 1, 1, 2, 3, 2), the fast search algorithm and the normal search algorithm are both matched from the beginning of the main character string, but in the matching process, the fast search algorithm records some necessary information, and according to the information, in the subsequent matching process, the meaningless matching process is skipped, for example: the main character string is ababccabab, the pattern character string is abac, the next value corresponding to the pattern character string is (0, 1, 1, 1, 2), the matching process is that the i pointer is not moved when the matching fails, and the j pointer is retreated to the specified position according to the value corresponding to the j pointer in the next value, so that the fast search algorithm can be found to be matched for 3 times, while the ordinary search algorithm is required to be matched for 6 times, therefore, the fast search algorithm is faster than the ordinary search algorithm.
S202, obtaining the historical service name associated with the searched transitional service name, and determining the historical service name as the second service environment name.
S203, searching the historical service environment name which is compared with the historical service name from the service list comparison list, and determining the searched service environment name as the second service environment name.
The invention realizes that the transitional service name consistent with the first service name is searched from the service list comparison list in the service management platform by using a quick search algorithm; acquiring a historical service name associated with the searched transitional service name, and determining the historical service name as the second service environment name; and searching the historical service environment name which is compared with the historical service name from the service list comparison list, and determining the searched service environment name as the second service environment name, so that the second service name and the second service environment name can be quickly obtained through a quick search algorithm, and the service route switching efficiency is improved.
S30, the switching identification code is authenticated to the second service name through the service management platform.
Understandably, the service management platform comprises a master authority list recording personal authority lists of all the switching identification codes, the personal rights list indicates the historical service name for which the handover identification code may authorize a handover, determining that the switching identification code passes authentication if the historical service name consistent with the second service name can be found from the found personal permission list corresponding to the switching identification code, indicating that the switching of the second service name is authorized and the switching identification code, and if the historical service name consistent with the second service name cannot be found from the found personal authority list corresponding to the switching identification code, the switching of the second service name is not authorized and the switching identification code is indicated, and the switching identification code is determined not to pass the authentication.
In an embodiment, as shown in fig. 4, the authenticating, in step S30, the performing, by the service management platform, the authentication on the handover identifier code with respect to the second service name includes:
s301, searching a personal authority list corresponding to the switching identification code from a total authority list in the service management platform.
Understandably, the service management platform comprises a master authority list, the master authority list records a personal authority list of all the switching identification codes, and the personal authority list indicates the historical service names which can be authorized to be switched by the switching identification codes.
S302, judging whether the second service name is authorized or not from the searched personal authority list.
Understandably, the quick search algorithm may be applied to determine whether the historical service name consistent with the second service name can be found from the personal permission list.
S303, if the second service name in the personal permission list is authorized, determining that the switching identifier passes authentication.
Understandably, if the historical service name consistent with the second service name can be found, the switching of the second service name is authorized and the switching identification code is determined to pass the authentication of the switching identification code.
S304, if the found second service name in the personal authority list is not authorized, determining that the switching identification code is not authenticated.
Understandably, if the historical service name consistent with the second service name can not be found, the switching of the second service name is not authorized to be switched with the switching identification code, and the switching identification code is determined not to pass authentication.
The invention realizes that the personal authority list corresponding to the switching identification code is searched in the total authority list in the service management platform; judging whether the second service name is authorized or not from the searched personal permission list; if the second service name in the personal authority list is found to be authorized, determining that the switching identification code passes the authentication; if the found second service name in the personal authority list is not authorized, determining that the switching identification code is not authenticated, so that automatic authentication through a service management platform is realized, the safety of service route switching is improved, and the correctness of service route switching is ensured.
And S40, after the authentication is passed, obtaining the first routing information matched with the second service name and the second service environment name from the service management platform.
Understandably, the service management platform is right the switching identification code is aimed at after the authentication of the second service name passes, follow acquire in the service management platform currently with the second service name with the second service environment name all matches first routing information, first routing information is currently under the service of the second service name and is in the information of the service routing under the environment of the second service environment name, first routing information includes information such as a routing type and a routing address, the routing type includes an SC routing type, an RPC routing type and the like, and the routing address is a service protocol address of the service routing.
S50, performing environment analysis on the first routing information according to the first service environment name and the second service environment name, and finding out second routing information matched with the first routing information from the service management platform.
Understandably, the service management platform stores all service environment parameters corresponding to the service environment names, the service environment parameters embody parameter indexes and compatible parameters of the service environment names corresponding to the service environment parameters and parameter scores corresponding to the compatible parameters, a first service environment parameter corresponding to the first service environment name and a second service environment parameter corresponding to the second service environment name are obtained from the service management platform, the first service environment parameter and the second service environment parameter are subjected to environment analysis through the route identification model, the first route information is subjected to switching identification, and second route information matched with the first route information is identified.
The route identification model is a model which realizes identification according to the first service environment parameter, the second service environment parameter and the first route information and identifies the second route information which is most matched with the switching.
In an embodiment, as shown in fig. 5, in the step S50, that is, performing environment resolution on the first routing information according to the first service environment name and the second service environment name, and finding the second routing information matched with the first routing information from the service management platform includes:
s501, obtaining a first service environment parameter corresponding to the first service environment name and a second service environment parameter corresponding to the second service environment name from the service management platform.
S502, inputting the first service environment parameter, the second service environment parameter and the first routing information into a routing identification model.
S503, performing environment analysis on the first service environment parameter and the second service environment parameter through the route identification model, performing switching identification on the first routing information, and identifying second routing information matched with the first routing information.
Understandably, the environment analysis is a process of comparing the first service environment parameter with the second service environment parameter through the route identification model, comparing a difference result, performing vector conversion and environment feature extraction on the difference result, wherein the environment feature is a relevant feature of which the route type is suitable for the difference, that is, different difference results and different route types have an implicit mapping relation, so that the route type corresponding to the difference result can be determined according to the extracted environment feature, the switching identification is to determine whether the first route information belongs to the identified route type, and determine whether the first route information is the latest version of the route type, thereby determining the route information with the highest historical switching matching degree with the first route information.
The invention realizes that a first service environment parameter corresponding to the first service environment name and a second service environment parameter corresponding to the second service environment name are obtained from the service management platform; inputting the first service environment parameter, the second service environment parameter and the first routing information into a route identification model; the first service environment parameter and the second service environment parameter are subjected to environment analysis through the route identification model, the first route information is subjected to switching identification, and the second route information matched with the first route information is identified.
In an embodiment, in the step S503, that is, performing environment analysis on the first service environment parameter and the second service environment parameter through the route identification model, and performing handover identification on the first routing information, and identifying second routing information matching the first routing information includes:
s5031, comparing the first service environment parameter and the second service environment parameter by using the route identification model, and determining a route type.
Understandably, the first service environment parameter and the second service environment parameter are compared through the route identification model, a difference result is obtained through comparison, the difference result is subjected to vector conversion and is converted into a vector with the same dimensionality, the vector of the difference result is subjected to the environmental feature extraction, and therefore the route type corresponding to the difference result can be determined according to the extracted environmental feature.
S5032, performing switching identification on the first routing information through the routing identification model, and identifying the second routing information that matches the first routing information and belongs to the routing type.
Understandably, the switching identification of the first routing information by the routing identification model may identify routing information that is determined as the second routing information that matches the first routing information and belongs to the routing type.
The invention realizes that the first service environment parameter and the second service environment parameter are compared through the route identification model to determine the route type; and switching and identifying the first routing information, and identifying the second routing information which is matched with the first routing information and belongs to the routing type, so that the routing type is automatically determined by comparing the first service environment parameter with the second service environment parameter, and the second routing information is automatically identified by a switching and identifying method, thereby reducing the labor cost, improving the accuracy and effectiveness of service routing switching, and improving the quality of service routing switching.
In an embodiment, the step S5032, performing the switching identification on the first routing information through the route identification model, and identifying the second routing information that matches the first routing information and belongs to the routing type includes:
s50321, if the first routing information belongs to the routing type, determining whether a routing version in the first routing information is lower than a latest version corresponding to the routing type.
Understandably, the route identification model finds the latest version corresponding to the route type through the service management platform, the service management platform further stores the latest version corresponding to each route type, if the first route information belongs to the route type, it is determined whether the route version in the first route information is lower than the latest version corresponding to the route type found from the service management platform, the first route information includes a route version, and the route version represents the version of the service route.
S50322, when the routing version in the first routing information is lower than the latest version corresponding to the routing type, searching for the second routing information that matches the first routing information most closely from the service management platform.
Understandably, if the routing version in the first routing information is lower than the latest version corresponding to the routing type, the routing information with the highest matching degree with the first routing information is found from all routing information in the routing type in the service management platform, and is determined as the second routing information, the highest matching degree is the matching degree of the first routing information and other routing information in the routing type, which is determined by taking the routing version as the latest version and measuring the routing address and name dimension, and the routing information corresponding to the highest matching degree is determined, so that the second routing information with the highest matching degree with the first routing information is determined.
The invention realizes that whether the routing version in the first routing information is lower than the latest version corresponding to the routing type is judged if the first routing information belongs to the routing type; when the routing version in the first routing information is lower than the latest version corresponding to the routing type, searching the second routing information with the highest matching degree with the first routing information from the service management platform, so that the second routing information is automatically matched when the first routing information is judged to belong to the determined routing type, the accuracy and the effectiveness of service routing switching are improved, and the quality of service routing switching is improved.
In an embodiment, after the step S50321, namely, the determining whether the routing version in the first routing information is lower than the latest version corresponding to the routing type further includes:
when the routing version in the first routing information is consistent with the latest version corresponding to the routing type, determining the first routing information as the second routing information, which indicates that the current routing information is the routing information needing to be switched to.
In an embodiment, the step S5032, performing switching identification on the first routing information through the route identification model, and identifying the second routing information that matches the first routing information and belongs to the routing type, further includes:
s50323, if the first routing information does not belong to the routing type, searching all routing information in the routing type from the service management platform.
Understandably, if the first routing information does not belong to the routing type, all routing information under the routing type is searched from the service management platform, and the routing information is information related to service routing.
S50324, identifying the second routing information with the highest historical switching matching degree with the first routing information from all the routing information.
Understandably, the history switching matching degree is all history records switched from the routing type in the first routing information to the identified routing type, and in combination with all history records, the matching degree between the first routing information and the routing information before switching in the history records, the matching degree between all the routing information and the routing information after switching in the history records, and the degree of comprehensive matching meeting the latest version corresponding to the routing type and being not used are measured, the matching degree between all the routing information under each routing type and the first routing information can be measured through the history switching matching degree, and the routing information corresponding to the highest history switching matching degree is determined as the second routing information with the highest history switching matching degree of the first routing information.
If the first routing information does not belong to the routing type, searching all routing information under the routing type from the service management platform; the second routing information with the highest historical switching matching degree with the first routing information is identified in all the routing information, so that when the first routing information does not belong to the determined routing type, the second routing information is automatically matched in combination with the historical switching matching degree, manual identification is not needed, the accuracy and the effectiveness of service routing switching are improved, and the quality of service routing switching is improved
S60, switching the first service route corresponding to the first routing information to the second service route corresponding to the second routing information, and triggering a switching completion instruction of the first service name.
Understandably, the first service route is a service route corresponding to the first routing information, the second service route is a service route corresponding to the second routing information, the first service route is switched to the second service route, so that service route switching from the first service name to the second service name is completed, a switching completion instruction of the first service name is triggered, and the switching completion instruction is an instruction generated by completing service route switching from the first service name to the second service name.
S70, after detecting the switching completion instruction of all the first service names, confirming that the switching request is completed.
Understandably, after receiving the instruction of completing the service route switching of all the first service names, the switching of the service routes of all the first service names is determined to be completed, and the service route switching is completed without awareness so as to achieve the effect of one-key seamless switching, where the switching request may be set to be executed when all the service routes are idle, that is, when the number of the service routes is small, for example: zero on weekends, etc.
The invention realizes that the switching service set in the switching request is obtained by receiving the switching request from the switching user; the switching service set at least comprises a first service name, a first service environment name corresponding to the first service name and a switching identification code corresponding to the switching user; acquiring a second service name associated with the first service name and a second service environment name corresponding to the second service name from a service management platform; authenticating the switching identification code aiming at the second service name through the service management platform; after the authentication is passed, acquiring first routing information matched with the second service name and the second service environment name from the service management platform; according to the first service environment name and the second service environment name, performing environment analysis on the first routing information, and searching second routing information matched with the first routing information from the service management platform; switching a first service route corresponding to the first routing information to a second service route corresponding to the second routing information, and triggering a switching completion instruction of the first service name; after the switching completion instruction of all the first service names is detected, the switching request is confirmed to be completed, so that automatic batch switching of service routes is achieved, switching safety is improved in an authentication mode, appropriate route information is automatically matched through environment analysis, switching is carried out, automation of service route switching is completed, manual intervention of route switching operation is not needed, the effect of one-key seamless switching is achieved, service route switching efficiency is improved, and accuracy and reliability of service route switching are improved.
In an embodiment, a service route switching device is provided, and the service route switching device corresponds to the service route switching method in the foregoing embodiment one to one. As shown in fig. 6, the service route switching device includes a receiving module 11, an authentication module 12, a matching module 13, a parsing module 14, a switching module 16 and a confirmation module 17. The functional modules are explained in detail as follows:
a receiving module 11, configured to receive a handover request from a handover user, and obtain a handover service set in the handover request; the switching service set at least comprises a first service name, a first service environment name corresponding to the first service name and a switching identification code corresponding to the switching user;
an obtaining module 12, configured to obtain, from a service management platform, a second service name associated with the first service name and a second service environment name corresponding to the second service name;
the authentication module 13 is configured to authenticate the second service name for the handover identifier through the service management platform;
the matching module 14 is configured to obtain, from the service management platform, first routing information that matches both the second service name and the second service environment name after the authentication is passed;
an analyzing module 15, configured to perform environment analysis on the first routing information according to the first service environment name and the second service environment name, and search, from the service management platform, for second routing information that matches the first routing information;
a switching module 16, configured to switch a first service route corresponding to the first routing information to a second service route corresponding to the second routing information, and trigger a switching completion instruction of the first service name;
a confirming module 17, configured to confirm that the switching request is completed after detecting the switching completion instruction of all the first service names.
For the specific definition of the service route switching device, reference may be made to the above definition of the service route switching method, which is not described herein again. The modules in the service route switching device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a service route switching method.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the service route switching method in the above embodiments is implemented.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the service route switching method in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A service route switching method is characterized by comprising the following steps:
receiving a switching request from a switching user, and acquiring a switching service set in the switching request; the switching service set at least comprises a first service name, a first service environment name corresponding to the first service name and a switching identification code corresponding to the switching user;
acquiring a second service name associated with the first service name and a second service environment name corresponding to the second service name from a service management platform;
authenticating the switching identification code aiming at the second service name through the service management platform;
after the authentication is passed, acquiring first routing information matched with the second service name and the second service environment name from the service management platform;
according to the first service environment name and the second service environment name, performing environment analysis on the first routing information, and searching second routing information matched with the first routing information from the service management platform;
switching a first service route corresponding to the first routing information to a second service route corresponding to the second routing information, and triggering a switching completion instruction of the first service name;
and after detecting the switching completion instructions of all the first service names, confirming that the switching request is completed.
2. The method for switching service routing according to claim 1, wherein the obtaining, from the service management platform, a second service name associated with the first service name and a second service environment name corresponding to the second service name includes:
searching a transitional service name consistent with the first service name from a service list comparison list in the service management platform by using a quick search algorithm;
acquiring a historical service name associated with the searched transitional service name, and determining the historical service name as the second service environment name;
and searching the historical service environment name which is compared with the historical service name from the service list comparison list, and determining the searched service environment name as the second service environment name.
3. The service route switching method of claim 1, wherein said authenticating the switching identifier code for the second service name by the service management platform comprises:
searching a personal authority list corresponding to the switching identification code from a total authority list in the service management platform;
judging whether the second service name is authorized or not from the searched personal permission list;
if the second service name in the personal authority list is found to be authorized, determining that the switching identification code passes the authentication;
and if the second service name in the searched personal authority list is not authorized, determining that the switching identification code is not authenticated.
4. The method for switching service routing according to claim 1, wherein the performing environment resolution on the first routing information according to the first service environment name and the second service environment name, and finding the second routing information matching the first routing information from the service management platform includes:
acquiring a first service environment parameter corresponding to the first service environment name and a second service environment parameter corresponding to the second service environment name from the service management platform;
inputting the first service environment parameter, the second service environment parameter and the first routing information into a route identification model;
and performing environment analysis on the first service environment parameter and the second service environment parameter through the route identification model, performing switching identification on the first route information, and identifying second route information matched with the first route information.
5. The service routing switching method according to claim 4, wherein the performing context resolution on the first service environment parameter and the second service environment parameter through the routing identification model, and performing switching identification on the first routing information to identify second routing information matching the first routing information includes:
comparing the first service environment parameter with the second service environment parameter through the route identification model to determine a route type;
and performing switching identification on the first routing information through the routing identification model, and identifying second routing information which is matched with the first routing information and belongs to the routing type.
6. The service route switching method according to claim 5, wherein said performing a switching identification on the first route information by the route identification model, and identifying the second route information that matches the first route information and belongs to the route type, comprises:
if the first routing information belongs to the routing type, judging whether a routing version in the first routing information is lower than a latest version corresponding to the routing type;
and when the routing version in the first routing information is lower than the latest version corresponding to the routing type, searching the second routing information with the highest matching degree with the first routing information from the service management platform.
7. The service route switching method according to claim 5, wherein said performing a switching identification on said first route information by said route identification model, identifying said second route information that matches said first route information and belongs to said route type, further comprises:
if the first routing information does not belong to the routing type, searching all routing information under the routing type from the service management platform;
and identifying the second routing information with the highest historical switching matching degree with the first routing information from all the routing information.
8. A service route switching apparatus, comprising:
a receiving module, configured to receive a handover request from a handover user, and acquire a handover service set in the handover request; the switching service set at least comprises a first service name, a first service environment name corresponding to the first service name and a switching identification code corresponding to the switching user;
the acquisition module is used for acquiring a second service name associated with the first service name and a second service environment name corresponding to the second service name from a service management platform;
the authentication module is used for authenticating the second service name for the switching identification code through the service management platform;
the matching module is used for acquiring first routing information matched with the second service name and the second service environment name from the service management platform after the authentication is passed;
the analysis module is used for carrying out environment analysis on the first routing information according to the first service environment name and the second service environment name and finding out second routing information matched with the first routing information from the service management platform;
a switching module, configured to switch a first service route corresponding to the first routing information to a second service route corresponding to the second routing information, and trigger a switching completion instruction of the first service name;
and the confirming module is used for confirming the completion of the switching request after detecting the switching completion instructions of all the first service names.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the service route switching method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the service route switching method according to any one of claims 1 to 7.
CN202011573346.2A 2020-12-24 2020-12-24 Service route switching method, device, equipment and medium Active CN112737942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011573346.2A CN112737942B (en) 2020-12-24 2020-12-24 Service route switching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011573346.2A CN112737942B (en) 2020-12-24 2020-12-24 Service route switching method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112737942A true CN112737942A (en) 2021-04-30
CN112737942B CN112737942B (en) 2022-06-03

Family

ID=75617147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011573346.2A Active CN112737942B (en) 2020-12-24 2020-12-24 Service route switching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112737942B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095781A (en) * 2023-02-10 2023-05-09 惠州市源医科技有限公司 Channel switching method and 5G intelligent router

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013044304A1 (en) * 2011-09-30 2013-04-04 Cocoon Data Holdings Limited System and method for servicing a request
EP2779586A1 (en) * 2013-03-15 2014-09-17 VeriSign, Inc. Method and system for intelligent many-to-many service routing over EPP
US20170093865A1 (en) * 2015-09-30 2017-03-30 Brother Kogyo Kabushiki Kaisha Server Transmitting Device Information Assigned to Service Identification Information
CN108009186A (en) * 2017-02-15 2018-05-08 北京车和家信息技术有限责任公司 Service release switching method, service release switching device and server
US20180239793A1 (en) * 2017-02-17 2018-08-23 Home Box Office, Inc. Service discovery using attribute matching
JP2019047396A (en) * 2017-09-05 2019-03-22 ソフトバンク株式会社 Communication device, communication method, computer program, and communication system
CN110333957A (en) * 2019-05-30 2019-10-15 重庆金融资产交易所有限责任公司 Remote procedure call service calling method, device and computer equipment
CN111090452A (en) * 2019-11-11 2020-05-01 福建天泉教育科技有限公司 Service environment switching method and computer-readable storage medium
CN111125118A (en) * 2019-12-27 2020-05-08 同盾(广州)科技有限公司 Associated data query method, device, equipment and medium
CN111310141A (en) * 2020-02-13 2020-06-19 上海复深蓝软件股份有限公司 Authentication management method, device, computer equipment and storage medium
US20200259712A1 (en) * 2019-02-08 2020-08-13 Affirmed Networks, Inc. Model-driven service rollback mechanism for data integrity
US20200334025A1 (en) * 2019-04-16 2020-10-22 EMC IP Holding Company LLC Providing different upgrade paths for upgrading a server
CN112000348A (en) * 2020-07-28 2020-11-27 金蝶医疗软件科技有限公司 Control method and device for service gray release and computer equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013044304A1 (en) * 2011-09-30 2013-04-04 Cocoon Data Holdings Limited System and method for servicing a request
EP2779586A1 (en) * 2013-03-15 2014-09-17 VeriSign, Inc. Method and system for intelligent many-to-many service routing over EPP
US20170093865A1 (en) * 2015-09-30 2017-03-30 Brother Kogyo Kabushiki Kaisha Server Transmitting Device Information Assigned to Service Identification Information
CN108009186A (en) * 2017-02-15 2018-05-08 北京车和家信息技术有限责任公司 Service release switching method, service release switching device and server
US20180239793A1 (en) * 2017-02-17 2018-08-23 Home Box Office, Inc. Service discovery using attribute matching
JP2019047396A (en) * 2017-09-05 2019-03-22 ソフトバンク株式会社 Communication device, communication method, computer program, and communication system
US20200259712A1 (en) * 2019-02-08 2020-08-13 Affirmed Networks, Inc. Model-driven service rollback mechanism for data integrity
US20200334025A1 (en) * 2019-04-16 2020-10-22 EMC IP Holding Company LLC Providing different upgrade paths for upgrading a server
CN110333957A (en) * 2019-05-30 2019-10-15 重庆金融资产交易所有限责任公司 Remote procedure call service calling method, device and computer equipment
CN111090452A (en) * 2019-11-11 2020-05-01 福建天泉教育科技有限公司 Service environment switching method and computer-readable storage medium
CN111125118A (en) * 2019-12-27 2020-05-08 同盾(广州)科技有限公司 Associated data query method, device, equipment and medium
CN111310141A (en) * 2020-02-13 2020-06-19 上海复深蓝软件股份有限公司 Authentication management method, device, computer equipment and storage medium
CN112000348A (en) * 2020-07-28 2020-11-27 金蝶医疗软件科技有限公司 Control method and device for service gray release and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095781A (en) * 2023-02-10 2023-05-09 惠州市源医科技有限公司 Channel switching method and 5G intelligent router
CN116095781B (en) * 2023-02-10 2023-08-15 惠州市源医科技有限公司 Channel switching method and 5G intelligent router

Also Published As

Publication number Publication date
CN112737942B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN108319719B (en) Database data verification method and device, computer equipment and storage medium
CN111541546B (en) Multi-platform login method, device, equipment and readable medium
CN110781070A (en) Big data test verification method and device, computer equipment and storage medium
CN110851359B (en) Application program testing method and device and server
CN112650520B (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN110909013A (en) Service list generation method, device, equipment and computer readable storage medium
CN110990362A (en) Log query processing method and device, computer equipment and storage medium
CN112162924A (en) Interface automation test method and device, computer equipment and storage medium
CN112737942B (en) Service route switching method, device, equipment and medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN110515924B (en) Database operation logic verification method, device, equipment and readable storage medium
CN114610635A (en) Interface test case generation method and device, computer equipment and storage medium
CN112565239B (en) Authentication method, device, computer equipment and storage medium for integrating multiple operators
CN114546837A (en) Interface test method, device, equipment and storage medium
CN112612706A (en) Automated testing method, computer device and storage medium
CN112699034A (en) Virtual login user construction method, device, equipment and storage medium
CN112433935A (en) Test method, test device, electronic equipment and storage medium
CN112215015A (en) Translation text revision method, translation text revision device, computer equipment and storage medium
CN114579473B (en) Application testing method, device, equipment and storage medium
CN110930075A (en) Power equipment fault positioning method and device, computer equipment and storage medium
CN114237991A (en) Main/standby service switching method, device, equipment and medium based on cold standby mode
CN115599683A (en) Automatic testing method, device, equipment and storage medium
CN115617780A (en) Data import method, device, equipment and storage medium
CN112597118B (en) Shared file adding method and 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 R & D building 3501, block a, building 7, Vanke Cloud City Phase I, Xingke 1st Street, Xili community, Xili street, Nanshan, Shenzhen, Guangdong

Applicant after: Tubatu Group Co.,Ltd.

Address before: 518000 R & D room 3501, block a, building 7, Vanke Cloud City Phase I, Xingke 1st Street, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN BINCENT TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant