CN113783969A - Processing method based on gateway node forwarding request and related equipment - Google Patents

Processing method based on gateway node forwarding request and related equipment Download PDF

Info

Publication number
CN113783969A
CN113783969A CN202111212052.1A CN202111212052A CN113783969A CN 113783969 A CN113783969 A CN 113783969A CN 202111212052 A CN202111212052 A CN 202111212052A CN 113783969 A CN113783969 A CN 113783969A
Authority
CN
China
Prior art keywords
service
gateway
server
interface
request
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.)
Pending
Application number
CN202111212052.1A
Other languages
Chinese (zh)
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.)
Guangzhou Xinsilu Information Technology Co ltd
Original Assignee
Guangzhou Xinsilu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xinsilu Information Technology Co ltd filed Critical Guangzhou Xinsilu Information Technology Co ltd
Priority to CN202111212052.1A priority Critical patent/CN113783969A/en
Publication of CN113783969A publication Critical patent/CN113783969A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion

Abstract

The application discloses a processing method based on gateway node forwarding request and related equipment, a service system enables a gateway to call an interface address of an interface of a server according to definition information through the definition information of the server carried in a service request, so that the gateway forwards the service request to the server, the service system only needs to record the interface address of the gateway, the management is convenient, and the technical problems that when the service system calls a plurality of interface address paths, the service system needs to record a plurality of interface address paths, and if the subsequent interfaces of the server need to be connected are increased, the interface address paths needing to be recorded can be correspondingly increased, the service system needs to manage the interface path addresses of the server respectively, and the service system cannot be unified and is inconvenient to manage are solved.

Description

Processing method based on gateway node forwarding request and related equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and a related device for processing a forwarding request based on a gateway node.
Background
In a distributed architecture, a gateway needs to identify and forward an instruction or a message to interfaces of different service ends according to interface address paths, the interface address paths of different interfaces are different, when a service system calls a plurality of interface address paths, the service system needs to record a plurality of interface address paths, and if the subsequent interfaces of the service ends need to be connected are increased, the interface address paths needing to be recorded are correspondingly increased, so that the technical problems that the service system needs to manage the interface path addresses of the service ends respectively, and the service system cannot be unified and is inconvenient to manage are caused.
Disclosure of Invention
The application provides a processing method and related equipment for forwarding requests based on gateway nodes, which solve the technical problems that when a service system calls a plurality of interface address paths, the service system needs to record the plurality of interface address paths, and if interfaces to be connected with a server are increased subsequently, the interface address paths needing to be recorded are correspondingly increased, so that the service system needs to manage the interface path addresses of the server respectively, and cannot be unified and is inconvenient to manage.
In view of this, a first aspect of the present application provides a method for processing a forwarding request based on a gateway node, where the method includes:
the service system sends a service request to the gateway according to the recorded first interface address, wherein the service request carries definition information and service information of a service end;
the gateway calls a second interface address of the interface of the server according to the definition information in the service request;
and the gateway forwards the service information in the service request to the second interface address, so that the service end processes based on the service information.
Optionally, the definition information includes a code of an interface of the server and a version number of the interface of the server.
Optionally, before the service system sends the service request to the gateway according to the recorded first interface address, the method further includes:
and the gateway configures the incidence relation between the definition information of the server and the second interface address of the interface of the server.
Optionally, the gateway forwards the service information in the service request to the second interface address, so that the processing performed by the server based on the service information specifically includes:
and the gateway sends the service message in the service request to a message queue corresponding to the second interface address in an asynchronous message queue mode, so that the service end processes the service message by consuming the service message in the message queue.
A second aspect of the present application provides a system for processing a forwarding request based on a gateway node, where the system includes: a service system, a gateway and a server;
the service system sends a service request to the gateway according to the recorded first interface address, wherein the service request carries definition information and service information of a service end;
the gateway calls a second interface address of the interface of the server according to the definition information in the service request;
and the gateway forwards the service information in the service request to the second interface address, so that the service end processes based on the service information.
Optionally, the definition information includes a code of an interface of the server and a version number of the interface of the server.
Optionally, the method further comprises:
and the gateway configures the incidence relation between the definition information of the server and the second interface address of the interface of the server.
Optionally, the gateway forwards the service information in the service request to the second interface address, so that the processing performed by the server based on the service information specifically includes:
and the gateway sends the service message in the service request to a message queue corresponding to the second interface address in an asynchronous message queue mode, so that the service end processes the service message by consuming the service message in the message queue.
A third aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is configured to store a program code, and the program code is configured to execute the method for processing a gateway node-based forwarding request according to any one of the first aspect of the present application.
A fourth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method for processing a gateway node-based forwarding request according to the first aspect of the present application.
According to the technical scheme, the embodiment of the application has the following advantages:
the application provides a processing method based on a gateway node forwarding request, a service system calls an interface address of an interface of a server according to definition information through the definition information of the server carried in a service request, so that the gateway forwards the service request to the server, the service system only needs to record the interface address of the gateway, the management is convenient, and the technical problems that when the service system calls a plurality of interface address paths, the service system needs to record a plurality of interface address paths, and if the subsequent interfaces of the server need to be connected are increased, the interface address paths needing to be recorded are correspondingly increased, the service system needs to manage the interface path addresses of the server respectively, and the service system cannot be unified and is inconvenient to manage are solved.
Drawings
Fig. 1 is a flowchart of a method for processing a forwarding request based on a gateway node in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a processing system for forwarding a request based on a gateway node in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application designs a processing method and related equipment based on gateway node forwarding request, and solves the technical problems that when a service system calls a plurality of interface address paths, the service system needs to record the plurality of interface address paths, and if interfaces to be connected with a server are increased subsequently, the interface address paths needing to be recorded are correspondingly increased, so that the service system needs to manage the interface path addresses of the server respectively, and cannot be unified and is inconvenient to manage.
For convenience of understanding, please refer to fig. 1, where fig. 1 is a flowchart of a method for processing a forwarding request based on a gateway node in an embodiment of the present application, and as shown in fig. 1, the method specifically includes:
101. the service system sends a service request to the gateway according to the recorded first interface address, wherein the service request carries definition information and service information of the service end;
it should be noted that the service system only needs to record the first interface address of the gateway, and can send the service request to the gateway. The service request carries definition information of a service end of the service system needing to call the service and service information, wherein the definition information of the service end is specifically a code of an interface of the service end and a version number of the interface of the service end. It is understood that the service system can send the service request to the service end with any version number.
102. The gateway calls a second interface address of the interface of the server according to the definition information in the service request;
it should be noted that, after receiving a service request sent by the service system, the gateway parses the definition information therein, and invokes the second interface address of the interface of the service end according to the association relationship between the definition information of the service end and the second interface address of the interface of the service end configured by the gateway.
103. And the gateway forwards the service information in the service request to the second interface address, so that the service end processes based on the service information.
It should be noted that, after the gateway calls the second interface address of the interface of the server, the gateway forwards the service information in the service request to the second interface address, so that the server performs subsequent service processing based on the service information. In the way of forwarding the service information by the gateway, for services for which a request result does not need to be returned for a small part of services, the congestion caused by excessive number of service messages can be avoided in the way of an asynchronous message queue.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a processing system for forwarding a request based on a gateway node in an embodiment of the present application, and as shown in fig. 2, the processing system includes: a service system 201, a gateway 202 and a server 203;
the service system 201 sends a service request to the gateway 202 according to the recorded first interface address, wherein the service request carries definition information and service information of the service end 203;
the gateway 202 calls a second interface address of the interface of the server 203 according to the definition information in the service request;
the gateway 202 forwards the service information in the service request to the second interface address, so that the server 203 performs processing based on the service information.
Further, the definition information includes the code of the interface of the server 203 and the version number of the interface of the server 203.
Further, still include:
the gateway 202 configures an association between the definition information of the server 203 and the second interface address of the interface of the server 203.
Further, the gateway 202 forwards the service information in the service request to the second interface address, so that the processing performed by the server 203 based on the service information specifically includes:
the gateway 202 sends the service message in the service request to the message queue corresponding to the second interface address in an asynchronous message queue manner, so that the server 203 processes the service message by consuming the service message in the message queue.
The embodiment of the present application further provides a computer-readable storage medium, configured to store a program code, where the program code is configured to execute any one implementation manner of the gateway node forwarding request based processing method in the foregoing embodiments.
The present application further provides a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the implementation manners of the gateway node based request forwarding processing method according to the foregoing embodiments.
In the embodiment of the application, a processing method based on a gateway node forwarding request and related equipment are provided, a service system enables a gateway to call an interface address of an interface of a server according to definition information through the definition information of the server carried in a service request, so that the gateway forwards the service request to the server, the service system only needs to record the interface address of the gateway, and management is facilitated, and the technical problems that when the service system calls a plurality of interface address paths, the service system needs to record a plurality of interface address paths, and if interfaces of the server need to be subsequently connected are increased, the interface address paths needing to be recorded are correspondingly increased, and the service system needs to manage the interface path addresses of the server respectively, and cannot be unified and is inconvenient to manage are solved.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A processing method based on gateway node forwarding request is characterized by comprising the following steps:
the service system sends a service request to the gateway according to the recorded first interface address, wherein the service request carries definition information and service information of a service end;
the gateway calls a second interface address of the interface of the server according to the definition information in the service request;
and the gateway forwards the service information in the service request to the second interface address, so that the service end processes based on the service information.
2. The method according to claim 1, wherein the definition information includes a code of an interface of the server and a version number of the interface of the server.
3. The method as claimed in claim 1, wherein before the service system sends the service request to the gateway according to the recorded first interface address, the method further comprises:
and the gateway configures the incidence relation between the definition information of the server and the second interface address of the interface of the server.
4. The method for processing a forwarding request based on a gateway node according to claim 1, wherein the gateway forwards the service information in the service request to the second interface address, so that the processing performed by the server based on the service information specifically includes:
and the gateway sends the service message in the service request to a message queue corresponding to the second interface address in an asynchronous message queue mode, so that the service end processes the service message by consuming the service message in the message queue.
5. A system for processing a request forwarded by a gateway node, comprising: a service system, a gateway and a server;
the service system sends a service request to the gateway according to the recorded first interface address, wherein the service request carries definition information and service information of a service end;
the gateway calls a second interface address of the interface of the server according to the definition information in the service request;
and the gateway forwards the service information in the service request to the second interface address, so that the service end processes based on the service information.
6. The gateway node-based processing system for forwarding requests according to claim 5, wherein said definition information includes a code of an interface of the server and a version number of the interface of the server.
7. The gateway node forwarding request based processing system of claim 5, further comprising:
and the gateway configures the incidence relation between the definition information of the server and the second interface address of the interface of the server.
8. The system according to claim 5, wherein the gateway forwards the service information in the service request to the second interface address, so that the processing performed by the server based on the service information specifically includes:
and the gateway sends the service message in the service request to a message queue corresponding to the second interface address in an asynchronous message queue mode, so that the service end processes the service message by consuming the service message in the message queue.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium is configured to store a program code for executing the processing method of forwarding a request based on a gateway node according to any one of claims 1 to 4.
10. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of processing a gateway node forwarding request according to any one of claims 1 to 4.
CN202111212052.1A 2021-10-18 2021-10-18 Processing method based on gateway node forwarding request and related equipment Pending CN113783969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111212052.1A CN113783969A (en) 2021-10-18 2021-10-18 Processing method based on gateway node forwarding request and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111212052.1A CN113783969A (en) 2021-10-18 2021-10-18 Processing method based on gateway node forwarding request and related equipment

Publications (1)

Publication Number Publication Date
CN113783969A true CN113783969A (en) 2021-12-10

Family

ID=78956505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111212052.1A Pending CN113783969A (en) 2021-10-18 2021-10-18 Processing method based on gateway node forwarding request and related equipment

Country Status (1)

Country Link
CN (1) CN113783969A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557284A (en) * 2019-08-30 2019-12-10 贝壳技术有限公司 data aggregation method and device based on client gateway
CN110636115A (en) * 2019-08-29 2019-12-31 平安医疗健康管理股份有限公司 Cross-cloud service calling processing method, gateway server and requester server
CN111314459A (en) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 Service request method, device, electronic equipment and storage medium
CN112822298A (en) * 2021-04-19 2021-05-18 北京世纪好未来教育科技有限公司 Business service capacity expansion and reduction method, device, medium and electronic equipment
CN113312390A (en) * 2021-06-01 2021-08-27 北京沃东天骏信息技术有限公司 Service data calling method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636115A (en) * 2019-08-29 2019-12-31 平安医疗健康管理股份有限公司 Cross-cloud service calling processing method, gateway server and requester server
CN110557284A (en) * 2019-08-30 2019-12-10 贝壳技术有限公司 data aggregation method and device based on client gateway
CN111314459A (en) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 Service request method, device, electronic equipment and storage medium
CN112822298A (en) * 2021-04-19 2021-05-18 北京世纪好未来教育科技有限公司 Business service capacity expansion and reduction method, device, medium and electronic equipment
CN113312390A (en) * 2021-06-01 2021-08-27 北京沃东天骏信息技术有限公司 Service data calling method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN106375458B (en) Service calling system, method and device
CN107888787B (en) Method and device for processing media access request
US20160014009A1 (en) Dynamic routing system
CN109274522B (en) OAM information processing method, device, equipment and storage medium
CN108377232B (en) Multi-protocol communication method and device, electronic equipment and readable storage medium
CN110784345B (en) Network traffic processing method and device, electronic equipment and machine-readable storage medium
EP3790239A1 (en) Network access method and device for edge router
CN113553310B (en) Data acquisition method and device, storage medium and electronic equipment
CN106911769B (en) Cloud platform routing data processing method and physical server of cloud platform
US11544119B2 (en) Business rules processing framework for implementing new desired functionality in a telecommunication application
CN108304272B (en) Data IO request processing method and device
CN114500633B (en) Data forwarding method, related device, program product and data transmission system
CN104426968A (en) Data management method and device
CN107094085B (en) Signaling transmission method and device
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN113783969A (en) Processing method based on gateway node forwarding request and related equipment
BRPI0910929B1 (en) METHOD AND SYSTEM FOR IMPLEMENTING MULTIMEDIA MESSAGE TRANSMISSION SERVICE, MESSAGE TRANSMISSION SERVICE CONTROL FUNCTION AND MULTIMEDIA MESSAGE TRANSMISSION SERVICE CENTER
CN106502841A (en) Data back up method and device
CN108628864B (en) Data access method and data management device
CN115480934A (en) Distributed data processing method, device, equipment and storage medium
CN111131512B (en) Equipment information processing method and device, storage medium and processor
CN111884932B (en) Link determining method, device, equipment and computer readable storage medium
CN110830477B (en) Service identification method, device, gateway, system and storage medium
CN113132273B (en) Data forwarding method and device
EP1820311A1 (en) A messaging gateway and method

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