Method for realizing dynamic change of micro-service routing based on memory database and storage medium
A database and micro-service technology, applied in the direction of database update, data exchange network, structured data retrieval, etc., can solve the problems of not providing routing data persistence solutions, not providing routing data dynamic management solutions, etc., to simplify development work, Facilitate maintenance and ensure continuous operation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] A method for dynamically changing microservice routes based on an in-memory database. The implementation architecture of the method includes local routers, remote routers, routing information management service units, local databases or file systems, local routers, remote routers, and routing information. The management service unit is connected cyclically in turn, and the routing information management service unit is connected to the local database or file system; the remote routing terminal is used to cache routing information; the routing information management service unit is used to provide an interface for updating routing information, publish routing information, and publish The final routing information is persisted to the local database or file system; for example figure 1 shown.
[0039] Refers to: update the published routing information to the remote routing terminal in real time. The routing information includes routing data and its corresponding version n...
Embodiment 2
[0041] According to a method for implementing dynamic change of microservice routing based on an in-memory database described in Embodiment 1, the difference lies in:
[0042] The API gateway based on Spring Cloud Gateway 2.2.3.RELEASE (an API gateway open source component) is used as the local routing end, and it needs to be combined with the remote routing end Memcached (a memory database) and routing information management services to realize routing data dynamics The changed function, the specific flow diagram is as follows figure 2 , image 3 shown, including the following steps:
[0043] (1) Create a new microservice in the microservice routing system, and introduce Spring Cloud Gateway2.2.3.RELEASE, based on this, create an API gateway service as a local routing end, and at the same time, according to the Spring CloudGateway 2.2.3.RELEASE version Routing data model, create a corresponding routing data model in the routing information management service.
[0044] (2)...
Embodiment 3
[0084] A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for realizing dynamic change of microservice routing based on an in-memory database in Embodiment 1 or 2 are implemented.
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