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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com