CN114760360B - Request response method, request response device, electronic equipment and computer readable storage medium - Google Patents

Request response method, request response device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114760360B
CN114760360B CN202011596283.2A CN202011596283A CN114760360B CN 114760360 B CN114760360 B CN 114760360B CN 202011596283 A CN202011596283 A CN 202011596283A CN 114760360 B CN114760360 B CN 114760360B
Authority
CN
China
Prior art keywords
service
gateway
cluster
service cluster
access
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
CN202011596283.2A
Other languages
Chinese (zh)
Other versions
CN114760360A (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.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing 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 Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202011596283.2A priority Critical patent/CN114760360B/en
Publication of CN114760360A publication Critical patent/CN114760360A/en
Application granted granted Critical
Publication of CN114760360B publication Critical patent/CN114760360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present disclosure provides a request response method, applied to an access gateway, where the access gateway is configured to process a transaction that an access device accesses a first service cluster, and the method includes: obtaining a remote procedure call request from an access device, wherein the remote procedure call request is used for requesting a target service; in response to the remote procedure call request, establishing a communication link between the access gateway and a service gateway of the second service cluster in the case where the target service is provided for the second service cluster; and transmitting the remote procedure call request to the service gateway over the communication link such that the second service cluster responds to the remote procedure call request. The present disclosure also provides a request response device, an electronic apparatus, a computer-readable storage medium, a computer program product.

Description

Request response method, request response device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technology, internet technology, and more particularly, to a request response method, a request response device, an electronic apparatus, a computer-readable storage medium, a computer program product.
Background
With the rapid development of communication and computer technology, enterprises are able to provide more and more application services, and the scale of the system is becoming larger and larger. After the system scale is increased, the network deployment and quality requirements are high, a multi-cluster network deployment scheme appears in the related technology, and a plurality of clusters located in different areas can provide different services.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: when cross-cluster call is realized through a remote procedure call request, service access points need to be searched on a centralized cluster, and then a remote procedure call service is initiated, so that the requirements on network deployment and quality are high.
Disclosure of Invention
In view of this, the present disclosure provides a request response method, a request response apparatus, an electronic device, a computer-readable storage medium, a computer program product.
One aspect of the present disclosure provides a request response method applied to an access gateway, where the access gateway is configured to process a transaction that an access device accesses a first service cluster, and the method includes: obtaining a remote procedure call request from the access device, wherein the remote procedure call request is used for requesting a target service; in response to the remote procedure call request, establishing a communication link between the access gateway and a service gateway of a second service cluster in the case where the target service is provided for the second service cluster; and transmitting the remote procedure call request to the service gateway over the communication link so that the second service cluster responds to the remote procedure call request.
According to an embodiment of the present disclosure, establishing a communication link between the access gateway and a serving gateway of the second serving cluster comprises: searching a network address of a service gateway of the second service cluster; sending a link establishment request carrying the network address to a relay gateway so that the relay gateway sends the link establishment request to the service gateway; receiving a link establishment response from the relay gateway, wherein the link establishment response is sent by the service gateway to the relay gateway; a communication link is established between the access gateway and the serving gateway based on the link establishment response.
According to an embodiment of the present disclosure, the above method further includes: analyzing the remote procedure call request; and determining that the target service is provided for the second service cluster under the condition that the remote procedure call request carries the identification information of the second service cluster.
According to an embodiment of the present disclosure, the above method further includes: and determining a service cluster for providing the target service from a service list, wherein the service list comprises mapping relations between different services and the service cluster.
According to an embodiment of the present disclosure, the above method further includes: loading a service list of the first service cluster, wherein the service list comprises identification information of the first service cluster and services which can be provided by the first service cluster; and synchronizing the service list of the first service cluster to the service gateway of the second service cluster.
According to an embodiment of the present disclosure, the above method further includes: and receiving a service list from the second service cluster, wherein the service list of the second service cluster comprises identification information of the second service cluster and services which can be provided by the second service cluster.
According to an embodiment of the present disclosure, the above method further includes: networking between a plurality of service clusters, wherein the plurality of service clusters includes the first service cluster and the second service cluster; and sending the routing information of the access gateway to the upper gateway according to the routing information of the upper gateway configured in the access gateway of the first service cluster, so that the upper gateway can perform routing learning according to the routing information of the access gateway and the routing information of the upper gateway.
Another aspect of the present disclosure provides a request response apparatus applied to an access gateway, where the access gateway is configured to process a transaction of an access device accessing a first service cluster, the request response apparatus includes: the device comprises an acquisition module, a response module and a transmission module.
And the acquisition module is used for acquiring a remote procedure call request from the access equipment, wherein the remote procedure call request is used for requesting a target service.
And the response module is used for responding to the remote procedure call request and establishing a communication link between the access gateway and a service gateway of the second service cluster under the condition that the target service is provided for the second service cluster.
And the transmission module is used for transmitting the remote procedure call request to the service gateway through the communication link so that the second service cluster responds to the remote procedure call request.
According to an embodiment of the present disclosure, the response module includes: the device comprises a searching unit, a sending unit, a receiving unit and a building unit.
And the searching unit is used for searching the network address of the service gateway of the second service cluster.
And the sending unit is used for sending a link establishment request carrying the network address to the relay gateway so that the relay gateway can send the link establishment request to the service gateway.
A receiving unit configured to receive a link establishment response from the relay gateway, where the link establishment response is sent by the service gateway to the relay gateway;
and the establishing unit is used for establishing a communication link between the access gateway and the service gateway based on the link establishment response.
According to an embodiment of the present disclosure, the request response device further includes: the device comprises an analysis module and a first determination module.
And the analysis module is used for analyzing the remote procedure call request.
And the first determining module is used for determining that the target service is provided for the second service cluster under the condition that the remote procedure call request carries the identification information of the second service cluster.
According to an embodiment of the present disclosure, the request response device further includes: and the second determining module is used for determining a service cluster for providing the target service from a service list, wherein the service list comprises mapping relations between different services and the service cluster.
According to an embodiment of the present disclosure, the request response device further includes: a loading module and a synchronizing module.
The loading module is used for loading a service list of the first service cluster, wherein the service list comprises identification information of the first service cluster and services which can be provided by the first service cluster.
And the synchronization module is used for synchronizing the service list of the first service cluster to the service gateway of the second service cluster.
According to an embodiment of the present disclosure, the request response device further includes: and the receiving module is used for receiving a service list from the second service cluster, wherein the service list of the second service cluster comprises identification information of the second service cluster and services which can be provided by the second service cluster.
According to an embodiment of the present disclosure, the request response device further includes: networking module and sending module.
And the networking module is used for networking among a plurality of service clusters, wherein the plurality of service clusters comprise the first service cluster and the second service cluster.
And the sending module is used for sending the routing information of the access gateway to the upper gateway according to the routing information of the upper gateway configured in the access gateway of the first service cluster, so that the upper gateway can perform route learning according to the routing information of the access gateway and the routing information of the upper gateway.
Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are configured to implement a method as described above.
Another aspect of the present disclosure provides a computer program comprising computer executable instructions which when executed are for implementing a method as described above.
According to the embodiment of the disclosure, the remote procedure call request is responded based on the access gateway, and the cross-cluster call is realized by utilizing the communication link between the access gateway of the first service cluster and the service gateway of the second service cluster.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates an exemplary system architecture in which request response methods and apparatus may be applied, according to embodiments of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a request response method according to an embodiment of the disclosure;
fig. 3 schematically illustrates a flow diagram for establishing a communication link between an access gateway and a serving gateway in accordance with an embodiment of the present disclosure;
fig. 4 schematically illustrates a schematic diagram of a multi-level gateway according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow diagram of cluster service synchronization in accordance with an embodiment of the disclosure;
FIG. 6 schematically illustrates a block diagram of a request response device according to an embodiment of the disclosure; and
fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement the above-described method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the process of realizing the present disclosure, it is found that cross-cluster request service can be realized among multiple clusters in different areas through a centralized gateway node, but the cross-cluster request service is realized through the centralized gateway node, and service information of the multiple clusters needs to be manually deployed at the centralized gateway node, so that service codes of the gateway node have relatively high invasiveness, and network deployment and quality requirements are relatively high.
The RPC (Remote Procedure Call Protocol ) is a protocol that requests services from a remote computer program over a network without requiring knowledge of the underlying network technology. RPC requests call a function or method (which may be collectively referred to as a service) on one machine (client) by way of parameter transfer on another machine (server) and get the returned result. Conventional RPC request invocations are typically made within a single cluster, with poor RPC request invocations capability for services from clusters on multiple different areas. When solving cross-cluster RPC call, the RPC client needs to sense the difference of network deployment, and different proprietary realization modes are used for independent processing for cross-gateway call. Service deployment differences can result in significant intrusiveness of the service code.
The embodiment of the disclosure provides a request response method and a request response device, which are applied to an access gateway, wherein the access gateway is used for processing a transaction of an access device accessing a first service cluster, and the method comprises the following steps: obtaining a remote procedure call request from an access device, wherein the remote procedure call request is used for requesting a target service; in response to the remote procedure call request, establishing a communication link between the access gateway and a service gateway of the second service cluster in the case where the target service is provided for the second service cluster; and transmitting the remote procedure call request to the service gateway over the communication link such that the second service cluster responds to the remote procedure call request.
Fig. 1 schematically illustrates an exemplary system architecture to which request response methods and apparatus may be applied, according to embodiments of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include an access device 110, a first service cluster 120, a second service cluster 130, and a third service cluster 140. Included in first service cluster 120 is access gateway 121 and service node 122. The second service cluster 130 includes an access gateway 131 and a service node 132. The third service cluster 140 includes an access gateway 141 and a service node 142.
Communication is based on access gateway 121, access gateway 131 and access gateway 141 between access device 110, first service cluster 120, second service cluster 130 and third service cluster 140. A network medium providing a communication link between access device 110, access gateway 121, access gateway 131, and access gateway 141. The network medium providing the communication link may include various connection types, such as wired and/or wireless communication links, and the like.
A user may send a request to any one of access gateway 121, access gateway 131, and access gateway 141 over a network medium using access device 110. Access device 110 may determine the access gateway to which it matches through a routing policy, after determining the access gateway of access device 110, the access gateways of other service clusters actually become service gateways. For example, the access gateway of access device 110 is access gateway 121 in first service cluster 120, at which point access gateway 131 in second service cluster 130, and access gateway 141 in third service cluster 140 become the service gateways of access device 110.
Because each service cluster can comprise a respective access gateway, each access gateway can process access transaction of access equipment, an application layer of a remote procedure call request does not need to perceive the difference of cluster nodes of service deployment, the technical effect of decentralizing response is achieved, and the network deployment and quality requirements are reduced.
The access device 110 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like. The access device 110 may have installed thereon various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients and/or social platform software, to name a few.
Service nodes 122, 132, and 142 may be servers that provide various services, such as a background management server (by way of example only) that provides support for websites browsed by users using access device 110. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the access device 110.
It should be noted that, the request response method provided by the embodiment of the present disclosure may be generally performed by any one of the access gateway 121, the access gateway 131, and the access gateway 141. Accordingly, the request response means provided by the embodiments of the present disclosure may be generally provided in access gateway 121, access gateway 131, and access gateway 141.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically illustrates a flow chart of a request response method according to an embodiment of the disclosure.
The request response method is applied to an access gateway, and the access gateway is used for processing a transaction of accessing a first service cluster by an access device, as shown in fig. 2, and the method includes operations S201 to S203.
In operation S201, a remote procedure call request from an access device is acquired, wherein the remote procedure call request is for requesting a target service.
In response to the remote procedure call request, a communication link is established between the access gateway and a service gateway of the second service cluster in case the target service is provided for the second service cluster in operation S202.
In operation S203, a remote procedure call request is transmitted to the service gateway over the communication link so that the second service cluster responds to the remote procedure call request.
According to an embodiment of the present disclosure, the target service is determined from a remote procedure call request initiated by the access device. The user may enter a service on the access device that needs to be requested.
According to embodiments of the present disclosure, in response to a remote procedure call request, in the case where the target service is provided for the first service cluster, the remote procedure call request may be sent by the access gateway to the service node of the first service cluster for response.
According to embodiments of the present disclosure, the first service cluster and the second service cluster may be distributed clusters, which may be deployed in different areas.
According to an embodiment of the present disclosure, the first service cluster and the second service cluster may be service clusters having a superior-subordinate relationship, for example, the first service cluster is a service cluster set inside a certain enterprise main company, and the second service cluster is a service cluster set inside a branch company subordinate to the enterprise.
It should be noted that, although the foregoing only illustrates the service that the target service may provide for the second service cluster, those skilled in the art will understand that the target service may also be a service provided for the third service cluster, the fourth service cluster, or the fifth service cluster. The description of the embodiments of the present disclosure in operation S202 is merely for the purpose of expressing the case where the remote procedure call request is for requesting a target service across clusters, and should not unduly limit the scope of the present disclosure.
According to embodiments of the present disclosure, the communication link between the access gateway and the service gateway corresponds to a virtual private communication link established between the access device and the service gateway, the "link" being provided in a protocol data stream. It provides a basic function like "TCP" communication, where the protocol is largely divided into two layers: link data reliability protocol and link data processing protocol. Wherein the link data processing protocol may be further divided into a control plane and a data plane. The control surface mainly comprises a connection state maintenance message, including establishment, closing, abnormal release and the like; the data plane is mainly related business data.
According to the embodiment of the disclosure, since the communication link between the access gateway and the service gateway is equivalent to a virtual dedicated communication link established between the access device and the service gateway, for an upper application, the access client application layer does not need to perceive the difference of cluster nodes of service deployment, which is equivalent to direct communication between the access device and the service gateway, and a unified RPC call framework is provided for the upper application.
According to the embodiment of the disclosure, the remote procedure call request is responded based on the access gateway, and the cross-cluster call is realized by utilizing the communication link between the access gateway of the first service cluster and the service gateway of the second service cluster.
The method shown in fig. 2 is further described below with reference to fig. 3-5 in conjunction with the exemplary embodiment.
According to an embodiment of the present disclosure, establishing a communication link between an access gateway and a serving gateway of a second serving cluster comprises: searching a network address of a service gateway of the second service cluster; transmitting a link establishment request carrying a network address to the relay gateway so that the relay gateway transmits the link establishment request to the service gateway; receiving a link establishment response from the relay gateway, wherein the link establishment response is sent to the relay gateway by the service gateway; and establishing a communication link between the access gateway and the serving gateway based on the link establishment response.
Fig. 3 schematically illustrates a flow diagram for establishing a communication link between an access gateway and a serving gateway in accordance with an embodiment of the present disclosure.
As shown in fig. 3, establishing a communication link between an access gateway and a serving gateway includes operations S301-S306.
In operation S301, the RPC client (i.e., the access device) establishes a request for establishment of a communication link to the target cluster. The target cluster may be a second service cluster as described above.
In operation S302, the access gateway performs route lookup for the cluster, finds a service gateway of the target cluster, and route-looks for the service gateway.
In operation S303, the request packet is transmitted to the relay gateway.
In operation S304, the relay gateway forwards the request packet to the service gateway. According to an embodiment of the present disclosure, the relay gateway may be a gateway in the first service cluster, and may act as a data forwarding gateway since the data requested by the remote procedure call is not processed in the first service cluster.
In operation S305, the service gateway performs a communication link establishment process and returns a response message, i.e., a link establishment response, to the relay gateway.
In operation S306, the relay gateway returns a link setup response in the form of a data packet according to the original routing path so that the access gateway can establish a communication link between the access gateway and the service gateway based on the link setup response.
According to embodiments of the present disclosure, after the communication link is established, a remote service call may be made between the RPC client and the RPC server.
In response to a remote procedure call request, it may be determined from which service cluster the target service of the remote procedure call request was provided according to embodiments of the present disclosure.
According to embodiments of the present disclosure, a remote procedure call request may be parsed; and under the condition that the remote procedure call request carries the identification information of the second service cluster, determining that the target service is provided for the second service cluster.
According to an embodiment of the present disclosure, a service cluster for providing a target service may also be determined from a service list, where the service list includes mapping relations between different services and the service cluster. For example, the service list includes a plurality of records in which service 1 is provided by a first service cluster, service 2 is provided by a second service cluster, and service 3 is provided by a third service cluster.
Fig. 4 schematically illustrates a schematic diagram of a multi-level gateway according to an embodiment of the present disclosure.
As shown in fig. 4, the multi-stage gateway includes gateways 401 to 405, wherein a gateway 402 that is a gateway at a higher stage of the gateway 401, a gateway 403 that is a gateway at a higher stage of the gateway 402, a gateway 404 that is a gateway at a higher stage of the gateway 405, and a gateway 403 that is a gateway at a higher stage of the gateway 404.
In accordance with embodiments of the present disclosure, in an actual enterprise private deployment, a multi-cluster tree-like organization network structure as shown in fig. 4 may be used. The networking requirement for the gateway may be learning ability for multi-cluster tree routing. The routing information obtained by each tree upper level is typically more than the routing information obtained by the lower level gateway. The gateway 403 at the topmost layer has full network routing information. Once networking is complete, any of the gateways may communicate using a communication link.
According to embodiments of the present disclosure, each gateway may belong to one service cluster, and networking is performed between multiple gateways, that is, networking is implemented between multiple service clusters.
According to an embodiment of the present disclosure, networking is performed between a plurality of service clusters, wherein the plurality of service clusters includes a first service cluster and a second service cluster; and sending the routing information of the access gateway to the upper gateway according to the routing information of the upper gateway configured in the access gateway of the first service cluster, so that the upper gateway performs route learning according to the routing information of the access gateway and the routing information of the upper gateway.
According to the embodiment of the disclosure, the access gateway has the autonomous learning capability of the global network topology, and realizes the ad hoc network of the global network. According to embodiments of the present disclosure, the upper level gateway includes, but is not limited to, a service gateway and/or a relay gateway in other service clusters. According to embodiments of the present disclosure, the upper level gateway may also include a relay gateway or the like that belongs to the same service cluster as the access gateway.
According to embodiments of the present disclosure, service publishing of a service cluster relies on the ability to have global data synchronization between gateways. For data published on one access gateway, each item of data can be described by { data-in gateway, data-published gateway, data own version }, and the like. The service synchronization process is a process of transmitting and receiving data between upper and lower levels of each layer of the gateway. Consistent assurance of data may be performed through data version number constraints, according to embodiments of the present disclosure. Since cluster services vary relatively infrequently, the delay of the overall network consistency spread is negligible.
According to the embodiment of the disclosure, the access gateway may load a service list of the first service cluster, where the service list includes identification information of the first service cluster and services that can be provided by the first service cluster; the service list of the first service cluster is then synchronized to the service gateway of the second service cluster.
According to an embodiment of the disclosure, the access gateway may further receive a service list from the second service cluster, where the service list of the second service cluster includes identification information of the second service cluster and services that can be provided by the second service cluster.
According to the embodiment of the disclosure, on the basis of the service cluster synchronization information of the global network, the addressing of any cluster can be realized through the communication link between the access gateway and the service gateway, and further the transmission of RPC data under the whole network is realized through the data forwarding capability of the gateway to the communication link. For the service layer, any RPC call under the global network can be implemented.
Fig. 5 schematically illustrates a flow diagram for cluster service synchronization in accordance with an embodiment of the disclosure.
As shown in fig. 5, the cluster service synchronization method includes operations S501 to S506.
In operation S501, the access gateway loads a service list of the cluster itself.
In operation S502, it is determined whether there is a change in the service list of the cluster itself, if so, operation S503 is executed to perform the synchronization operation, otherwise, the synchronization operation is not executed. According to embodiments of the present disclosure, the service list of the cluster itself may be compared to the service list in the synchronization library, and if the same, the description is unchanged, and if different, the description is changed. The synchronous library comprises information such as service lists of different clusters, synchronous time, data version numbers and the like.
In operation S503, synchronization information is transmitted to the gateway of the previous stage.
In operation S504, the upper gateway may update the local service list according to the synchronization information.
In operation S505, when the previous gateway determines that the service list of the service cluster where the previous gateway is located has changed, the service list of the service cluster where the previous gateway is located may be sent to the access gateway as synchronization information.
In operation S506, the access gateway updates the changed service list according to the synchronization information.
According to the embodiment of the disclosure, any cross-cluster RPC call on the whole networking space can be realized through the gateway ad hoc network technology of the service cluster and the synchronization technology of the service cluster.
Fig. 6 schematically illustrates a block diagram of a request response device according to an embodiment of the disclosure.
The request response device is applied to an access gateway, where the access gateway is configured to process a transaction that an access device accesses to a first service cluster, as shown in fig. 6, where the request response device 600 includes: an acquisition module 610, a response module 620, and a transmission module 630.
An acquisition module 610 is configured to acquire a remote procedure call request from an access device, where the remote procedure call request is used to request a target service.
A response module 620, configured to establish a communication link between the access gateway and a service gateway of the second service cluster in response to the remote procedure call request in case the target service is provided for the second service cluster.
A transmission module 630 is configured to transmit the remote procedure call request to the service gateway over the communication link so that the second service cluster responds to the remote procedure call request.
According to an embodiment of the present disclosure, the response module includes: the device comprises a searching unit, a sending unit, a receiving unit and a building unit.
And the searching unit is used for searching the network address of the service gateway of the second service cluster.
And the sending unit is used for sending the link establishment request carrying the network address to the relay gateway so that the relay gateway can send the link establishment request to the service gateway.
And the receiving unit is used for receiving a link establishment response from the relay gateway, wherein the link establishment response is sent to the relay gateway by the service gateway.
And the establishing unit is used for establishing a communication link between the access gateway and the service gateway based on the link establishment response.
According to an embodiment of the present disclosure, the request response device 600 further includes: the device comprises an analysis module and a first determination module.
And the analysis module is used for analyzing the remote procedure call request.
The first determining module is used for determining that the target service is provided for the second service cluster under the condition that the remote procedure call request is obtained through analysis and identification information of the second service cluster is carried.
According to an embodiment of the present disclosure, the request response device 600 further includes: and the second determining module is used for determining a service cluster for providing the target service from the service list, wherein the service list comprises mapping relations between different services and the service cluster.
According to an embodiment of the present disclosure, the request response device 600 further includes: a loading module and a synchronizing module.
The loading module is used for loading a service list of the first service cluster, wherein the service list comprises identification information of the first service cluster and services which can be provided by the first service cluster.
And the synchronization module is used for synchronizing the service list of the first service cluster with the service gateway of the second service cluster.
According to an embodiment of the present disclosure, the request response device 600 further includes: and the receiving module is used for receiving the service list from the second service cluster, wherein the service list of the second service cluster comprises the identification information of the second service cluster and the service which can be provided by the second service cluster.
According to an embodiment of the present disclosure, the request response device 600 further includes: networking module and sending module.
And the networking module is used for networking among a plurality of service clusters, wherein the plurality of service clusters comprise a first service cluster and a second service cluster.
And the sending module is used for sending the routing information of the access gateway to the upper gateway according to the routing information of the upper gateway configured in the access gateway of the first service cluster, so that the upper gateway can perform route learning according to the routing information of the access gateway and the routing information of the upper gateway.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which when executed, may perform the corresponding functions.
For example, any number of the acquisition module 610, the response module 620, and the transmission module 630 may be combined in one module/unit/sub-unit or any one of them may be split into a plurality of modules/units/sub-units. Alternatively, at least some of the functionality of one or more of these modules/units/sub-units may be combined with at least some of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to embodiments of the present disclosure, at least one of the acquisition module 610, the response module 620, and the transmission module 630 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware, such as any other reasonable way of integrating or packaging the circuitry, or in any one of or a suitable combination of any of three implementations of software, hardware, and firmware. Alternatively, at least one of the acquisition module 610, the response module 620, and the transmission module 630 may be at least partially implemented as a computer program module, which when executed, may perform the corresponding functions.
It should be noted that, in the embodiment of the present disclosure, the request response device portion corresponds to the request response method portion in the embodiment of the present disclosure, and the description of the request response device portion specifically refers to the request response method portion and is not described herein.
Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are configured to implement a method as described above.
Another aspect of the present disclosure provides a computer program comprising computer executable instructions which when executed are for implementing a method as described above.
Fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement the above-described method according to an embodiment of the present disclosure. The electronic device shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. The processor 701 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. Note that the program may be stored in one or more memories other than the ROM 702 and the RAM 703. The processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 700 may further include an input/output (I/O) interface 705, the input/output (I/O) interface 705 also being connected to the bus 704. The electronic device 700 may also include one or more of the following components connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 702 and/or RAM 703 and/or one or more memories other than ROM 702 and RAM 703 described above.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (9)

1. A request response method applied to an access gateway, the access gateway being configured to process a transaction of an access device accessing a first service cluster, the method comprising:
obtaining a remote procedure call request from the access device, wherein the remote procedure call request is used for requesting a target service;
in response to the remote procedure call request, establishing a communication link between the access gateway and a service gateway of a second service cluster in the case where the target service is provided for the second service cluster; and
transmitting the remote procedure call request to the service gateway over the communication link so that the second service cluster responds to the remote procedure call request;
Establishing a communication link between the access gateway and a serving gateway of the second serving cluster includes:
searching a network address of a service gateway of the second service cluster;
sending a link establishment request carrying the network address to a relay gateway so that the relay gateway sends the link establishment request to the service gateway;
receiving a link establishment response from the relay gateway, wherein the link establishment response is sent by the service gateway to the relay gateway; and
a communication link is established between the access gateway and the serving gateway based on the link establishment response.
2. The method of claim 1, further comprising:
analyzing the remote procedure call request; and
and under the condition that the remote procedure call request carries the identification information of the second service cluster, determining that the target service is provided for the second service cluster.
3. The method of claim 1, further comprising:
and determining a service cluster for providing the target service from a service list, wherein the service list comprises mapping relations between different services and the service cluster.
4. The method of claim 1, further comprising:
loading a service list of the first service cluster, wherein the service list comprises identification information of the first service cluster and services which can be provided by the first service cluster;
and synchronizing the service list of the first service cluster to the service gateway of the second service cluster.
5. The method of claim 4, further comprising:
and receiving a service list from the second service cluster, wherein the service list of the second service cluster comprises identification information of the second service cluster and services which can be provided by the second service cluster.
6. The method of claim 1, further comprising:
networking between a plurality of service clusters, wherein the plurality of service clusters includes the first service cluster and the second service cluster;
and sending the routing information of the access gateway to the upper gateway according to the routing information of the upper gateway configured in the access gateway of the first service cluster, so that the upper gateway can perform routing learning according to the routing information of the access gateway and the routing information of the upper gateway.
7. A request response apparatus for use in an access gateway for handling transactions for access devices to a first service cluster, the apparatus comprising:
the acquisition module is used for acquiring a remote procedure call request from the access equipment, wherein the remote procedure call request is used for requesting a target service;
a response module, configured to establish a communication link between the access gateway and a service gateway of a second service cluster in a case where the target service is provided for the second service cluster in response to the remote procedure call request; and
a transmission module, configured to transmit the remote procedure call request to the service gateway through the communication link, so that the second service cluster responds to the remote procedure call request;
establishing a communication link between the access gateway and a serving gateway of the second serving cluster includes:
searching a network address of a service gateway of the second service cluster;
sending a link establishment request carrying the network address to a relay gateway so that the relay gateway sends the link establishment request to the service gateway;
receiving a link establishment response from the relay gateway, wherein the link establishment response is sent by the service gateway to the relay gateway; and
A communication link is established between the access gateway and the serving gateway based on the link establishment response.
8. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 6.
9. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 6.
CN202011596283.2A 2020-12-29 2020-12-29 Request response method, request response device, electronic equipment and computer readable storage medium Active CN114760360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011596283.2A CN114760360B (en) 2020-12-29 2020-12-29 Request response method, request response device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011596283.2A CN114760360B (en) 2020-12-29 2020-12-29 Request response method, request response device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114760360A CN114760360A (en) 2022-07-15
CN114760360B true CN114760360B (en) 2023-12-22

Family

ID=82324513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011596283.2A Active CN114760360B (en) 2020-12-29 2020-12-29 Request response method, request response device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114760360B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174687A (en) * 2022-07-21 2022-10-11 亚信科技(中国)有限公司 Service calling method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8868757B1 (en) * 2006-05-24 2014-10-21 Avaya Inc. Two-way web service router gateway
CN108200165A (en) * 2017-12-29 2018-06-22 广东欧珀移动通信有限公司 Ask Transmission system, method, apparatus and storage medium
CN108289060A (en) * 2017-01-09 2018-07-17 腾讯科技(深圳)有限公司 A kind of data processing method and device based on RPC service
US10121020B1 (en) * 2018-01-19 2018-11-06 Capital One Services, Llc Systems and methods of providing access to secure data
CN110365663A (en) * 2019-06-28 2019-10-22 北京淇瑀信息科技有限公司 Access method, device and electronic equipment between a kind of isolation cluster
CN110430275A (en) * 2019-08-09 2019-11-08 中国工商银行股份有限公司 Data processing method, system, calculates equipment and medium at device
CN110740162A (en) * 2019-08-30 2020-01-31 上海连尚网络科技有限公司 Communication link establishing method, device, electronic equipment and medium
CN110784489A (en) * 2019-11-12 2020-02-11 北京风信科技有限公司 Secure communication system and method thereof
CN111478771A (en) * 2020-03-31 2020-07-31 招商局金融科技有限公司 Method for safety access between micro services and micro service system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9143540B2 (en) * 2008-04-24 2015-09-22 Oracle International Corporation System and method for providing service correlation in a service access gateway environment
US8634330B2 (en) * 2011-04-04 2014-01-21 International Business Machines Corporation Inter-cluster communications technique for event and health status communications
US9072041B2 (en) * 2012-12-13 2015-06-30 Alcatel Lucent Architecture for cellular networks
US10015283B2 (en) * 2015-07-29 2018-07-03 Netapp Inc. Remote procedure call management
US20200259795A1 (en) * 2019-02-08 2020-08-13 ColorTokens, Inc. Automatic vpn establishment with split tunnel for remote resources

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8868757B1 (en) * 2006-05-24 2014-10-21 Avaya Inc. Two-way web service router gateway
CN108289060A (en) * 2017-01-09 2018-07-17 腾讯科技(深圳)有限公司 A kind of data processing method and device based on RPC service
CN108200165A (en) * 2017-12-29 2018-06-22 广东欧珀移动通信有限公司 Ask Transmission system, method, apparatus and storage medium
US10121020B1 (en) * 2018-01-19 2018-11-06 Capital One Services, Llc Systems and methods of providing access to secure data
CN110365663A (en) * 2019-06-28 2019-10-22 北京淇瑀信息科技有限公司 Access method, device and electronic equipment between a kind of isolation cluster
CN110430275A (en) * 2019-08-09 2019-11-08 中国工商银行股份有限公司 Data processing method, system, calculates equipment and medium at device
CN110740162A (en) * 2019-08-30 2020-01-31 上海连尚网络科技有限公司 Communication link establishing method, device, electronic equipment and medium
CN110784489A (en) * 2019-11-12 2020-02-11 北京风信科技有限公司 Secure communication system and method thereof
CN111478771A (en) * 2020-03-31 2020-07-31 招商局金融科技有限公司 Method for safety access between micro services and micro service system

Also Published As

Publication number Publication date
CN114760360A (en) 2022-07-15

Similar Documents

Publication Publication Date Title
EP3667500B1 (en) Using a container orchestration service for dynamic routing
CN110581890B (en) Routing method and device for service request
CN112860451A (en) Multi-tenant data processing method and device based on SaaS
US20230028120A1 (en) State management and object storage in a distributed cloud computing network
CN109783151B (en) Method and device for rule change
US20220261275A1 (en) Self-evolving microservices
CN111427701A (en) Workflow engine system and business processing method
CN111767157A (en) Request processing method and device based on service grid
CN114172966B (en) Service calling method, service processing method and device under unitized architecture
CN114760360B (en) Request response method, request response device, electronic equipment and computer readable storage medium
CN110505074B (en) Application modularization integration method and device
CN113079098B (en) Method, device, equipment and computer readable medium for updating route
US20230283695A1 (en) Communication Protocol for Knative Eventing's Kafka components
US11595471B1 (en) Method and system for electing a master in a cloud based distributed system using a serverless framework
CN112804366A (en) Method and device for resolving domain name
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN112799849B (en) Data processing method, device, equipment and storage medium
CN112801795B (en) Block chain multi-chain management method, device, electronic equipment and readable storage medium
CN112988738A (en) Data slicing method and device for block chain
CN112929453A (en) Method and device for sharing session data
CN111314457B (en) Method and device for setting virtual private cloud
US20230066960A1 (en) Infrastructure load balancing using software-defined networking controllers
CN116996481B (en) Live broadcast data acquisition method and device, electronic equipment and storage medium
US10742540B2 (en) Cloud relay system and relay server
CN116599855A (en) Data transmission method, system, electronic equipment and storage medium

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: 100044 2nd floor, building 1, yard 26, Xizhimenwai South Road, Xicheng District, Beijing

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Applicant after: Qianxin Technology Group Co.,Ltd.

Address before: 100097 No. 202, 203, 205, 206, 207, 208, 2nd floor, block D, No. 51, Kunming Hunan Road, Haidian District, Beijing

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

Applicant before: Qianxin Technology Group Co.,Ltd.

GR01 Patent grant
GR01 Patent grant