Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Route forwarding method, device and system based on zuul gateway

A forwarding method and routing technology, applied in the gateway field, can solve the problem that front-end requests cannot call back-end microservices, and achieve the effect of maintaining availability and high availability

Pending Publication Date: 2020-05-19
SUNING CLOUD COMPUTING CO LTD
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The gateway core technology currently introduced is Netflix open source component zuul. At present, the routing configuration of zuul is in the local configuration file. The addition, deletion and modification of the routing configuration need to modify and publish the configuration file before the system can take effect; in addition, the front-end requests the zuul gateway. The interfaces are all Http protocols, and then the zuul gateway forwards the request to the back-end microservice. Under the zuul architecture, only Apache Http Client or Netfilx Ribbon is used to request microservices. These cannot meet our needs. Backend microservices exist Various interface protocols, such as the company's remote service framework (RSF), webservice interface, socket interface, etc., will cause the front-end requests forwarded by the zuul gateway to fail to call the back-end microservices

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Route forwarding method, device and system based on zuul gateway
  • Route forwarding method, device and system based on zuul gateway
  • Route forwarding method, device and system based on zuul gateway

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] In summary, Embodiment 1 of the present application is as follows:

[0065] Example 1

[0066] Such as figure 1 The methods shown include:

[0067] S11. The gateway dynamically obtains the routing configuration information stored in the external database and refreshes the routing configuration;

[0068] By building a configuration management center, the routing configuration information is stored in the database of the configuration management center. The database stores routing configurations such as a, b, and c. The gateway dynamically obtains the routing configurations a, b, and c in the database and refreshes the routing configuration. Realize the dynamic configuration routing of the gateway, achieve the effect of maintaining routing configuration information without stopping the machine, and maintain high availability. The configuration management center provides a visual interface configuration function. Users can modify the routing configuration in the database...

Embodiment 2

[0105] Corresponding to the above method, Embodiment 2 of the present application provides a gateway-based routing and forwarding device, such as figure 2 As shown, the device includes:

[0106] The routing configuration unit 20 is used to dynamically obtain routing configuration information stored in the external database 30 and refresh the routing configuration. The routing configuration includes the back-end service interface protocol type; the routing configuration information is stored in the external database 30, and the routing configuration unit 20 Obtain routing configuration information and refresh the routing configuration to realize dynamic routing configuration of the gateway.

[0107] The protocol conversion unit 21 is configured to obtain the front-end request and convert the front-end request according to the corresponding back-end service interface protocol according to the back-end service interface corresponding to the front-end request and the back-end ser...

Embodiment 3

[0129] Corresponding to the above method and device, such as image 3 As shown, Embodiment 3 of the present application provides a computer system, including:

[0130] one or more processors; and

[0131] A memory associated with the one or more processors, the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, the method steps of Embodiment 1 are executed, such as Do the following:

[0132] The gateway dynamically obtains the routing configuration information stored in the external database and refreshes the routing configuration;

[0133] The gateway obtains the front-end request and converts the front-end request according to the corresponding back-end service interface protocol according to the back-end service interface corresponding to the front-end request and the back-end service interface protocol type in the routing configuration;

[0134] The gateway calls the corresponding backend ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a route forwarding method, device and system based on a zuul gateway. The method comprises the steps that the gateway dynamically obtains route configuration information storedin an external database and refreshes route configuration; the gateway acquires a front-end request and converts the front-end request according to a corresponding rear-end service interface protocolbased on a rear-end service interface corresponding to the front-end request and a rear-end service interface protocol type in the routing configuration; and the gateway calls the corresponding back-end service interface to process the converted front-end request. Compared with the prior art, the method has the advantages that the gateway performs protocol conversion on the front-end request to call the back-end micro-service while the gateway dynamically configures the route.

Description

technical field [0001] The invention relates to the technical field of gateways, in particular to a routing and forwarding method, device and system based on a zuul gateway. Background technique [0002] Most of the current systems adopt a separate front-end and back-end architecture, and there are many service systems provided to the front-end. When the front-end calls back-end services, each service system must perform authentication verification and filtering. There is no unified entrance, which is inconvenient for maintenance and management. The back-end The amount of development and maintenance is very large, and it cannot be well resolved in the case of cross-domain, current limiting, and exceptions. To solve these problems, gateway technology is introduced to add a layer of gateway between the front-end and back-end services. In addition to implementing functions such as request routing and verification filtering, the gateway also has current limiting, abnormal retran...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/741H04L29/06H04L29/08H04L45/74
CPCH04L45/74H04L63/0876H04L67/30H04L69/08H04L63/10
Inventor 樊兵王宇郭近之许昆
Owner SUNING CLOUD COMPUTING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products