CN115329361A - Data access method and device, electronic equipment and computer storage medium - Google Patents

Data access method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN115329361A
CN115329361A CN202110506647.1A CN202110506647A CN115329361A CN 115329361 A CN115329361 A CN 115329361A CN 202110506647 A CN202110506647 A CN 202110506647A CN 115329361 A CN115329361 A CN 115329361A
Authority
CN
China
Prior art keywords
data access
data
database
service
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110506647.1A
Other languages
Chinese (zh)
Inventor
郭晓东
薛超
樊炼
纪风华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Hubei Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Hubei Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Hubei Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110506647.1A priority Critical patent/CN115329361A/en
Publication of CN115329361A publication Critical patent/CN115329361A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a data access method, a data access device, electronic equipment and a computer storage medium. The data access method is applied to a preset data access engine server and comprises the following steps: receiving data access requests sent by various clients; acquiring target data corresponding to the data access request according to the data access request; and sending the target data to the client. According to the embodiment of the application, the system performance can be improved.

Description

Data access method and device, electronic equipment and computer storage medium
Technical Field
The present application relates to the field of information technology IT application, and in particular, to a data access method and apparatus, an electronic device, and a computer storage medium.
Background
The JAVA application program (such as decoupling and refreshing) of the charging and accounting System of the existing network service Operation Support System (BOSS) has the capability of directly connecting to the physical database or the memory database to access the data of the relevant user and the accounting data, but the connection number between the application program and the database is too large due to busy service, which leads to serious influence on System performance.
Therefore, how to improve the system performance is a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides a data access method, a data access device, electronic equipment and a computer storage medium, and can improve system performance.
In a first aspect, an embodiment of the present application provides a data access method, which is applied to a preset data access engine server and includes:
receiving data access requests sent by various clients;
acquiring target data corresponding to the data access request according to the data access request;
and sending the target data to the client.
Optionally, before receiving the data access request sent by each client, the method further includes:
and creating a data access engine server.
Optionally, creating a data access engine server includes:
building a service framework of a data access engine server;
and configuring a functional service interface of the data access engine service side based on the service framework.
Optionally, after configuring the functional service interface of the data access engine server based on the service framework, the method further includes:
and adapting the functional service interface of the client based on the functional service interface of the data access engine server.
Optionally, obtaining target data corresponding to the data access request according to the data access request includes:
determining a target database corresponding to the data access request according to the data access request;
target data is obtained from a target database.
Optionally, the target database includes at least one of an in-memory database and a physical database.
Optionally, the method further comprises:
and in the case of failure of the target database, switching to other normal databases.
In a second aspect, an embodiment of the present application provides a data access apparatus, which is applied to a preset data access engine server, and includes:
the receiving module is used for receiving data access requests sent by all the clients;
the acquisition module is used for acquiring target data corresponding to the data access request according to the data access request;
and the sending module is used for sending the target data to the client.
Optionally, the apparatus further comprises:
and the creating module is used for creating a data access engine server.
Optionally, the creating module is configured to: building a service framework of a data access engine server; and configuring a functional service interface of the data access engine server side based on the service framework.
Optionally, the apparatus further comprises:
and the adaptation module is used for adapting the functional service interface of the client based on the functional service interface of the data access engine server.
Optionally, the obtaining module is configured to: determining a target database corresponding to the data access request according to the data access request; target data is obtained from a target database.
Optionally, the target database includes at least one of an in-memory database and a physical database.
Optionally, the apparatus further comprises:
and the switching module is used for switching to other normal databases under the condition that the target database has a fault.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements a data access method as shown in the first aspect.
In a fourth aspect, the present application provides a computer storage medium, on which computer program instructions are stored, and when executed by a processor, the computer program instructions implement the data access method shown in the first aspect.
The data access method, the data access device, the electronic equipment and the computer storage medium can improve system performance. The data access method is applied to a preset data access engine server and comprises the following steps: receiving data access requests sent by various clients; acquiring target data corresponding to the data access request according to the data access request; and sending the target data to the client. Therefore, the method can uniformly manage the database access service by taking the preset data access engine server as a data access layer, and can improve the system performance.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a system connection in the prior art;
FIG. 2 is a schematic diagram of a system connection provided by an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of a data access method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a system implementation architecture provided by an embodiment of the present application;
FIG. 5 is a block diagram of a data access device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of, and not restrictive on, the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The JAVA application program (such as decoupling and refreshing) of the charging and accounting System of the existing network service Operation Support System (BOSS) has the capability of directly connecting to the physical database or the memory database to access the data of the relevant user and the accounting data, but the connection number between the application program and the database is too large due to busy service, which leads to serious influence on System performance.
At present, the problems that the number of access connections of a physical or internal memory database is excessive, the I/O performance of the database is greatly reduced, and related tasks cannot be processed by a related decoupling refreshing process at a normal speed due to the fact that the connection accesses the physical or internal memory database based on JAVA application programs (such as user data decoupling and refreshing processes) are easily caused when services are busy are found.
The Java applications in the existing network all have respective independent configuration files, independent connection is established when the Java applications access the database, switching is performed under the abnormal condition of the database, and the switching processing of data connection strings needs to be performed manually under partial scenes, so that inconvenience is caused to operation and maintenance, quick service recovery cannot be realized, and great influence is caused. A schematic diagram of a system connection in the prior art can be seen in fig. 1.
According to the method, a uniform data access layer (data access engine) of a Java edition is constructed, data access service of a server is called by an application through a client, and the server has the functions of SQL analysis, transaction management, routing management, connection pool management and the like and is in uniform connection with underlying databases (a memory base and a physical base). A system connection diagram provided by an embodiment of the present application can be seen in fig. 2.
In order to solve the problem of the prior art, embodiments of the present application provide a data access method, apparatus, device, and computer storage medium. The following first describes a data access method provided in an embodiment of the present application.
Fig. 3 is a schematic flowchart illustrating a data access method according to an embodiment of the present application. As shown in fig. 3, the data access method is applied to a preset data access engine server, and includes:
s301, receiving data access requests sent by the clients.
In one embodiment, before receiving the data access request sent by each client, the method further includes: and creating a data access engine server.
In one embodiment, creating a data access engine service includes: building a service framework of a data access engine server; and configuring a functional service interface of the data access engine server side based on the service framework.
In one embodiment, after configuring the functional service interface of the data access engine service side based on the service framework, the method further comprises: and adapting the functional service interface of the client based on the functional service interface of the data access engine server.
S302, acquiring target data corresponding to the data access request according to the data access request.
In one embodiment, obtaining target data corresponding to a data access request according to the data access request includes: determining a target database corresponding to the data access request according to the data access request; target data is obtained from a target database.
In one embodiment, the target database includes at least one of an in-memory database, a physical database.
In one embodiment, the method further comprises: and in the case of failure of the target database, switching to other normal databases.
S303, sending the target data to the client.
The data access method is applied to a preset data access engine server and comprises the following steps: receiving data access requests sent by various clients; acquiring target data corresponding to the data access request according to the data access request; and sending the target data to the client. Therefore, the method can uniformly manage the database access service by taking the preset data access engine server as a data access layer, and can improve the system performance.
The above technical solution is specifically described below with a specific embodiment.
In the embodiment, a brand-new server is constructed as a data access layer to uniformly manage the database access service. The distributed Data Access Engine (DAE) is used for accessing layers such as databases and file systems. The DAE provides a plurality of module functions such as sql parsing, route management, transaction management, common components, exception management, connection pool management, database adapters, etc. The application client modifies access to the database to access the DAE services, and interacts with the database. The application client needs to modify a direct connection database, a connection pool connection database, a groovy sql connection database and other modes, the universal unified client encapsulates the access request, sends the request to the server, and the server interfaces to process the request and returns a corresponding result. The system implementation architecture is shown in fig. 4.
The JAVA DAE mainly comprises three sub-modules:
1. and constructing a JAVA DAE data access engine server.
1.1, building a DAE service framework.
And establishing a service according to the universal service framework, supporting cluster and non-cluster modes, and determining through a system configuration parameter (groupcode). A task interface (taskmon) heartbeat is supported. And supporting performance statistics, output and report of the service. The core thread number and the concurrent thread number of the service are supported to be configurable. The connection pool used by the DAE service supports unified configuration and configuration according to a service name (servername).
1.2, realizing a plurality of DAE function service interfaces.
The method comprises the following steps: a DAE service preparsestatus interface, a DAE service preparsecall interface, a DAE service executeQuery interface, a DAE service QueryNext interface, a DAE service executeUpdate interface, a DAE service commit interface, a DAE service rollback interface, a DAE service CLOSE interface and a DAE service GETPS interface.
The DAE service executeUpdate interface is taken as an example to introduce a specific interface implementation scheme:
analyzing the length of the TransID field in the interface message, reading the TransID in the stream according to the length of the field, and capturing various abnormal information acquired in the analyzing process. And returning some error code (such as 0602) of the client after the exception occurs. Analyzing the length of the PSID field in the interface message, reading the PSID in the stream according to the length of the field, and capturing various abnormal information acquired in the analyzing process. And returning some error code (such as 0603) of the client after the exception occurs. And acquiring a real preparestate object according to the psID + transID in the message, executing executeUpdate operation by using the preparestate object, capturing an exception, printing exception information, and returning a certain error code (such as 0601) which fails to execute updating.
And executing normal assembly message return results, analyzing the length of the transID field in the interface message, reading the transID in the stream according to the length of the byte, capturing various abnormal information acquired in the analyzing process, and returning a client error code 0602 after abnormality occurs. Reading and executing the compression mark in the header of the update message and caching the record, wherein the execution of the update compression mark is 1 message compression, and the message needs to be decompressed. And circularly acquiring the corresponding binding variable according to the number of the binding variables in the execution updating message, and executing the updating operation according to the acquired binding field degree and the remaining binding variable values. Analyzing, executing and updating the type of the binding variable and the real value or the anti-sequence of the binding variable according to the separator to obtain a value, checking the execution updating variable according to the obtained variable type, and returning an error code after checking errors. And carrying out legal verification on the variable type in the verification execution updating and analysis process, wherein the variable is an object and is required to be subjected to deserialization operation according to the execution updating variable type. Checking the length of the parameters of the storage process in the updating execution operation, carrying out validity check according to the number length of the registration parameters, and carrying out cyclic processing according to the number of the registration parameters for executing the updating storage process.
2. And (3) modifying Java Database connection (JDBC) of the client.
2.1, the client provides the implementation of a Driver class.
Providing a Driver method for realizing, providing a connect realizing method, a transparent transmission jdbc interface method, providing a createConnection method, a jdbc interface method, providing an acceptsrol method, a transparent transmission jdbc interface method, providing a getPropertyInfo method and a transparent transmission jdbc interface method.
And 2.2, the client acquires the connection of the parameter library.
And 2.3, realizing a plurality of DAE client interface functions.
The method comprises the following steps: the client comprises a client prepareStateinterface, a client prepareCall interface, a client executeQuery interface, a client QueryNext interface, a client executeUpdate interface, a client commit interface, a client rollback interface, a client CLOSE interface and a client GETPS interface.
The concrete implementation scheme is introduced by taking a commit interface called by a client as an example:
acquiring a corresponding servername according to a connection object transmitted by a client, acquiring a corresponding DAE service connection according to the servername, acquiring a transit id of a corresponding DAE according to the connection object + the servername, and acquiring an sql, a binding variable value and a parameter value of all extraordinary operations of the transaction according to the transit id. According to the configured sql, the sql of the redo is needed to be written into the transition _ log table, and the prefix (transfId, servername, sql, bindvar) of DAE is called. The return result psId of preparentatement is resolved, execute (transit ID, psId) of DAE is called, and commit (transit Id) is called as the return result of DAE. And if the result is overtime or abnormal processing is carried out when abnormal conditions are returned, calling a prepareStatement interface to inquire about the transitions _ log table and acquiring whether the corresponding transID is successfully submitted. And (5) directly returning the success of the client after the success of the submission. If the operation is not inquired, judging that the operation sql is the redo sql, needing to newly create a transaction ID, recalling the DAE service of the previous premarstation statement according to the new transID, and calling (transID, psid) of execute of the DAE to mark that the transaction is not executed successfully. And returning the execution failure of the client.
3. The adaptation and modification of the related JAVA application process (taking a user data refreshing process as an example) are realized.
The user data refreshing process uses a jdbc interface to connect data, a native jdbc interface is mainly used directly, a dbutil interface is used, and a groovy SQL interface which partially uses groovy needs to be adapted. The method comprises the steps of adapting a preparsestatus interface of a jdbc of a refreshing process, adapting a preparally interface of the jdbc of the refreshing process, adapting an executequery interface of the jdbc of the refreshing process, adapting an execlute interface of the jdbc of the refreshing process, adapting a commit interface of the jdbc of the refreshing process, adapting a rollback interface of the jdbc of the refreshing process, adapting an execlute interface of a dbutil of a cbs-core public packet, adapting a queryOne interface of a dbutil of a cbs-core public packet, adapting a query interface of a dbutil of a cbs-core public packet, adapting a secondary login interface JavaSecondonLogon, and driving to use a new client ngjdbc.
The embodiment innovatively designs a using method for solving the problems that when a Java application program in the BOSS billing and accounting system of the current network accesses a database, the system performance is reduced due to excessive connection numbers caused by establishing independent connections, and when the database is abnormal, the database is switched to cause the inconvenience of operation and maintenance caused by the need of manually processing data connection strings, and the key points of the method are as follows:
1. constructing a unified JAVA DAE server framework to support a client to connect, access and centrally manage databases (including a memory database and a physical database): by constructing a uniform data access layer (data access engine) of a Java edition, data access service of a server is called by an application through a client, and the server has the functions of SQL analysis, transaction management, routing management, connection pool management and the like and is uniformly connected with underlying databases (a memory bank and a physical bank).
2. The method for improving the JDBC interface of the client comprises the following steps: implementing a number of DAE client interface functions, including a client call preparation interface, a client query interface, a client modify (Update) interface, a client commit (commit) interface, a client rollback (rollback) interface, a client CLOSE (CLOSE) interface, and the like. The interface function can be suitable for calling other JAVA application programs of the BOSS billing and accounting system.
3. Enhancing the automatic switching capacity when the database has an abnormal fault: the existing network Java application has corresponding configuration files, independent connections are established when a database is accessed, and when the database is switched in an abnormal condition, the data connection strings need to be manually processed; and the DAE realizes the function of automatically switching to other normal databases under the condition of identifying the faulty database, thereby effectively improving the related operation and maintenance efficiency.
The embodiment is simulated and operated in a laboratory environment, the unified data access engine scheme based on the JAVA application program is verified to be feasible, the new scheme ensures that the access of the Java application program in the BOSS billing and accounting system is controlled through the unified data access engine when the Java application program accesses the database, and the method has the functions of a plurality of modules such as sql analysis, routing management, transaction management, a public component, exception management, connection pool management, a database adapter and the like, can reduce the access connection number of the database, improve the operation performance of the database system I/O and the like, realize switching under the abnormal condition of the database, save the step of manually processing data connection strings, reduce the manual input and improve the operation and maintenance efficiency.
Fig. 5 is a schematic structural diagram of a data access apparatus according to an embodiment of the present application, and as shown in fig. 5, the data access apparatus, applied to a preset data access engine server, includes:
a receiving module 501, configured to receive data access requests sent by each client;
an obtaining module 502, configured to obtain target data corresponding to the data access request according to the data access request;
a sending module 503, configured to send the target data to the client.
In one embodiment, the apparatus further comprises: and the creating module is used for creating a data access engine server.
In one embodiment, the apparatus comprises: building a service framework of a data access engine server; and configuring a functional service interface of the data access engine server side based on the service framework.
In one embodiment, the apparatus further comprises: and the adaptation module is used for adapting the functional service interface of the client based on the functional service interface of the data access engine server.
In one embodiment, the obtaining module 502 is configured to: determining a target database corresponding to the data access request according to the data access request; target data is obtained from a target database.
In one embodiment, the target database includes at least one of an in-memory database, a physical database.
In one embodiment, the apparatus further comprises: and the switching module is used for switching to other normal databases under the condition that the target database has a fault.
Each module/unit in the apparatus shown in fig. 5 has a function of implementing each step in fig. 3, and can achieve corresponding technical effects, and for brevity, no further description is provided here.
Fig. 6 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
The electronic device may comprise a processor 601 and a memory 602 in which computer program instructions are stored.
Specifically, the processor 601 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 602 may include a mass storage for data or instructions. By way of example, and not limitation, memory 602 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 602 may include removable or non-removable (or fixed) media, where appropriate. The memory 602 may be internal or external to the electronic device, where appropriate. In certain embodiments, the memory 602 may be non-volatile solid-state memory.
In one example, the Memory 602 may be a Read Only Memory (ROM). In one example, the ROM can be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically Alterable ROM (EAROM), or flash memory, or a combination of two or more of these.
The processor 601 realizes any of the data access methods in the above embodiments by reading and executing computer program instructions stored in the memory 602.
In one example, the electronic device may also include a communication interface 603 and a bus 610. As shown in fig. 6, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 610 to complete communication therebetween.
The communication interface 603 is mainly used for implementing communication between modules, apparatuses, units and/or devices in this embodiment.
The bus 610 includes hardware, software, or both to couple the components of the electronic device to one another. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 610 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
In addition, the embodiment of the application can be realized by providing a computer storage medium. The computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement any of the data access methods in the above embodiments.
It is to be understood that the present application is not limited to the particular arrangements and instrumentalities described above and shown in the attached drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions or change the order between the steps after comprehending the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed at the same time.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As described above, only the specific embodiments of the present application are provided, and it can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application.

Claims (10)

1. A data access method is characterized in that the method is applied to a preset data access engine server side and comprises the following steps:
receiving data access requests sent by various clients;
acquiring target data corresponding to the data access request according to the data access request;
and sending the target data to the client.
2. The data access method of claim 1, wherein prior to said receiving data access requests sent by respective clients, the method further comprises:
and creating the data access engine server.
3. The data access method of claim 2, wherein the creating the data access engine service comprises:
building a service framework of the data access engine server;
and configuring a functional service interface of the data access engine service terminal based on the service framework.
4. The data access method of claim 3, wherein after the configuring the functional service interface of the data access engine service based on the service framework, the method further comprises:
and adapting the functional service interface of the client based on the functional service interface of the data access engine server.
5. The data access method according to claim 1, wherein the obtaining target data corresponding to the data access request according to the data access request comprises:
determining a target database corresponding to the data access request according to the data access request;
and acquiring the target data from the target database.
6. The data access method of claim 5, wherein the target database comprises at least one of an in-memory database and a physical database.
7. The data access method of claim 5, further comprising:
and switching to other normal databases under the condition that the target database has a fault.
8. A data access device is characterized in that the data access device is applied to a preset data access engine server side and comprises:
the receiving module is used for receiving data access requests sent by all the clients;
the acquisition module is used for acquiring target data corresponding to the data access request according to the data access request;
and the sending module is used for sending the target data to the client.
9. An electronic device, characterized in that the electronic device comprises: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the data access method of any of claims 1-7.
10. A computer storage medium having computer program instructions stored thereon which, when executed by a processor, implement a data access method as claimed in any one of claims 1 to 7.
CN202110506647.1A 2021-05-10 2021-05-10 Data access method and device, electronic equipment and computer storage medium Pending CN115329361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110506647.1A CN115329361A (en) 2021-05-10 2021-05-10 Data access method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110506647.1A CN115329361A (en) 2021-05-10 2021-05-10 Data access method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN115329361A true CN115329361A (en) 2022-11-11

Family

ID=83912669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110506647.1A Pending CN115329361A (en) 2021-05-10 2021-05-10 Data access method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN115329361A (en)

Similar Documents

Publication Publication Date Title
CN110677383B (en) Firewall wall opening method and device, storage medium and computer equipment
CN113360519B (en) Data processing method, device, equipment and storage medium
CN113569285B (en) Method, device, system, equipment and storage medium for identity authentication and authentication
CN108512716B (en) Method, system, computer device and storage medium for reporting device information
CN111258832B (en) Interface parameter verification method, device, equipment and medium
CN113010378B (en) Log processing method and device of microservice module, storage medium and electronic device
CN111611207B (en) State data processing method and device and computer equipment
CN112732982A (en) Fault code storage method and device, terminal equipment and readable storage medium
CN112906054A (en) Multi-tenant database isolation method and device and electronic equipment
CN112527421A (en) Service calling method, device, equipment and storage medium
CN111328067B (en) User information checking method, device, system, equipment and medium
CN111355817B (en) Domain name resolution method, device, security server and medium
CN111752916B (en) Data acquisition method and device, computer readable storage medium and electronic equipment
CN111506641A (en) Data management method, data acquisition platform, data management system and storage medium
CN115329361A (en) Data access method and device, electronic equipment and computer storage medium
CN114218173B (en) Batch processing system, processing method, medium and equipment for account-transfer transaction files
CN113282347B (en) Plug-in operation method, device, equipment and storage medium
CN115858320A (en) Operation log recording method, apparatus, medium and product
CN113452533B (en) Charging self-inspection and self-healing method and device, computer equipment and storage medium
CN109284278B (en) Calculation logic migration method based on data analysis technology and terminal equipment
CN111639936A (en) Transaction information acquisition method and device, electronic equipment and readable storage medium
CN114356624B (en) Positioning method, system, terminal and storage medium of composite CRC error reporting information
CN113271320B (en) Terminal authentication method, device, system, medium and equipment
CN115250236B (en) Network element instruction adaptation method, device, system, electronic equipment and storage medium
CN117407369B (en) Operation log recording method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination