CN110620721A - Gateway equipment, application method and service system - Google Patents

Gateway equipment, application method and service system Download PDF

Info

Publication number
CN110620721A
CN110620721A CN201911020829.7A CN201911020829A CN110620721A CN 110620721 A CN110620721 A CN 110620721A CN 201911020829 A CN201911020829 A CN 201911020829A CN 110620721 A CN110620721 A CN 110620721A
Authority
CN
China
Prior art keywords
service information
service
component
parameter mapping
protocol conversion
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
CN201911020829.7A
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.)
Shanghai Tunji Network Technology Co Ltd
Shanghai Zhongtongji Network Technology Co Ltd
Original Assignee
Shanghai Tunji Network 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 Shanghai Tunji Network Technology Co Ltd filed Critical Shanghai Tunji Network Technology Co Ltd
Priority to CN201911020829.7A priority Critical patent/CN110620721A/en
Publication of CN110620721A publication Critical patent/CN110620721A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • 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/29Flow control; Congestion control using a combination of thresholds
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

The invention relates to a gateway device, an application method and a service system, which comprise a parameter mapping component, a protocol conversion component and a receiving and sending component, wherein the parameter mapping module and the protocol conversion component are used for carrying out parameter mapping and corresponding protocol conversion according to an address identifier carried in service information, and obtaining service information after protocol conversion after conversion, and the service information after protocol conversion is sent to a corresponding target server through the receiving and sending component, so that the repeated development of the parameter mapping and protocol conversion functions of each application server is replaced by the gateway device, the development efficiency is improved, and the information interaction speed is improved by directly carrying out the information interaction with a front-end application and a server through the gateway device.

Description

Gateway equipment, application method and service system
Technical Field
The invention relates to the technical field of networks, in particular to gateway equipment, an application method and a service system.
Background
The business system is provided for basic personnel to use, is an information system for pertinently supporting the business processing process, and can provide good information processing function for business links such as completion of certain work, related production and purchase and the like based on certain functional modules.
The existing development service system is developed through application servers, each application server performs data transmission and information interaction with front-end application through an application interface, then the application servers process data, each application server has some repetitive functions during processing, mapping, protocol conversion, single sign-on and the like are required, and if the functions of each application server are developed one by one, the development process is very complicated and the efficiency is low.
Disclosure of Invention
In view of this, the present invention provides a gateway device, an application method, and a service system, so as to solve the problems of repetitive development of some functions of an application interface for data transmission and information interaction in the existing service system, and resulting tedious development process and low efficiency.
In order to achieve the purpose, the invention adopts the following technical scheme:
a gateway device, comprising: the device comprises a parameter mapping component, a protocol conversion component and a transceiving component;
the receiving and sending component is used for receiving service information of a user, and the service information carries an address identifier;
the parameter mapping component is used for determining a corresponding input parameter mapping rule according to the address identifier, performing input parameter mapping on the service information according to the input parameter mapping rule, obtaining mapped service information and then sending the mapped service information to the protocol conversion component;
the protocol conversion component converts the mapped service information according to the protocol of the corresponding service according to the address identifier to obtain service information after protocol conversion, and sends the service information to the transceiving component;
and the transceiving component is used for determining a target server according to the address identifier and sending the service information after protocol conversion to the target server.
Further, the transceiver component is further configured to:
receiving calling service data sent by the target server;
the protocol conversion component is also used for converting the calling service data according to the protocol of the corresponding front-end application according to the address identifier to obtain the calling service data after protocol conversion;
the parameter mapping component is further used for determining a corresponding output parameter mapping rule according to the address identifier, calling service data after protocol conversion according to the output parameter mapping rule to perform output parameter mapping to obtain target service data, and sending the target service data to a user through the transceiving component.
Further, the transceiver component is specifically configured to:
and determining the target server from a plurality of server addresses corresponding to the address identifier according to the address identifier and a preset load balancing algorithm.
Further, the transceiver component is further configured to:
and after the service information after the protocol conversion is sent to the target server, if the target service data is not received within the preset time, performing degradation processing on the service information after the protocol conversion.
Further, the transceiver component is further configured to:
and when the target server fails, carrying out fusing processing on the target server.
Further, the transceiver component is further configured to:
when the access flow of the target server is greater than or equal to a preset threshold value, performing access flow control on the service information after the protocol conversion; and/or
And when the access flow of the transceiving component is greater than or equal to a preset threshold value, performing access flow control on the service information.
Further, the method also comprises the following steps: an anti-brush assembly;
the anti-brush component is used for calculating the access frequency of target service data requested to be accessed by the service information before the parameter mapping component performs input parameter mapping on the service information, and judging whether the access frequency of the target service data of the same user exceeds a preset limit or not;
and if the access frequency of the target service data exceeds the preset limit, the parameter mapping component does not perform input parameter mapping on the service information.
An application method of a gateway device includes:
receiving service information of a user, wherein the service information carries an address identifier;
the business information determines a corresponding input parameter mapping rule according to the server identification, and performs input parameter mapping on the business information according to the input parameter mapping rule to obtain mapped business information;
converting the mapped service information according to a protocol of a corresponding service according to the address identifier to obtain service information after protocol conversion;
and determining a target server according to the address identifier, and sending the service information after protocol conversion to the target server.
Further, the determining the target server according to the address identifier specifically includes:
and determining the target server from a plurality of server addresses corresponding to the address identifier according to the address identifier and a preset load balancing algorithm.
A business system comprising: the system comprises front-end application equipment, service equipment and the gateway equipment, wherein the front-end application equipment is connected with the service equipment through the gateway equipment;
the front-end application device is used for receiving a request instruction of a user, converting the request instruction into service information and sending the service information to the gateway device.
The technical scheme provided by the application can comprise the following beneficial effects:
the invention comprises a parameter mapping component, a protocol conversion component and a transceiving component, wherein the parameter mapping module and the protocol conversion component are used for carrying out parameter mapping and corresponding protocol conversion according to an address identifier carried in service information, and obtaining service information after protocol conversion after conversion, and the service information after protocol conversion is sent to a corresponding target server through the transceiving component, thereby realizing the development of parameter mapping and protocol conversion function repeatability of each application server by using gateway equipment instead, improving the development efficiency, and improving the information interaction speed by directly carrying out information interaction with a front-end application and a server through the gateway equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a gateway device according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an application method of a gateway device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service system according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Example one
Fig. 1 is a schematic structural diagram of a gateway device according to an embodiment of the present invention.
As shown in fig. 1, the gateway device of this embodiment includes:
a parameter mapping component 101, a protocol conversion component 102 and a transceiving component 103; the transceiving component 103 is configured to receive service information of a user, where the service information carries an address identifier; the parameter mapping component 101 is configured to determine a corresponding input parameter mapping rule according to the address identifier, perform input parameter mapping on the service information according to the input parameter mapping rule, obtain mapped service information, and send the mapped service information to the protocol conversion component 102.
The address identification can comprise a front-end application address identification sent from a certain application program in the browser for a user and a service address identification to be accessed; the service information carries a front-end application address identifier and a service address identifier.
The parameter mapping component 101 determines a corresponding input parameter mapping rule according to the address identifier, for example, if the user wants to access a treasure-panning website, a request in the treasure-panning website is connected to a plurality of services at the back end through the gateway device, where the request includes a request for querying an express track, a request for placing an order for express delivery, and the like, and the back end service includes a service for an express track, a service for responding to a release order for express delivery, and the like.
For example, if the user wants to inquire the track of a certain express bill number, the service information received by the parameter mapping component is billNo:1212121212, and according to the parameter mapping rule: billNo- > billNumber, the correspondence is converted to: BillNumber: 1212121212, the mapped service information is obtained and sent to the back-end corresponding target server after protocol conversion, but if the service information input by the user is directly sent to the back-end service, the back-end target server can not identify and can return error information to the user. If the service information of the user received by the parameter mapping component 101 is a billCode, that is, a two-dimensional code of an express delivery order number, similarly, the billCode is converted into a billNumber according to a parameter mapping rule corresponding to the billCode: 1212121212, the same service data call is made to the back-end target server, and the called service data includes where the express departs, where it is going, what state it is in, etc.
For another example, the user name received by the transceiving component 103 is: the username: xxxx, the service information of the service information includes, in addition to a user name input by a user, an address identifier, where the address identifier is a front-end application address and a service address identifier to be accessed, which are sent by the user from an application program of a browser, after the parameter mapping group 101 receives the service information, a corresponding parameter mapping rule is determined according to the address identifier, an input parameter mapping configuration is performed on the user name according to the parameter mapping rule, the parameter mapping rule is user name- > us, the user name input by the user is mapped to obtain mapped service information us: xxxx, and then the mapped service information us: xxxx is sent to a protocol conversion component, where the mapped service information also includes the service address identifier to be accessed.
The protocol conversion component 102 converts the mapped service information according to the protocol of the corresponding service according to the address identifier to obtain the service information after protocol conversion, and sends the service information to the transceiving component 103.
The protocol conversion component 102 determines a corresponding service protocol according to the service address identifier to be accessed carried in the mapped service information, for example, if the service address identifier to be accessed carried in the mapped service information us: xxxx is a dubbo service, the corresponding dubbo service protocol is determined, the mapped service information is correspondingly converted according to the service protocol, and the service information after the protocol conversion is obtained and sent to the transceiving component 103.
And the transceiving component 103 is configured to determine a target server according to the address identifier, and send the service information after the protocol conversion to the target server. For example, if the service address to be accessed by the mapped service information is identified as a dubbo service, the service information is remotely called for the dubbo service after protocol conversion; if the service address identifier to be accessed by the mapped service information is an HTTP service, the service information after protocol conversion remotely calls the HTTP service, and the called service can be: http://127.0.0.1: 8080/service; if the service address to be accessed by the mapped service information is identified as the mq service, the service information after protocol conversion remotely calls the mq service in an mq.
Further, the transceiver module 103 is further configured to: receiving calling service data sent by a target server, wherein the calling service data carries address identification, and the address identification comprises a front-end application address identification and a service address identification; the front-end application address identifier may be a corresponding identifier sent by a user from an application program of the browser, and the protocol conversion component 102 is further configured to convert, according to the front-end application address identifier, the call service data according to a protocol of a corresponding front-end application, to obtain the call service data after the protocol conversion.
The parameter mapping component 101 is further configured to determine a corresponding output parameter mapping rule according to the front-end application address identifier in the address identifier, perform output parameter mapping on the service data called after the protocol conversion according to the output parameter mapping rule, obtain target service data, and send the target service data to the user through the transceiving component 103.
For example, the call service data is: the method comprises the steps that { scanMan: 'Liquad', scanContent: 'scanning' }, service information of a user sent by front-end application is operator and operateContent, a protocol conversion component 102 converts calling service data according to a protocol of corresponding front-end application according to a front-end application address identifier to obtain protocol conversion and then calls the service data, a corresponding output parameter mapping rule is determined through a parameter mapping component 101, and { scanMan: 'Liquad', scanContent: 'scanning' } is correspondingly converted into { operator: 'Liquad', operateContent: 'scanning' } according to the output parameter mapping rule and then returns to a front-end application program.
Further, the transceiver component 103 is specifically configured to: and determining a plurality of corresponding servers according to the address identifiers and a preset load balancing algorithm and the service address identifiers in the address identifiers, and selecting one server from the servers to determine as a target server.
And the address identifier selects a certain internal target server in each group of servers according to a preset load balancing algorithm to communicate with the internal corresponding target server, so that the purpose of load balancing is achieved. The gateway equipment is located between the external application and the internal service, so that not only can a certain external application be forwarded to the gateway equipment, a certain parameter mapping and protocol conversion are carried out and correspondingly sent to the internal server, but also the internal server can access an external application address.
Further, the transceiver module 103 is further configured to: and after the service information after the protocol conversion is sent to the target server, if the target service data is not received within the preset time, performing degradation processing on the service information after the protocol conversion.
The target server comprises multi-stage services, and the degradation processing comprises the following steps: if the target service level of the target server does not respond within the preset time, the service information after the protocol conversion is sent to the previous level of the target server, for example, if the corresponding target service data is not received within the preset time of 30 seconds due to some reasons such as an excessive access data amount, the service information after the protocol conversion is sent to the previous level of the corresponding target service level in the target server, and the previous level of service data in the target service level is called.
Further, the transceiver module 103 is further configured to: and when the target server fails, fusing the target server. The fusing processing is to disconnect the connection with the rear-end target server, and after the disconnection with the rear-end target server, the receiving and sending component returns a fault message to the user so as to inform the user of the fault message of the target server.
Further, the transceiver module 103 is further configured to: when the access flow of the target server is greater than or equal to a preset threshold value, performing access flow control on the service information after protocol conversion; and/or performing access flow control on the service information when the access flow of the transceiving component 103 is greater than or equal to a preset threshold.
The flow control is control of access data volume of the service information received by the transceiving component within a certain preset time period, and the certain preset time period may be every minute, every second or every hour. For example, the preset threshold is 10 ten thousand times per second, and if the total access data volume received by the transceiving component in each second exceeds 10 ten thousand times, then flow control is performed on the received service information, so that processing on the service information is reduced, and the subsequent normal access is not affected by congestion of an access data channel.
Further, the method also comprises the following steps: an anti-brush assembly; the anti-brush component is used for calculating the access frequency of the target service data which is requested to be accessed by the service information before the parameter mapping component 101 performs input parameter mapping on the service information, and judging whether the access frequency of the target service data of the same user exceeds a preset limit or not; if the access frequency of the target service data exceeds the preset limit, the parameter mapping component 101 does not perform input parameter mapping on the service information.
For example, the preset limit of the access frequency of the target service data of the same user is three times per ten minutes, and if the access frequency of the target service data of the user exceeds three times within ten minutes, the target service data accessed by the user is limited, so that the parameter mapping component 101 does not perform input parameter mapping on the service information, and the user can continue to be allowed to access a certain service after ten minutes.
The embodiment utilizes the parameter mapping component, the protocol conversion component and the transceiving component, the parameter mapping module and the protocol conversion component are used for carrying out parameter mapping and corresponding protocol conversion according to the address identifier carried in the service information to obtain the service information after the protocol conversion, and the service information is sent to the target server through the transceiving component, and the transceiving component returns to a user after receiving the target service data sent by the target server and processing the data through the parameter mapping component and the protocol conversion component, so that the development of parameter mapping and protocol conversion function repeatability of each application server is replaced by gateway equipment, the development efficiency is improved, information interaction is directly carried out with the front-end application and the server through the gateway equipment, and the information interaction speed is improved.
Example two
Fig. 2 is a schematic flowchart of an application method of a gateway device according to a second embodiment of the present invention. The method of this embodiment is further applied to the gateway device based on the embodiment shown in fig. 1, and further description is made for this.
As shown in fig. 2, an application method of a gateway device according to a second embodiment of the present invention includes:
s201, receiving service information of a user, wherein the service information carries an address identifier;
s202, the business information determines a corresponding input parameter mapping rule according to the address identifier, and input parameter mapping is carried out on the business information according to the input parameter mapping rule to obtain mapped business information;
s203, converting the mapped service information according to the protocol of the corresponding service according to the address identifier to obtain service information after protocol conversion;
and S204, determining a target server according to the address identifier, and sending the service information after protocol conversion to the target server.
Further, the method also comprises the following steps: receiving calling service data sent by a target server;
converting the calling service data according to the protocol corresponding to the front-end application according to the address identifier to obtain the calling service data after protocol conversion;
and determining a corresponding output parameter mapping rule according to the address identifier, calling service data after protocol conversion according to the output parameter mapping rule to perform output parameter mapping to obtain target service data, and sending the target service data to a user.
Further, determining the target server according to the address identifier specifically includes:
and determining a target server from a plurality of server addresses corresponding to the address identifier according to the address identifier and a preset load balancing algorithm.
Further, the method also comprises the following steps: and after the service information after the protocol conversion is sent to the target server and the target service data is not received within the preset time, performing degradation processing on the service information after the protocol conversion.
Further, the method also comprises the following steps: and when the target server fails, fusing the target server.
Further, the method also comprises the following steps: when the access flow of the target server is greater than or equal to a preset threshold value, performing access flow control on the service information after protocol conversion; and/or
And when the access flow of the transceiving component is greater than or equal to a preset threshold value, performing access flow control on the service information.
Further, before performing input parameter mapping on the service information, the method also comprises the following steps; calculating the access frequency of the target service data requested to be accessed by the service information, and judging whether the access frequency of the target service data of the same user exceeds a preset limit or not;
and if the access frequency of the target service data exceeds the preset limit, the parameter mapping component does not perform input parameter mapping on the service information.
The specific manner in which the method in the above-described embodiment, in which the respective method steps perform operations, has been described in detail in the above-described embodiment related to the gateway device, and will not be elaborated upon here.
The method of the embodiment receives the service information of the user, the service information determines the corresponding mapping rule according to the carried address identifier, and the input parameter mapping is carried out on the service information according to the parameter mapping rule to obtain the mapped service information; converting the mapped service information according to the protocol of the corresponding service according to the address identifier to obtain service information after protocol conversion; the method comprises the steps of determining a target server according to an address identifier, sending service information after protocol conversion to the target server, completing the purpose of sending the service information of a user to the target server after parameter mapping and protocol conversion, reducing the processes of parameter mapping and protocol conversion of the service information of the user by each application server, and enabling developers not to develop the same functions of the parameter mapping and the protocol conversion of each application server one by one, thereby saving the development time, improving the development efficiency, directly performing information interaction with a front-end application and a server through gateway equipment, and improving the speed of information interaction.
EXAMPLE III
In order to be more comprehensive, the present invention further provides a service system corresponding to the gateway device provided in the embodiment of the present invention. Fig. 3 is a schematic structural diagram of a service system according to a third embodiment of the present invention.
As shown in fig. 3, a service system according to a third embodiment of the present invention includes: the system comprises a front-end application device 301, a service device 303 and the gateway device 302, wherein the front-end application device 301 is connected with the service device 303 through the gateway device 302; the service device 303 may be divided into a plurality of server groups according to a protocol, each server group may include a plurality of servers, each server corresponds to a server address, and a plurality of servers correspond to a plurality of server addresses. In this embodiment, fig. 3 illustrates three server groups, which may be a first server group, a second server group, and a third server group. For example, the first server group may be an HTTP server group, the second server group may be a dubbo server group, and the third server group may be an mq server group; however, the present invention is not limited to three service groups, and may be any number of two, four, etc. service groups, and each service group may include any number of five, ten, etc. servers.
The front-end application device 301 is configured to receive a request instruction of a user, convert the request instruction into service information, and send the service information to the gateway device 302. The front-end application device 301 may be a mobile phone, a computer, an internet of things device, etc. with a front-end application program installed.
With regard to the service system in the foregoing embodiment, the specific manner and process of the operation performed by each part have been described in detail in the foregoing embodiments related to the embodiment of the gateway device and the application method of the gateway device, the same or similar parts in the foregoing embodiments may be referred to each other, and the content that is not described in detail in some embodiments may refer to the same or similar content in other embodiments.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A gateway device, comprising: the device comprises a parameter mapping component, a protocol conversion component and a transceiving component;
the receiving and sending component is used for receiving service information of a user, and the service information carries an address identifier;
the parameter mapping component is used for determining a corresponding input parameter mapping rule according to the address identifier, performing input parameter mapping on the service information according to the input parameter mapping rule to obtain mapped service information, and sending the mapped service information to the protocol conversion component;
the protocol conversion component converts the mapped service information according to the protocol of the corresponding service according to the address identifier to obtain service information after protocol conversion, and sends the service information to the transceiving component;
and the transceiving component determines a target server according to the address identifier and sends the service information after protocol conversion to the target server.
2. The gateway device of claim 1, wherein the transceiving component is further configured to:
receiving calling service data sent by the target server;
the protocol conversion component is also used for converting the calling service data according to the protocol of the corresponding front-end application according to the address identifier to obtain the calling service data after protocol conversion;
the parameter mapping component is further used for determining a corresponding output parameter mapping rule according to the address identifier, calling service data after protocol conversion according to the output parameter mapping rule to perform output parameter mapping to obtain target service data, and sending the target service data to a user through the transceiving component.
3. The gateway device of claim 2, wherein the transceiving component is further configured to:
and after the service information after the protocol conversion is sent to the target server, if the target service data is not received within the preset time, performing degradation processing on the service information after the protocol conversion.
4. The gateway device of claim 1, wherein the transceiver component is specifically configured to:
and determining the target server from a plurality of server addresses corresponding to the address identifier according to the address identifier and a preset load balancing algorithm.
5. The gateway device of claim 1, wherein the transceiving component is further configured to:
and when the target server fails, carrying out fusing processing on the target server.
6. The gateway device of claim 1, wherein the transceiving component is further configured to:
when the access flow of the target server is greater than or equal to a preset threshold value, performing access flow control on the service information after the protocol conversion; and/or
And when the access flow of the transceiving component is greater than or equal to a preset threshold value, performing access flow control on the service information.
7. The gateway device of claim 1, further comprising: an anti-brush assembly;
the anti-brush component is used for calculating the access frequency of target service data requested to be accessed by the service information before the parameter mapping component performs input parameter mapping on the service information, and judging whether the access frequency of the target service data of the same user exceeds a preset limit or not;
and if the access frequency of the target service data exceeds the preset limit, the parameter mapping component does not perform input parameter mapping on the service information.
8. An application method of a gateway device, comprising:
receiving service information of a user, wherein the service information carries an address identifier;
the service information determines a corresponding input parameter mapping rule according to the address identifier, and performs input parameter mapping on the service information according to the input parameter mapping rule to obtain mapped service information;
converting the mapped service information according to a protocol of a corresponding service according to the address identifier to obtain service information after protocol conversion;
and determining a target server according to the address identifier, and sending the service information after protocol conversion to the target server.
9. The method for applying a service gateway according to claim 8, wherein the determining a target server according to the address identifier specifically includes:
and determining the target server from a plurality of server addresses corresponding to the address identifier according to the address identifier and a preset load balancing algorithm.
10. A business system, comprising: a front-end application device, a service device and a gateway device according to any of claims 1-7, the front-end application device being connected to the service device via the gateway device;
the front-end application device is used for receiving a request instruction of a user, converting the request instruction into service information and sending the service information to the gateway device.
CN201911020829.7A 2019-10-25 2019-10-25 Gateway equipment, application method and service system Pending CN110620721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911020829.7A CN110620721A (en) 2019-10-25 2019-10-25 Gateway equipment, application method and service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911020829.7A CN110620721A (en) 2019-10-25 2019-10-25 Gateway equipment, application method and service system

Publications (1)

Publication Number Publication Date
CN110620721A true CN110620721A (en) 2019-12-27

Family

ID=68926371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911020829.7A Pending CN110620721A (en) 2019-10-25 2019-10-25 Gateway equipment, application method and service system

Country Status (1)

Country Link
CN (1) CN110620721A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314459A (en) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 Service request method, device, electronic equipment and storage medium
CN111857031A (en) * 2020-07-27 2020-10-30 山东有人信息技术有限公司 Serial PLC protocol conversion method, device and system for requesting dynamic balance
CN112367297A (en) * 2020-10-16 2021-02-12 武汉中科通达高新技术股份有限公司 Service control method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497451A (en) * 2011-12-28 2012-06-13 用友软件股份有限公司 Service processing system and service processing method
CN103246547A (en) * 2012-02-14 2013-08-14 北京亿阳信通科技有限公司 Remote object calling method and system
CN103716308A (en) * 2013-12-17 2014-04-09 北京京东尚科信息技术有限公司 Multiprotocol platform communication method and multiprotocol platform
CN107770243A (en) * 2017-09-06 2018-03-06 北京奥鹏远程教育中心有限公司 From extension, adaptive micro services platform and its application process
CN108021710A (en) * 2017-12-28 2018-05-11 广东蜂助手网络技术股份有限公司 A kind of dynamic socket conversion method, device, terminal device and storage medium
US20190079814A1 (en) * 2013-06-27 2019-03-14 Ebay Inc. Adapting legacy endpoints to modern apis
CN109672732A (en) * 2018-12-18 2019-04-23 浩云科技股份有限公司 A kind of method for interface adaptation, apparatus and system
CN110149364A (en) * 2019-04-15 2019-08-20 厦门市美亚柏科信息股份有限公司 Method, apparatus, the storage medium of micro services are provided based on data service platform

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497451A (en) * 2011-12-28 2012-06-13 用友软件股份有限公司 Service processing system and service processing method
CN103246547A (en) * 2012-02-14 2013-08-14 北京亿阳信通科技有限公司 Remote object calling method and system
US20190079814A1 (en) * 2013-06-27 2019-03-14 Ebay Inc. Adapting legacy endpoints to modern apis
CN103716308A (en) * 2013-12-17 2014-04-09 北京京东尚科信息技术有限公司 Multiprotocol platform communication method and multiprotocol platform
CN107770243A (en) * 2017-09-06 2018-03-06 北京奥鹏远程教育中心有限公司 From extension, adaptive micro services platform and its application process
CN108021710A (en) * 2017-12-28 2018-05-11 广东蜂助手网络技术股份有限公司 A kind of dynamic socket conversion method, device, terminal device and storage medium
CN109672732A (en) * 2018-12-18 2019-04-23 浩云科技股份有限公司 A kind of method for interface adaptation, apparatus and system
CN110149364A (en) * 2019-04-15 2019-08-20 厦门市美亚柏科信息股份有限公司 Method, apparatus, the storage medium of micro services are provided based on data service platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
景东: "《web应用开发技术》", 31 August 2019, 中国铁道出版社 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314459A (en) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 Service request method, device, electronic equipment and storage medium
CN111857031A (en) * 2020-07-27 2020-10-30 山东有人信息技术有限公司 Serial PLC protocol conversion method, device and system for requesting dynamic balance
CN111857031B (en) * 2020-07-27 2021-06-15 山东有人物联网股份有限公司 Serial PLC protocol conversion method, device and system for requesting dynamic balance
CN112367297A (en) * 2020-10-16 2021-02-12 武汉中科通达高新技术股份有限公司 Service control method and device
CN112367297B (en) * 2020-10-16 2022-10-25 武汉中科通达高新技术股份有限公司 Service control method and device

Similar Documents

Publication Publication Date Title
US9948791B2 (en) Sharing group notification
CN110620721A (en) Gateway equipment, application method and service system
CN110351283B (en) Data transmission method, device, equipment and storage medium
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
CN108696899B (en) SIP message transmitting and receiving method and transmitting and receiving device
CN101582861B (en) Method of IM specific customer service call, as well as server, client and system thereof
WO2016107120A1 (en) Application programming interface calling method and device
CN112073923A (en) Communication method, device, gateway and readable storage medium compatible with multiple operators
US20090041013A1 (en) Dynamically Assigning A Policy For A Communication Session
CN112311720B (en) Data transmission method and device
CN110519388B (en) Processing method and device for block chain request, electronic equipment and readable storage medium
CN108200218A (en) A kind of method, apparatus and electronic equipment for realizing load balancing
CN114979295A (en) Gateway management method and device
CN114741261A (en) Distributed link tracking method, device, equipment and storage medium
CN112527193B (en) Cloud hard disk data migration method, device, equipment and storage medium
EP2480009A1 (en) Multimedia message transmission method and apparatus thereof, and domain name server
CN106936937B (en) Method and device for realizing universal interface for internet service interaction
CN109271259B (en) Enterprise service bus system, data processing method, terminal and storage medium
CN115567604A (en) Service calling method based on micro-service system and server
WO2021088905A1 (en) Positioning measurement method, terminal and network node
WO2021036621A1 (en) Information interaction method and related device
CN113630298A (en) Intelligent control system, method and device
CN112685060A (en) Gray scale distribution method and device, terminal equipment and computer storage medium
CN112511522A (en) Method, device and equipment for reducing memory occupation in detection scanning
CN113726922B (en) Network application layer connection protocol determining method and device and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191227

RJ01 Rejection of invention patent application after publication