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

Zuul-based persistent dynamic routing implementation method, electronic equipment and storage medium

An implementation method and persistent technology, applied in the field of cloud computing

Active Publication Date: 2020-12-04
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical task of the present invention is to provide a Zuul-based persistent dynamic routing implementation method, electronic equipment and storage media to solve the problem of how to refresh the service dynamic routing and provide persistent functions without stopping the service

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
  • Zuul-based persistent dynamic routing implementation method, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] as attached figure 1 As shown, the Zuul-based persistent dynamic routing implementation method of the present invention, the method is to implement the custom route locator CommonRouteLocator by inheriting the route locator public class SimpleRouteLocator of the open source component Zuul, and use the interface RefreshableRouteLocator to add route refresh for the route locator function; and then implement routing persistence by storing routing information in the database, and add scheduled tasks to regularly read routing information from the database and trigger events to refresh routing. The service project can not only load routing information from Spring configuration file properties, but also Load the configured routing information from the database, and then dynamically refresh the routing information in the memory to achieve the effect of maintaining routing information without stopping the machine; the details are as follows:

[0060] S1. Database table dyna...

Embodiment 2

[0089] An embodiment of the present invention also provides an electronic device, including: a memory and at least one processor;

[0090] Wherein, the memory stores computer-executable instructions;

[0091] The at least one processor executes the computer-executed instructions stored in the memory, so that the at least one processor executes the Zuul-based persistent dynamic routing implementation method in Embodiment 1.

Embodiment 3

[0093] The embodiment of the present invention also provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by the processor, so that the processor executes the Zuul-based persistent dynamic routing implementation method in any embodiment of the present invention. . Specifically, a system or device equipped with a storage medium may be provided, on which a software program code for realizing the functions of any of the above embodiments is stored, and the computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium.

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 Zuul-based persistent dynamic routing implementation method, electronic equipment and a storage medium, belongs to the technical field of cloud computing, and aims to solve the technical problem of how to refresh a service dynamic route and provide a persistent function under the condition of not stopping service. An adopted technical scheme comprise that the method comprises the following steps of: realizing a user-defined routing locator CommonRooteLocator by inheriting a routing locator common type SimpleRooteLocator of an open source component Zuul, and adding a routing refreshing function to the routing locator by using an interface RefreshableRooteLocator; achieving routing persistence by storing routing information into a database, adding a timing task to read the routing information from the database at regular time and triggering an event to refresh routing, wherein service engineering can load the routing information from a Spring configuration file,also can load the configured routing information from the database; and further, dynamically refreshing the routing information in the memory, so as to achieve the effect of maintaining the routing information without shutdown.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to a Zuul-based persistent dynamic routing implementation method, electronic equipment and a storage medium. Background technique [0002] Zuul is an open source component provided by Netflix, dedicated to providing a framework for dynamic routing, monitoring, elasticity, security and other edge services on the cloud platform. [0003] Judging from the interface relationship of the Zuul component class, the need for route refresh is considered, but the SimpleRouteLocator class implemented by default does not implement the route refresh interface RefreshableRouteLocator. Although the DiscoveryClientRouteLocator class inherits the interface RefreshableRouteLocator to implement the refresh route function, eureka is intrusive. The gateway module intrusively makes the user code rely on the framework, so that it cannot be used outside the framework, which is not conducive to code ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/741H04L12/751H04L12/24H04L45/74H04L45/02
CPCH04L45/745H04L45/02H04L41/0823
Inventor 葛丰增孙思清蒋善坤于昊
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH 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