Database access method and device
An access method and database technology, applied in the field of database access methods and devices, can solve the problems of dependency, low reliability of continuous access of applications, and increase the overall complexity, so as to reduce the complexity, improve the real-time processing, and avoid network waiting. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] refer to figure 1 As shown in the flow chart of the database access method, the method may include the following steps:
[0027] S102. Obtain an access request; wherein, the access request is an access request in a SQL statement format.
[0028] S104. Determine an initial server that responds to the access request according to the operation type of the access request.
[0029] Operation types include read operation types and write operation types. In this embodiment, when the operation type of the access request is a write operation type, the server responding to the access request is a host server in the database cluster, where it can be determined that the initial server is the first host server; when the operation type of the access request is For the read operation type, the server responding to the access request is the standby server in the database cluster, and here it can be determined that the initial server is the first standby server.
[0030] S106, judgin...
Embodiment 2
[0085] Based on the first embodiment above, this embodiment provides a database access device, refer to Figure 4 , the device consists of:
[0086] A request obtaining module 402, configured to obtain an access request;
[0087] The server determination module 404 is configured to determine the initial server responding to the access request according to the operation type of the access request;
[0088] The state detection module 406 is used to judge the online state of the initial server according to the detection operation; wherein, the detection operation is an operation of detecting the online state of each server in the database cluster according to a preset time interval;
[0089] A request sending module 408, configured to send the access request to the initial server for execution if the initial server is online.
[0090] The database access device provided by the embodiments of the present disclosure does not need to rely on the application side or the proxy layer...
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