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

A dynamic data source configuration and automatic switching method

A dynamic data, data source technology, applied in structured data retrieval, database management system, database design/maintenance, etc., can solve problems such as human error, manual modification of data source, complexity and so on

Active Publication Date: 2020-10-30
JULONG
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Obviously, in the face of a high-load deployment environment, using the above solution, manually modifying the data source and cold start is a complex and prone to human error.

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
  • A dynamic data source configuration and automatic switching method
  • A dynamic data source configuration and automatic switching method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0052] The user first initiates an access request, executes the data source identifier selector, executes the interface method, initiates a database operation request, executes the database automation switcher, executes the database operation, ends the interface execution and returns. Build a network request interceptor, inherit the intercept adapter, overload the request pre-intercept method, and realize the data source identification selector process. The user request parameters are assembled into a fixed-format string by obtaining the domain name and port information in the request context, for example: www.51coins.com:8080. If the port is port 80, ignore the port information, and only use the domain name as the user request parameter, for example: www.51coins.com. Implement the instance acquisition method of the class through the data dictionary cache, obtain the parameter identification dictionary, and obtain the unique identification of the data source corresponding to t...

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 dynamic data source configuration and automatic switching method, which is characterized in that it includes: an open data source initialization operation interface, and the user uses the HTTP protocol to trigger the interface to perform initialization; the request data source identification is intercepted by a custom request, and the user Request parameters to find and select the corresponding data source ID package; request the data source ID to select the data source to automatically switch, intercept the data source intercepted through the custom persistence layer, and obtain the data source ID cached by the current user to connect to the database after intercepting the data source intercepted by the persistence layer After switching data source configuration and automatic switching, the system issues an instruction to end the interface. Through dynamic data configuration and automatic switching, it solves the multi-client application database scenario of Internet products, especially the dynamic maintenance function of system database connection to automatically switch data sources according to user access parameters, avoiding abnormal hidden dangers caused by high concurrency. At the same time, it improves deployment flexibility and reduces maintenance and load costs.

Description

technical field [0001] The invention relates to a dynamic data source configuration and automatic switching method, belonging to the field of dynamic data configuration and switching. Background technique [0002] At this stage, the use of Internet application products is becoming more and more frequent, and more and more organizations choose to rely on Internet products to solve daily work or product promotion, etc., and the demand for products in the same industry and business is also constantly increasing. More and more Internet products are becoming mature, and the degree of productization has been able to cover a wider customer base. [0003] At present, the vast majority of network products are aimed at a single customer for network construction and system deployment. For some customers whose data volume and access volume are not large, the single product deployment mode has high hardware costs, but the performance utilization rate is extremely low, which greatly wast...

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 Patents(China)
IPC IPC(8): H04L29/08H04L29/12G06F16/21G06F16/25
CPCH04L67/02H04L61/4511H04L67/5682H04L67/568
Inventor 柳永诠曾明高原孙强倪国永张柳代红
Owner JULONG
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