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

Dynamic data source configuration and automatic switching method

A dynamic data and data source technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as complex, prone to human errors, manual modification of data sources, etc., to avoid abnormalities and improve deployment flexibility , the effect of avoiding abnormal hidden dangers

Active Publication Date: 2018-10-16
JULONG
View PDF7 Cites 19 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
  • Dynamic data source configuration and automatic switching method
  • 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, comprising the steps that operation interfaces are initialized through utilization of open data sources, andusers trigger the interfaces to perform initialization through utilization of HTTP protocols; request data source identities are intercepted through utilization of self-defined requests, request parameters of the users are searched, and corresponding data source identity packaging is selected; data sources are selected for automatic switching through utilization of the request data source identities, self-defined persistent layer interception is carried out, after the data sources are intercepted through the persistent layer interception, the data source identities currently cached by the users are obtained, and database connection is switched; and the data source configuration and automatic switching are finished, and a system sends an instruction to finish the interfaces. Through the dynamic data configuration and automatic switching, a multiuser application database scene of an Internet product is solved, particularly, a dynamic maintenance function of the system database connection is achieved, and the data source automatic switching is carried out according to user access parameters, so the abnormal hidden danger resulting from high concurrency is avoided. The deployment flexibility is improved, and the maintenance and load cost is reduced.

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
IPC IPC(8): H04L29/08H04L29/12G06F17/30
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