CN109104368B - Connection request method, device, server and computer readable storage medium - Google Patents

Connection request method, device, server and computer readable storage medium Download PDF

Info

Publication number
CN109104368B
CN109104368B CN201811060862.8A CN201811060862A CN109104368B CN 109104368 B CN109104368 B CN 109104368B CN 201811060862 A CN201811060862 A CN 201811060862A CN 109104368 B CN109104368 B CN 109104368B
Authority
CN
China
Prior art keywords
information
request
version
application
routing
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
Application number
CN201811060862.8A
Other languages
Chinese (zh)
Other versions
CN109104368A (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 Aijieyun Technology Co ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201811060862.8A priority Critical patent/CN109104368B/en
Publication of CN109104368A publication Critical patent/CN109104368A/en
Application granted granted Critical
Publication of CN109104368B publication Critical patent/CN109104368B/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/302Route determination based on requested QoS
    • H04L45/306Route determination based on the nature of the carried application

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a connection request method, a connection request device, a server and a computer-readable storage medium. In the invention, the connection request method comprises the following steps: receiving an external request; determining N routing rules respectively corresponding to the N types of request information according to the N types of request information in the request; wherein, N is a positive integer, each routing rule is used for indicating the corresponding relation between one request information and the information of the application version; determining the information of the application version corresponding to the request according to the N routing rules and the priority rules of the N routing rules; and sending the request to the application version corresponding to the application version information according to the determined application version information. In this implementation, versions of multiple applications are enabled to run on a cloud computing platform.

Description

Connection request method, device, server and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a server, and a computer-readable storage medium for requesting connection.
Background
The micro-service architecture is a new technology for deploying applications and services in the cloud, and achieves wide popularization and application in the IT and CT fields by a series of advantages of flexibility, enforceability, expandability, independent testing, independent deployment, independent operation and the like. The implementation of microservices relies on a powerful cloud computing platform.
However, the inventors found that at least the following problems exist in the prior art: due to the flexible and variable customer requirements, the version of the application is updated and released frequently in an iterative mode. The cloud platform needs to support access of different types of product systems and configure different versions of applications for different services. For the above reasons, a cloud computing platform capable of supporting multiple versions in parallel is needed.
Disclosure of Invention
The invention aims to provide a connection request method, a connection request device, a server and a computer-readable storage medium, so that a plurality of versions of an application can be run on a cloud computing platform.
In order to solve the above technical problem, an embodiment of the present invention provides a connection request method, including the following steps: receiving an external request; determining N routing rules respectively corresponding to the N types of request information according to the N types of request information in the request; wherein, N is a positive integer, each routing rule is used for indicating the corresponding relation between one request information and the information of the application version; determining the information of the application version corresponding to the request according to the N routing rules and the priority rules of the N routing rules; and sending the request to the application version corresponding to the application version information according to the determined application version information.
An embodiment of the present invention further provides a connection request apparatus, including: the device comprises a receiving device, a first determining device, a second determining device and a forwarding device; the receiving device is used for receiving an external request; the first determining device is used for determining N routing rules respectively corresponding to the N types of request information according to the N types of request information in the request; wherein, N is a positive integer, each routing rule is used for indicating the corresponding relation between one request information and the information of the application version; the second determining device is used for determining the information of the version of the application corresponding to the request according to the N routing rules and the priority rules of the N routing rules; and the forwarding device is used for sending the request to the application version corresponding to the application version information according to the determined application version information.
An embodiment of the present invention further provides a server, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the request connection method mentioned in the above embodiments.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the connection request method mentioned in the above embodiments.
Compared with the prior art, after receiving an external request, the cloud computing platform can determine the information of the version of the application corresponding to the request according to the N routing rules corresponding to the request information in the request and the priority rules of the N routing rules, and send the request to the version of the corresponding application, so that the versions of multiple applications can be deployed and operated on the cloud computing platform.
In addition, determining the information of the version of the application corresponding to the request according to the N routing rules and the priority rules of the N routing rules specifically includes: determining a routing rule corresponding to the request according to the N routing rules and the priority rules of the N routing rules; and determining the information of the version of the application corresponding to the request according to the routing rule corresponding to the request.
In addition, determining the information of the version of the application corresponding to the request according to the N routing rules and the priority rules of the N routing rules specifically includes: for each request message of the N request messages, the following operations are carried out: determining the version information of the application corresponding to the request information according to the request information and the routing rule corresponding to the request information; and determining the information of the version of the application corresponding to the request according to the information of the version of the application corresponding to each request information and the priority of the routing rule corresponding to each request information.
In addition, the request information in the request includes at least data center information or user information. In the implementation, the cloud computing platform can determine the version of the application corresponding to the request according to the data center information or the user information.
In addition, before determining N routing rules respectively corresponding to N types of request information according to the N types of request information in the request, the method for requesting connection further includes: if the access type of the request is determined to be an interface access request, request information in the request is obtained, and the request information at least comprises data center information; and if the access type of the request is determined to be a page access request, acquiring request information in the request, wherein the request information comprises user information. In the implementation, different routing rules are set according to the access type of the request, so that the cloud computing platform can complete the forwarding of the interface access request and the page access request.
In addition, according to the N routing rules and the priority rules of the N routing rules, determining the routing rule corresponding to the request specifically includes: and according to the priority rule of the N routing rules, taking the routing rule with the highest priority as the routing rule corresponding to the request.
In addition, before determining the routing rule corresponding to the request according to the N routing rules and the priority rule of the N routing rules, the method for requesting connection includes: determining the type of the requested service; and determining the priority rules of the N routing rules according to the requested service types. In the implementation, different priority rules are set for different service types, so that the flexibility of the cloud computing platform is improved.
In addition, the information of the version of the application is a domain name of the version of the application and/or an address of the version of the application.
In addition, the application version comprises a first version of the application and a second version of the application, the routing rule corresponding to the user information is a user routing rule, and the user routing rule is as follows: if the user information indicates that the user corresponding to the request is the test user, the information of the application version corresponding to the user information is the information of the first version of the application; and if the user information indicates that the user corresponding to the request is the formal user, the information of the version of the application corresponding to the user information is the information of the second version of the application. In the implementation, from the perspective of user access, users of different types correspond to different application versions, so that the cloud computing platform can implement gray scale upgrading and/or implement different charging operation rules for different users.
In addition, the routing rule corresponding to the data center information is a data center routing rule, and the data center routing rule is as follows: and determining the information of the version of the application corresponding to the data center information in the request according to the corresponding relation between the data center information and the information of the version of the application.
In addition, the application version comprises a new application version and an old application version, the request information also comprises resource information, the routing rule corresponding to the resource information is a resource routing rule, and the resource routing rule is as follows: and if the resource corresponding to the resource information is in the service processing, the information of the application version corresponding to the resource information is the information of the old version of the application. In the implementation, the requests of the same resource are operated under the version of the same application as much as possible, and the consistency of the service data is ensured.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a request connection method of a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a cloud computing platform according to a first embodiment of the present invention;
FIG. 3 is a schematic structural view of the construction of a vessel according to a first embodiment of the present invention;
FIG. 4 is a flow chart of a request connection method of a second embodiment of the present invention;
fig. 5 is a schematic configuration diagram of a request connection apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic configuration diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to a request connection method which is applied to a gateway routing layer of a cloud computing platform. As shown in fig. 1, the connection request method includes the steps of:
step 101: an external request is received.
Specifically, the cloud computing platform establishes a communication connection with a terminal such as an external product system, and receives a request transmitted by the terminal such as the external product system.
In a specific implementation, the cloud computing platform has a structure as shown in fig. 2, and includes a gateway routing layer, a service application layer, and a service registration management component. The cloud computing platform is based on an application framework of a distributed system development kit spring-bound, and uses a data structure of distributed computing and a deployment framework of micro-services. In fig. 2, WEB represents World Wide WEB (World Wide WEB), and API represents Application Programming Interface (Application Programming Interface). After the micro-service architecture is implemented, the deployment of the application version is performed in a container mode, a structural diagram of the construction of the container is shown in fig. 3, WEB represents World Wide WEB (World Wide WEB), UI represents User Interface (User Interface), and RateDB, CbssDB and ConfDB represent databases respectively. According to the architecture of system application, the cloud computing platform is divided into a WEB layer container, a micro-service layer container and a data storage layer container. When the containers are deployed, the combination relation is preferentially used according to the aggregation multiplexing rule, and different containers are packaged for different versions in an iterative mode.
It is worth mentioning that the application of the container can package different applications and services, and the purpose of rapid deployment and use for many times by once construction is achieved. When the version is upgraded, the application of the container shortens the release time of the version and reduces the use amount of server resources.
In fig. 2, the service registration management component is used to manage microservice registration, control of routing rules, and the like. After the micro-service is created, effective service arrangement can be carried out only by registration and management to form a complete application system, and when an external request passes through the gateway routing layer, the gateway routing layer executes the request connection method provided by the embodiment of the invention and forwards the external request to the corresponding application version.
It should be noted that fig. 2 and fig. 3 are only examples, and in practical applications, those skilled in the art may increase or decrease the number of versions of the application on the basis of fig. 2 and fig. 3.
Step 102: and determining N routing rules respectively corresponding to the N types of request information according to the N types of request information in the request. Wherein N is a positive integer.
Specifically, a gateway routing layer of the cloud computing platform is provided with a plurality of routing rules, and each routing rule is used for indicating the corresponding relation between one type of request information and the information of the version of the application.
In specific implementation, a gateway routing layer of a cloud computing platform deploys various routing rules according to different service dimensions, and the routing rules can be flexibly configured in a service registration management component according to service attributes. For a cloud computing platform accessed by a multi-product system, service dimensions can be sequentially divided from large to small: the access address of the product system corresponding to the data center, the user information based on the same authentication, the resource information between the product and the platform, the timestamp of the user operation and the like.
In the following, an access address dimension of the product system corresponding to the data center, a user information dimension based on the same authentication, and a resource information dimension between the product and the platform are taken as examples, and a setting mode of the routing rule is exemplified.
Based on the access address dimension of the data center corresponding to the product system: when a product system is accessed to a cloud computing platform, data center information corresponding to the product system needs to be provided, such as a data center Internet Protocol (IP) or a registered data center identifier, and a gateway routing layer defines a data center routing rule according to a corresponding relationship between the data center information and information of an application version, wherein the data center routing rule is as follows: and determining the information of the version of the application corresponding to the data center information in the request according to the corresponding relation between the data center information and the information of the version of the application.
User information dimension based on the same authentication: based on the user account number of the unified authentication login after the multi-product system is accessed, the user routing rule can be set. For example, the application version includes a first version of the application and a second version of the application, the routing rule corresponding to the user information is a user routing rule, and the user routing rule is: if the user information indicates that the user corresponding to the request is the test user, the information of the application version corresponding to the user information is the information of the first version of the application; and if the user information indicates that the user corresponding to the request is the formal user, the information of the version of the application corresponding to the user information is the information of the second version of the application. In the specific implementation, the first version is a new version, the second version is an old version, and the forwarding request is defined to different application versions through the user routing rule, so that the online upgrade or rollback of the application versions is realized. In another specific implementation, the first version is a non-charging version, the second version is a VIP version or a charging version, and the version forwarding request to different applications is defined through a user routing rule, so that different charging operation rules are implemented for different users.
It should be noted that the version of the application may also include a third version of the application, and the like, and those skilled in the art can understand that in practical applications, those skilled in the art can set multiple versions for the application as needed.
Based on resource information dimensions between platforms: the service operation may be further subdivided into a certain resource granularity under the user, and the service operation of the resource has a complete life cycle in the distributed system, for example, the resource generation service operation is divided into two states of pre-generation and formal validation, and there is a time difference between the service operation in the two steps, and there may be a case where the previous and subsequent transactions are inconsistent when version upgrade is performed within the time difference. And setting a resource routing rule based on the principle that the requests of the same resource are forwarded to the same service version. For example, the version of the application includes a new version of the application and an old version of the application, the request information further includes resource information, the routing rule corresponding to the resource information is a resource routing rule, and the resource routing rule is: and if the resource corresponding to the resource information is in the service processing, the information of the application version corresponding to the resource information is the information of the old version of the application.
The following describes a routing rule based on resource information dimensions between platforms in combination with an actual scenario. Supposing that a user sends an order instruction for creating commodities such as a cloud server to a cloud computing platform through a product system, because the instruction is an initial instruction for creating an order, resource information does not exist in the instruction or the resource information is null, that is, resources corresponding to the resource information are not in business processing. In this case, the cloud computing platform forwards the order creating instruction to the application version corresponding to the data center information of the product system according to the data center information in the instruction, so as to create a pre-processing order, and transmits the created pre-processing order to the product system. The pre-processing order includes unique identification resource information (usually referred to as a resource ID) of a commodity such as a cloud server. After the preprocessing order is returned, the version of the application is updated on line, namely the version of the application has a new version and an old version. The product system fills commodity information in the pre-processing order, sends the pre-processing order filled with the commodity information to the cloud computing platform, and the cloud computing platform determines that resources corresponding to the resource information are in service processing according to the resource information (resource ID) in the pre-processing order filled with the commodity information and sends the pre-processing order filled with the commodity information to the old version.
It is worth mentioning that the gateway routing layer sends the request of the same resource to the version of the same application, so that the request of the same resource is operated under the version of the same application as much as possible, and the consistency of the service data is ensured.
Step 103: and determining the information of the version of the application corresponding to the request according to the N routing rules and the priority rules of the N routing rules.
Specifically, when a routing protocol of a gateway routing layer is set, the cloud computing platform sets different priorities for different routing rules according to the type of requested service. When the gateway routing layer receives an external request, the service type of the request is determined, and the priority rules of the N routing rules are determined according to the service type of the request.
In a specific implementation, the method for determining the information of the version of the application corresponding to the request according to the N routing rules and the priority rules of the N routing rules includes, but is not limited to, the following two methods:
the first method comprises the following steps: the gateway routing layer determines a routing rule corresponding to the request according to the N routing rules and the priority rules of the N routing rules; and determining the information of the version of the application corresponding to the request according to the routing rule corresponding to the request. For example, when the request includes N types of request information, and each type of request information corresponds to one type of routing rule, the gateway routing layer takes the routing rule with the highest priority as the routing rule corresponding to the request according to the priority rule of the N types of routing rules.
The second method comprises the following steps: the gateway routing layer carries out the following operations aiming at each request information in the N types of request information: and determining the version information of the application corresponding to the request information according to the request information and the routing rule corresponding to the request information. And after determining the version information of the application corresponding to each request information, the gateway routing layer determines the version information of the application corresponding to the request according to the version information of the application corresponding to each request information and the priority of the routing rule corresponding to each request information. For example, the user performs an operation of opening an order through the cloud computing platform. The method comprises the steps that a user sends a request to a cloud computing platform through a product system, after a gateway routing layer of the cloud computing platform receives the request, request information in the request is obtained and comprises data center information, user information, resource information and user operation timestamp information, each type of request information is matched with a routing rule corresponding to each type of request information one by one, and the address of a final application version is determined according to the priority of the routing rule.
The implementation of the second method is described below with reference to an actual scenario. Suppose that the data centers accessed to the cloud computing platform are data center a, data center B and data center C. In the data center routing rule, the corresponding relationship between the data center and the version of the application is as follows: the data center A corresponds to the version a of the application, the data center B corresponds to the version B of the application, and the data center C corresponds to the version C of the application. In the user routing rule, the user d corresponds to the version a. The gateway routing layer receives a request, the data center information in the request is B, the user information shows that the user is d, and the resource information shows that the resource is not in service processing. If the routing rule priority corresponding to the service type of the request is the highest level of the routing rule taking the data center information as the routing rule, determining that the information of the version of the application corresponding to the request is the address of the version b of the application; and if the priority of the routing rule corresponding to the service type of the request is the highest level of the routing rule of the user information, determining that the information of the version of the application corresponding to the request is the address of the version a of the application.
Step 104: and sending the request to the application version corresponding to the application version information according to the determined application version information.
Specifically, the gateway routing layer forwards the request to the corresponding version of the application, which performs the relevant operation according to the request.
In a specific implementation, the information of the version of the application may be a domain name of the version of the application or an address of the version of the application. Each application has its own original domain name, and the cloud computing platform sets different sub-domain names for each version of the application on the basis of the original domain name. The information of the version of the application may be a sub-domain name of the application.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, according to the request connection method provided in this embodiment, after receiving an external request, the cloud computing platform can determine the information of the version of the application corresponding to the request according to the N routing rules corresponding to the request information in the request and the priority rules of the N routing rules, and send the request to the version of the corresponding application, so that the versions of multiple applications can be deployed and run on the cloud computing platform.
The second embodiment of the present invention relates to a method for requesting connection, which is further improved based on the first embodiment, and the specific improvements are as follows: other related steps are added before step 102.
Specifically, as shown in fig. 4, the present embodiment includes steps 201 to 205, where steps 201, 203 to 205 are substantially the same as steps 101, 102 to 104 in the first embodiment, and are not repeated herein. The following mainly introduces the differences:
step 201 is performed.
Step 202: and acquiring N types of request information in the request.
Specifically, the cloud computing platform may be published by means of a high performance hypertext Transfer Protocol (HTTP) and a reverse proxy service (Nginx) reverse proxy. In external access, the request passing through the gateway routing layer comprises two access types of an interface access request and a page access request. When the external part accesses the cloud computing platform through the interface, the access source IP can be obtained, corresponding data center information is identified according to the access source IP in the service registration management component, and then the request is distributed according to the routing rule; when the outside accesses the cloud computing platform through the page, the outside needs to enter the system through the same authentication mode, the gateway routing layer obtains user information according to the authentication information, and the request is distributed according to the obtained user information. Thus, the request information in the request includes at least data center information or user information. If the cloud computing platform determines that the access type of the request is an interface access request, acquiring request information in the request, wherein the request information at least comprises data center information; and if the access type of the request is determined to be a page access request, acquiring request information in the request, wherein the request information comprises user information.
Step 203 to step 205 are executed.
The above description is only for illustrative purposes and does not limit the technical aspects of the present invention.
Compared with the prior art, according to the method for requesting connection provided in this embodiment, after receiving an external request, the cloud computing platform can determine the information of the version of the application corresponding to the request according to the N routing rules corresponding to the request information in the request and the priority rules of the N routing rules, and send the request to the version of the corresponding application, so that the versions of multiple applications can be deployed and run on the cloud computing platform.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to a connection request apparatus, as shown in fig. 5, including: receiving means 301, first determining means 302, second determining means 303 and forwarding means 304.
Specifically, the receiving device 301 is used to receive an external request. The first determining device 302 is configured to determine, according to the N types of request information in the request, N types of routing rules respectively corresponding to the N types of request information; wherein N is a positive integer, and each routing rule is used to indicate a correspondence between one type of request information and information of the version of the application. The second determining device 303 is configured to determine, according to the N routing rules and the priority rule of the N routing rules, information of the version of the application corresponding to the request. The forwarding device 304 is configured to send the request to the version of the application corresponding to the version information of the application according to the determined version information of the application.
It should be understood that this embodiment is an example of the apparatus corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fourth embodiment of the present invention relates to a server, as shown in fig. 6, including: at least one processor 401; and a memory 402 communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401, so that the at least one processor 401 can execute the connection request method according to the above embodiments.
The product can execute the method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, and can refer to the method provided by the embodiment of the application without detailed technical details in the embodiment.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (14)

1. A method for requesting a connection, comprising:
receiving an external request;
determining N routing rules respectively corresponding to the N types of request information according to the N types of request information in the request; wherein, N is a positive integer, each routing rule is used for indicating the corresponding relation between one kind of request information and the information of the application version;
determining the information of the application version corresponding to the request according to the N routing rules and the priority rules of the N routing rules;
and sending the request to the application version corresponding to the application version information according to the determined application version information.
2. The method according to claim 1, wherein the determining, according to the N routing rules and the priority rules of the N routing rules, the information of the version of the application corresponding to the request specifically includes:
determining a routing rule corresponding to the request according to the N routing rules and priority rules of the N routing rules;
and determining the information of the version of the application corresponding to the request according to the routing rule corresponding to the request.
3. The method according to claim 1, wherein the determining, according to the N routing rules and the priority rules of the N routing rules, the information of the version of the application corresponding to the request specifically includes:
for each request message of the N request messages, the following operations are carried out: determining the information of the application version corresponding to the request information according to the request information and the routing rule corresponding to the request information;
and determining the version information of the application corresponding to the request according to the version information of the application corresponding to each request information and the priority of the routing rule corresponding to each request information.
4. The method according to any one of claims 1 to 3, wherein the request information in the request includes at least data center information or user information.
5. The method according to claim 4, wherein before determining, according to the N types of request information in the request, N types of routing rules respectively corresponding to the N types of request information, the method further comprises:
if the access type of the request is determined to be an interface access request, acquiring request information in the request, wherein the request information at least comprises data center information;
and if the access type of the request is determined to be a page access request, acquiring request information in the request, wherein the request information comprises user information.
6. The method according to claim 2, wherein the determining the routing rule corresponding to the request according to the N routing rules and the priority rule of the N routing rules specifically includes:
and according to the priority rule of the N routing rules, taking the routing rule with the highest priority as the routing rule corresponding to the request.
7. The method according to claim 6, wherein before determining the routing rule corresponding to the request according to the N routing rules and the priority rule of the N routing rules, the method comprises:
determining the service type of the request;
and determining the priority rule of the N routing rules according to the service type of the request.
8. The method according to any one of claims 1 to 3, wherein the information on the version of the application is a domain name of the version of the application and/or an address of the version of the application.
9. The method according to claim 5, wherein the versions of the application include a first version of the application and a second version of the application, the routing rule corresponding to the user information is a user routing rule, and the user routing rule is: if the user information indicates that the user corresponding to the request is a test user, the information of the version of the application corresponding to the user information is the information of the first version of the application; and if the user information indicates that the user corresponding to the request is a formal user, the information of the version of the application corresponding to the user information is the information of the second version of the application.
10. The connection request method according to claim 5, wherein the routing rule corresponding to the data center information is a data center routing rule, and the data center routing rule is: and determining the information of the version of the application corresponding to the data center information in the request according to the corresponding relation between the data center information and the information of the version of the application.
11. The method according to claim 5, wherein the version of the application includes a new version of the application and an old version of the application, the request information further includes resource information, a routing rule corresponding to the resource information is a resource routing rule, and the resource routing rule is: and if the resource corresponding to the resource information is in service processing, the information of the application version corresponding to the resource information is the information of the old version of the application.
12. A device for requesting a connection, comprising: the device comprises a receiving device, a first determining device, a second determining device and a forwarding device;
the receiving device is used for receiving an external request;
the first determining device is used for determining N routing rules respectively corresponding to N types of request information according to N types of request information in the request; wherein, N is a positive integer, each routing rule is used for indicating the corresponding relation between one kind of request information and the information of the application version;
the second determining device is configured to determine, according to the N routing rules and priority rules of the N routing rules, information of a version of an application corresponding to the request;
and the forwarding device is used for sending the request to the application version corresponding to the application version information according to the determined application version information.
13. A server, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of requesting a connection as claimed in any one of claims 1 to 11.
14. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method of requesting a connection of any one of claims 1 to 11.
CN201811060862.8A 2018-09-12 2018-09-12 Connection request method, device, server and computer readable storage medium Active CN109104368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811060862.8A CN109104368B (en) 2018-09-12 2018-09-12 Connection request method, device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811060862.8A CN109104368B (en) 2018-09-12 2018-09-12 Connection request method, device, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109104368A CN109104368A (en) 2018-12-28
CN109104368B true CN109104368B (en) 2021-07-16

Family

ID=64866109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811060862.8A Active CN109104368B (en) 2018-09-12 2018-09-12 Connection request method, device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109104368B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10938923B2 (en) * 2019-04-17 2021-03-02 Home Depot Product Authority, Llc Customizable router for managing traffic between application programming interfaces
CN110134742B (en) * 2019-04-25 2023-11-14 上海淇毓信息科技有限公司 Dynamic global level grouping method, device and system based on financial clients
CN111600930B (en) * 2020-04-09 2022-12-09 网宿科技股份有限公司 Micro-service request traffic management method, device, server and storage medium
CN113285997B (en) * 2021-05-19 2023-05-12 中国农业银行股份有限公司 Data processing method, device, medium and product based on heterogeneous system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104871133A (en) * 2012-12-18 2015-08-26 微软技术许可有限责任公司 Application intelligent request management based on server health and client information
CN107222544A (en) * 2017-06-14 2017-09-29 千寻位置网络有限公司 High availability method and system based on multilayer service architecture

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2843875A1 (en) * 2013-08-30 2015-03-04 British Telecommunications public limited company Determination and use of link performance measures
US20150186830A1 (en) * 2014-01-01 2015-07-02 Bank Of America Corporation Service tracking analytics
CN107231305B (en) * 2017-05-05 2019-11-08 广东网金控股股份有限公司 A kind of route agent and buffer memory management method and device
CN107453960B (en) * 2017-09-26 2020-08-25 青岛聚看云科技有限公司 Method, device and system for processing test data in service test

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104871133A (en) * 2012-12-18 2015-08-26 微软技术许可有限责任公司 Application intelligent request management based on server health and client information
CN107222544A (en) * 2017-06-14 2017-09-29 千寻位置网络有限公司 High availability method and system based on multilayer service architecture

Also Published As

Publication number Publication date
CN109104368A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN108028853B (en) System, method, and medium for customizable event-triggered computation at edge locations
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
EP3837604B1 (en) In situ triggered function as a service within a service mesh
CN106663033B (en) System and method for supporting a wraparound domain and proxy model and updating service information for cross-domain messaging in a transactional middleware machine environment
CN111163129A (en) Resource processing method and device based on cross-link network
CN107967140B (en) Software modification initiating method, metadata publishing method and device
CN107210924B (en) Method and apparatus for configuring a communication system
CN108319463A (en) A kind of application upgrade method, apparatus
CN111510330B (en) Interface management device, method and storage medium
CN111163130A (en) Network service system and data transmission method thereof
CN115516840A (en) Information processing method, device, system, medium, chip and program
CN111367685B (en) Interface calling method and device, computer equipment and storage medium
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN112748962B (en) Application loading method, device, electronic equipment and computer readable medium
CN111343220B (en) Repeater, distributed file transmission method, distributed file transmission system, medium and electronic equipment
CN113783914A (en) Data processing method, device and equipment
CN112698930B (en) Method, device, equipment and medium for obtaining server identification
CN112929453A (en) Method and device for sharing session data
CN110719303B (en) Containerization NRF method and system
CN111857736A (en) Cloud computing product generation method, device, equipment and storage medium
CN112738181A (en) Method, device and server for cluster external IP access
CN112988738A (en) Data slicing method and device for block chain
CN111176652A (en) Application program management method, device, equipment and medium
US11829418B2 (en) Identity graph data structure with entity-level opt-ins

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
TR01 Transfer of patent right

Effective date of registration: 20210805

Address after: 518000 b1-1302, building B, Kexing Science Park, No. 15, Keyuan Road, Science Park community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee after: Shenzhen aijieyun Technology Co.,Ltd.

Address before: 5 / F, building a, Guangqi Cultural Plaza, 2899 a, Xietu Road, Xuhui District, Shanghai 200030

Patentee before: WANGSU SCIENCE & TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right