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

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

Info

Publication number
CN114760360A
CN114760360A CN202011596283.2A CN202011596283A CN114760360A CN 114760360 A CN114760360 A CN 114760360A CN 202011596283 A CN202011596283 A CN 202011596283A CN 114760360 A CN114760360 A CN 114760360A
Authority
CN
China
Prior art keywords
service
gateway
cluster
service cluster
remote procedure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011596283.2A
Other languages
Chinese (zh)
Other versions
CN114760360B (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

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure provides a request response method, applied to an access gateway, where the access gateway is configured to process a transaction of an access device accessing 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 that 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 disclosure also provides a request response device, an electronic device, a computer readable storage medium, and a computer program product.

Description

Request response method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies and internet technologies, and in particular, to a request response method, a request response device, an electronic device, a computer-readable storage medium, and a computer program product.
Background
With the rapid development of communication and computer technologies, more and more application services can be provided by enterprises, and the system scale becomes larger and larger. After the system scale is increased day by day, the requirements for network deployment and quality are high, a multi-cluster network deployment scheme appears in the related art, and a plurality of clusters located in different areas can provide different services.
In implementing the disclosed concept, the inventors found that there are at least the following problems in the related art: when the cross-cluster calling is realized through the remote procedure calling request, a service access point needs to be searched on a centralized cluster, and then the remote procedure calling service is initiated, so that the requirements on network deployment and quality are high.
Disclosure of Invention
In view of the above, the present disclosure provides a request response method, a request response apparatus, an electronic device, a computer-readable storage medium, and 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 of an access device accessing 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 if the target service is provided by the second service cluster; and transmitting the remote procedure call request to the service gateway over the communication link for the second service cluster to respond to the remote procedure call request.
According to an embodiment of the disclosure, establishing a communication link between the access gateway and a service gateway of the second service 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 can send 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 serving gateway to the relay gateway; establishing a communication link between the access gateway and the serving gateway based on the link establishment response.
According to an embodiment of the present disclosure, the 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 after being obtained through analysis.
According to an embodiment of the present disclosure, the 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 clusters.
According to an embodiment of the present disclosure, the 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; synchronizing a service list of the first service cluster to a service gateway of the second service cluster.
According to an embodiment of the present disclosure, the method further includes: 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 method further includes: networking among a plurality of service clusters, wherein the plurality of service clusters comprise the first service cluster and the second service cluster; and sending the routing information of the access gateway to the upper-level gateway according to the routing information of the upper-level gateway configured in the access gateway of the first service cluster, so that the upper-level gateway can learn the routing according to the routing information of the access gateway and the routing information of the upper-level 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, and the request response apparatus includes: the device comprises an acquisition module, a response module and a transmission module.
An obtaining module, configured to obtain a remote procedure call request from the access device, where the remote procedure call request is used to request a target service.
A response module, configured to, in response to the remote procedure call request, establish a communication link between the access gateway and a service gateway of a second service cluster when the target service is provided for the second service cluster.
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.
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 a 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 serving gateway to the relay gateway;
an establishing unit configured to establish a communication link between the access gateway and the serving 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 process call request.
A first determining module, configured to determine that the target service is provided for the second service cluster when the identification information of the second service cluster is carried in the remote procedure call request obtained through analysis.
According to an embodiment of the present disclosure, the request response device further includes: a second determining module, configured to determine a service cluster for providing the target service from a service list, where the service list includes mapping relationships 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 synchronization module.
A loading module, configured to 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.
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: a receiving module, configured to 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 an embodiment of the present disclosure, the request response device further includes: a networking module and a sending module.
A networking module, configured to perform networking among a plurality of service clusters, where the plurality of service clusters include 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-level gateway according to the routing information of the upper-level gateway configured in the access gateway of the first service cluster, so that the upper-level gateway can learn the routing according to the routing information of the access gateway and the routing information of the upper-level gateway.
Another aspect of the present disclosure provides an electronic device including: one or more processors; 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 for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, the remote procedure call request is responded based on the access gateway, cross-cluster call is realized by using the communication link between the access gateway of the first service cluster and the service gateway of the second service cluster, each service cluster can comprise the respective access gateway, each access gateway can process the access transaction of the access device, and the application layer of the remote procedure call request does not need to sense the difference of cluster nodes of service deployment, so that the technical problem that the service access point needs to be searched on a centralized cluster in the traditional cross-cluster call of the remote procedure call request in the related technology is solved, the technical effect of decentralized response is achieved, and the network deployment and quality requirements are reduced.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an exemplary system architecture to which the request response method and apparatus may be applied, according to an embodiment 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 chart for establishing a communication link between an access gateway and a serving gateway according to an embodiment of the disclosure;
figure 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 according to an embodiment of the disclosure;
FIG. 6 schematically shows a block diagram of a request response device according to an embodiment of the disclosure; and
fig. 7 schematically shows 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 these descriptions are illustrative only and are 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 disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not 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 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 is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have 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 convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have 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 implementing the present disclosure, it is found that a cross-cluster request service can be implemented between multiple clusters in different areas through a centralized gateway node, but implementing the cross-cluster request service through the centralized gateway node requires manual deployment of service information of the multiple clusters at the centralized gateway node, which results in a relatively high intrusion of service codes of the gateway node and relatively high requirements on network deployment and quality.
RPC (Remote Procedure Call Protocol), a Protocol that requests services from Remote computer programs over a network without knowledge of the underlying network technology. An RPC request calls a function or method (which may be collectively referred to as a service) on one machine (client) by means of parameter passing from another machine (server) and gets the returned result. Traditional RPC request calls are typically made within a single cluster, and RPC request calls are less capable of serving services from clusters in multiple different regions. When the cross-cluster RPC call is solved, the RPC client side needs to firstly perceive the difference of network deployment, and different privatization implementation modes are respectively used for independent processing aiming at the cross-gateway call. Service deployment differences can result in significant intrusiveness in the business 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 the affairs of accessing an access device to 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 a second service cluster in the case that 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 the request response method and apparatus may be applied, according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to 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. The first service cluster 120 includes an access gateway 121 and a service node 122. The second service cluster 130 includes an access gateway 131 and a service node 132. A third service cluster 140 includes an access gateway 141 and a service node 142.
Communication between access device 110, first service cluster 120, second service cluster 130, and third service cluster 140 is based on access gateway 121, access gateway 131, and access gateway 141. A network medium is provided with communication links 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 so forth.
A user may use access device 110 to send a request to any of access gateway 121, access gateway 131, and access gateway 141 over a network medium. The access device 110 may determine the access gateway matching it through the routing policy, and after determining the access gateway of the access device 110, the access gateways of other service clusters actually become the service gateways. For example, the access gateway of the access device 110 is the access gateway 121 in the first service cluster 120, and at this time, the access gateway 131 in the second service cluster 130 and the access gateway 141 in the third service cluster 140 become service gateways of the access device 110.
Because each service cluster can comprise the respective access gateway, each access gateway can process the access transaction of the access device, and the application layer of the remote procedure call request does not need to sense the difference of cluster nodes deployed by the service, the technical effect of decentralized 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 smart phones, tablets, laptop portable computers, desktop computers, and the like. Various messenger client applications, such as a shopping-like application, a web browser application, a search-like application, an instant messenger, a mailbox client, and/or social platform software, etc. (to name a few examples), may be installed on access device 110.
Service node 122, service node 132, and service node 142 may be servers that provide various services, such as a background management server (for example only) that provides support for websites browsed by users using access device 110. The backend management server may analyze and/or otherwise 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 access gateway 121, access gateway 131, and access gateway 141. Accordingly, the request response device provided by the embodiment of the present disclosure may be generally disposed 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 shows a flow chart of a request response method according to an embodiment of the present disclosure.
The request response method is applied to an access gateway, where the access gateway is configured to process a transaction of an access device accessing a first service cluster, 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 obtained, wherein the remote procedure call request is used to request a target service.
In operation S202, in response to the remote procedure call request, in case the target service is provided for the second service cluster, a communication link is established between the access gateway and a service gateway of the second service cluster.
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, a target service is determined according to a remote procedure call request initiated by an access device. The user may enter the service that needs to be requested on the access device.
According to an embodiment of the disclosure, in response to a remote procedure call request, in a case where a target service is provided for a first service cluster, the remote procedure call request may be sent by an access gateway to a service node of the first service cluster for response.
According to an embodiment of the disclosure, the first service cluster and the second service cluster may be distributed clusters, and 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 relationship between a higher level and a lower level, for example, the first service cluster is a service cluster set inside a certain enterprise head office, and the second service cluster is a service cluster set inside a branch office subordinate to the enterprise.
According to an embodiment of the present disclosure, it should be noted that, although only the service that the target service may provide for the second service cluster is described above, a person skilled in the art may understand that the target service may also be a service that the third service cluster, the fourth service cluster, or the fifth service cluster provides. The description of the embodiment of the present disclosure in operation S202 is only for expressing the case where the remote procedure call request is for requesting a target service across the cluster, and should not unduly limit the scope of the present disclosure.
According to an embodiment of the present disclosure, the communication link between the access gateway and the serving gateway is equivalent to a virtual private communication link established between the access device and the serving gateway, a "link" provided by the protocol data stream. It provides basic functionality like "TCP" communication, where the protocol is roughly divided into two layers: a link data reliability protocol and a link data processing protocol. Wherein the link data processing protocol can be further divided into a control plane and a data plane. The control plane mainly comprises a connection state maintenance message, including establishment and closing, abnormal release and the like; the data plane is mainly related service 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 private communication link established between the access device and the service gateway, for the upper layer application, the access client application layer does not need to sense the difference of cluster nodes of service deployment, and is equivalent to directly performing communication between the access device and the service gateway, thereby providing a uniform RPC calling framework for the upper layer application.
According to the embodiment of the disclosure, the remote procedure call request is responded based on the access gateway, cross-cluster call is realized by using the communication link between the access gateway of the first service cluster and the service gateway of the second service cluster, each service cluster can comprise the respective access gateway, each access gateway can process the access transaction of the access device, and the application layer of the remote procedure call request does not need to sense the difference of cluster nodes of service deployment, so that the technical problem that the traditional cross-cluster call of the remote procedure call request needs to search a service access point on a centralized cluster in the related art is solved, the technical effect of decentralized response is achieved, and the network deployment and quality requirements are reduced.
The method shown in fig. 2 is further described with reference to fig. 3-5 in conjunction with specific embodiments.
According to an embodiment of the disclosure, establishing a communication link between the access gateway and a service gateway of the second service cluster comprises: searching a network address of a service gateway of a second service cluster; sending a link establishment request carrying a network address to the 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 serving gateway to the relay gateway; and establishing a communication link between the access gateway and the serving gateway based on the link establishment response.
Figure 3 schematically illustrates a flow chart for establishing a communication link between an access gateway and a serving gateway according to an embodiment of the 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, an RPC client (i.e., an access device) establishes a request for establishment of a communication link to a target cluster. The target cluster may be a second service cluster as described above.
In operation S302, the access gateway performs routing lookup for the cluster, finds a service gateway of the target cluster, and performs routing lookup for the service gateway.
In operation S303, the request packet is transmitted to the trunking gateway.
In operation S304, the trunking gateway forwards the request packet to the serving gateway. According to an embodiment of the disclosure, the relay gateway may be a gateway in the first service cluster, and since the data of the remote procedure call request is not processed in the first service cluster, the relay gateway may serve as a data forwarding gateway.
In operation S305, the serving gateway performs a communication link establishment process and returns a response packet, i.e., a link establishment response, to the relay gateway.
In operation S306, the relay gateway returns a link establishment 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 serving gateway based on the link establishment response.
According to the embodiment of the disclosure, after the communication link is established, a remote service call can be made between the RPC client and the RPC server.
According to an embodiment of the present disclosure, in responding to a remote procedure call request, it may be determined by which service cluster the target service of the remote procedure call request is provided.
According to the embodiment of the disclosure, the remote procedure call request can be analyzed; and under the condition that the identification information of the second service cluster is carried in the remote process call request obtained through analysis, determining that the target service is provided for the second service cluster.
According to the embodiment of the disclosure, a service cluster for providing a target service may also be determined from a service list, where the service list includes mapping relationships between different services and the service cluster. For example, the service list includes a plurality of records of service 1 provided by the first service cluster, service 2 provided by the second service cluster, and service 3 provided by the 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-level gateways include gateways 401 to 405, where a gateway at the upper level of the gateway 401 is a gateway 402, a gateway at the upper level of the gateway 402 is a gateway 403, a gateway at the upper level of the gateway 405 is a gateway 404, and a gateway at the upper level of the gateway 404 is a gateway 403.
In an actual enterprise private deployment, a multi-cluster tree organization network structure as shown in fig. 4 may be used, according to an embodiment of the present disclosure. The networking requirement for the gateway may be a learning capability for the multi-cluster tree route. Each tree superior typically obtains more routing information than the subordinate gateways. The gateways 403 at the top level have full network routing information. Once networking is completed, any gateway can communicate with another gateway by using a communication link.
According to the embodiment of the disclosure, each gateway can belong to one service cluster, and networking is performed among a plurality of gateways, that is, networking is realized among a plurality of service clusters.
According to the embodiment of the disclosure, networking is performed among a plurality of service clusters, wherein the plurality of service clusters comprise a first service cluster and a second service cluster; and sending the routing information of the access gateway to the upper-level gateway according to the routing information of the upper-level gateway configured in the access gateway of the first service cluster, so that the upper-level gateway can learn the routing according to the routing information of the access gateway and the routing information of the upper-level gateway.
According to the embodiment of the disclosure, the access gateway has autonomous learning capability of global network topology, and realizes the ad hoc network of the global network. According to an embodiment 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 the embodiment of the present disclosure, the upper level gateway may also include a relay gateway and the like belonging to the same service cluster as the access gateway.
According to embodiments of the present disclosure, service publishing for a service cluster relies on having the capability of global data synchronization between gateways. For data published on one access gateway, each item of data can be described by information such as { data located gateway, data publishing gateway, data version } and the like. The service synchronization process is the process of data transmission and reception between the upper and lower levels of each layer of the gateway. According to the embodiment of the disclosure, the consistency guarantee of the data can be carried out through the data version number constraint. Because the cluster service has a relatively low change frequency, the delay of the network-wide consistency diffusion can be ignored.
According to the embodiment of the disclosure, an access gateway may load a service list of a first service cluster, where the service list includes identification information of the first service cluster and services that the first service cluster can provide; the service list of the first service cluster is then synchronized to the service gateway of the second service cluster.
According to the 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 the identification information of the second service cluster and the services that the second service cluster can provide.
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 RPC data is transmitted under the whole network through the data forwarding capacity of the gateway to the communication link. For the service layer, any RPC call under the global network can be realized.
FIG. 5 schematically shows a flow diagram of cluster service synchronization according to 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 the service list of the cluster itself.
In operation S502, it is determined whether the service list of the cluster itself changes, if yes, operation S503 is performed to perform a synchronization operation, otherwise, the synchronization operation is not performed. According to the embodiment of the disclosure, the service list of the cluster itself may be compared with the service list in the synchronization library, and if the service list is the same, no change is indicated, and if the service list is different, a change is indicated. The synchronization library comprises information such as service lists, synchronization time, data version numbers and the like of different clusters.
In operation S503, synchronization information is transmitted to the upper level gateway.
In operation S504, the upper level gateway may update the local service list according to the synchronization information.
In operation S505, when the previous-level gateway determines that the service list of the service cluster where the previous-level gateway is located has changed, the service list of the service cluster where the previous-level gateway is located may be sent to the access gateway as synchronization information.
The access gateway updates the changed service list according to the synchronization information in operation S506.
According to the embodiment of the disclosure, any RPC call across clusters in 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 shows a block diagram of a request response device according to an embodiment of the present disclosure.
As shown in fig. 6, the request response apparatus 600 includes: an acquisition module 610, a response module 620, and a transmission module 630.
An obtaining module 610 is configured to obtain a remote procedure call request from an access device, where the remote procedure call request is for requesting a target service.
A responding module 620, configured to, in response to the remote procedure call request, establish a communication link between the access gateway and a service gateway of the second service cluster in case that the target service is provided by the second service cluster.
A transmitting module 630, 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.
According to an embodiment of the disclosure, a 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 sends 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 serving gateway to the relay gateway.
An establishing unit configured to establish a communication link between the access gateway and a serving 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 process 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 identification information of the second service cluster is carried in the remote procedure call request obtained through analysis.
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 synchronization module.
The loading module is used for loading a service list of the first service cluster, wherein the service list comprises the identification information of the first service cluster and the 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 600 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 the identification information of the second service cluster and the services which can be provided by the second service cluster.
According to an embodiment of the present disclosure, the request response device 600 further includes: a networking module and a sending module.
The system comprises a networking module and a service management module, wherein the networking module is used for networking among a plurality of service clusters, and the 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-level gateway according to the routing information of the upper-level gateway configured in the access gateway of the first service cluster, so that the upper-level gateway can learn the routing according to the routing information of the access gateway and the routing information of the upper-level gateway.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of 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 a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any number of the obtaining module 610, the responding module 620 and the transmitting module 630 may be combined and implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into multiple modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to an embodiment of the present disclosure, at least one of the obtaining module 610, the responding module 620, and the transmitting module 630 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of or a suitable combination of software, hardware, and firmware. Alternatively, at least one of the obtaining module 610, the responding module 620 and the transmitting module 630 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
It should be noted that the request response device portion in the embodiment of the present disclosure 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, which is not described herein again.
Another aspect of the present disclosure provides an electronic device including: one or more processors; 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 for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Fig. 7 schematically shows 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 only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which 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 associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. 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 the different actions of the method flows according to embodiments of the present 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 by a bus 704. The processor 701 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. It is noted that the programs may also be stored in one or more memories other than the ROM 702 and RAM 703. The processor 701 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 700 may also include input/output (I/O) interface 705, which input/output (I/O) interface 705 is also connected to bus 704, according to an embodiment of the present disclosure. The electronic device 700 may also include one or more of the following components connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and 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. A 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 out therefrom is mounted into the storage section 708 as necessary.
According to an embodiment of the present disclosure, the method flow according to an embodiment 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 containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the processor 701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment 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 present 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, a computer-readable storage medium may include the ROM 702 and/or the RAM 703 and/or one or more memories other than the ROM 702 and the RAM 703 described above.
The flowchart 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. It will be appreciated by those skilled in the art that various combinations and/or combinations of the features recited in the various embodiments of the disclosure and/or the claims may be made even if such combinations or combinations are not explicitly recited in the disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been 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 separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (11)

1. A request response method applied to an access gateway, where the access gateway is configured to process a transaction for accessing a first service cluster by an access device, 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 if the target service is provided by the second service cluster; and
transmitting the remote procedure call request to the service gateway over the communication link for the second service cluster to respond to the remote procedure call request.
2. The method of claim 1, wherein establishing a communication link between the access gateway and a service gateway of the second service 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 can send 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 serving gateway to the relay gateway; and
establishing a communication link between the access gateway and the serving gateway based on the link establishment response.
3. The method of claim 1, further comprising:
analyzing the remote procedure call request; and
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 through analysis.
4. 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 clusters.
5. 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;
synchronizing a service list of the first service cluster to a service gateway of the second service cluster.
6. The method of claim 5, further comprising:
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.
7. The method of claim 1, further comprising:
networking among a plurality of service clusters, wherein the plurality of service clusters comprise the first service cluster and the second service cluster;
and sending the routing information of the access gateway to a superior gateway according to the routing information of the superior gateway configured in the access gateway of the first service cluster, so that the superior gateway can learn the routing according to the routing information of the access gateway and the routing information of the superior gateway.
8. A request response apparatus applied to an access gateway, the access gateway being configured to process a transaction of an access device accessing a first service cluster, the apparatus comprising:
an obtaining module, configured to obtain a remote procedure call request from the access device, where the remote procedure call request is used to request a target service;
a response module, configured to respond to the remote procedure call request, and establish a communication link between the access gateway and a service gateway of a second service cluster when the target service is provided by the second service cluster; 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.
9. 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-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 7.
11. A computer program product comprising executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 7.
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 true CN114760360A (en) 2022-07-15
CN114760360B 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)

Cited By (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 (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090268715A1 (en) * 2008-04-24 2009-10-29 Oracle International Corporation System and Method for Providing Service Correlation in a Service Access Gateway Environment
US20120254391A1 (en) * 2011-04-04 2012-10-04 International Business Machines Corporation Inter-cluster communications technique for event and health status communications
US20140169268A1 (en) * 2012-12-13 2014-06-19 Alcatel-Lucent Usa, Inc. Architecture for cellular networks
US8868757B1 (en) * 2006-05-24 2014-10-21 Avaya Inc. Two-way web service router gateway
US20170034310A1 (en) * 2015-07-29 2017-02-02 Netapp Inc. Remote procedure call management
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
US20200259795A1 (en) * 2019-02-08 2020-08-13 ColorTokens, Inc. Automatic vpn establishment with split tunnel for remote resources

Patent Citations (14)

* 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
US20090268715A1 (en) * 2008-04-24 2009-10-29 Oracle International Corporation System and Method for Providing Service Correlation in a Service Access Gateway Environment
US20120254391A1 (en) * 2011-04-04 2012-10-04 International Business Machines Corporation Inter-cluster communications technique for event and health status communications
US20140169268A1 (en) * 2012-12-13 2014-06-19 Alcatel-Lucent Usa, Inc. Architecture for cellular networks
US20170034310A1 (en) * 2015-07-29 2017-02-02 Netapp Inc. Remote procedure call management
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
US20200259795A1 (en) * 2019-02-08 2020-08-13 ColorTokens, Inc. Automatic vpn establishment with split tunnel for remote resources
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

Cited By (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

Also Published As

Publication number Publication date
CN114760360B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
US10601947B2 (en) Application service delivery through an application service avatar
US10715388B2 (en) Using a container orchestration service for dynamic routing
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
WO2016029821A1 (en) Method and device for creating virtual network instance
US11818209B2 (en) State management and object storage in a distributed cloud computing network
CN109783151B (en) Method and device for rule change
CN111884844A (en) Message service access method and device based on zookeeper
CN114172966A (en) Service calling method and device and service processing method and device under unitized architecture
US20220150326A1 (en) Eco: edge-cloud optimization of 5g applications
CN113079098B (en) Method, device, equipment and computer readable medium for updating route
CN114760360B (en) Request response method, request response device, electronic equipment and computer readable storage medium
US11575617B2 (en) Management of services in an Edge Computing system
US11595471B1 (en) Method and system for electing a master in a cloud based distributed system using a serverless framework
CN116599855A (en) Data transmission method, system, electronic equipment and storage medium
US10231269B2 (en) Dynamic generation of geographically bound manet IDs
US20210281656A1 (en) Applying application-based policy rules using a programmable application cache
CN112565340B (en) Service scheduling method, device, computer system and medium for distributed application
US10958580B2 (en) System and method of performing load balancing over an overlay network
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium
CN111314457B (en) Method and device for setting virtual private cloud
US11507433B2 (en) Infrastructure load balancing using software-defined networking controllers
CN116938757A (en) Data processing method, device, electronic equipment and storage medium
CN112365320A (en) Product information processing method and device, electronic equipment and storage medium
CN114564311A (en) Information processing method and device and electronic equipment
CN117336208A (en) Method, apparatus, device and computer readable medium for monitoring link

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant