Database implementation device, method, system, medium and computer program product

By using a combination of switching chips and central processors in the database implementation device, the problem of high concurrency and low latency performance in financial-grade databases is solved, and efficient database services are achieved.

CN114896223BActive Publication Date: 2025-02-25ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210363226.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-07
Publication Date
2025-02-25
Estimated Expiration
2042-04-07

AI Technical Summary

Technical Problem

The prior art is difficult to achieve high concurrency and low latency database performance in the financial-grade database field.

Method used

By setting up a switching chip and a central processor in the database implementation device, the switching chip receives application requests from multiple application servers and forwards database type requests to the central processor to achieve high concurrency and low latency of database services.

Benefits of technology

It realizes high concurrency performance of database services, while reducing latency and improving the overall performance of the database system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114896223B_ABST
    Figure CN114896223B_ABST
Patent Text Reader

Abstract

The exemplary embodiments of this specification provide a database implementation device, a database implementation method, a database implementation system, a computer-readable storage medium, and a computer program product. Among them, for the above-mentioned database implementation device, the same device includes: a switching chip that can be used to simultaneously receive application requests from multiple application servers, and a central processing unit running a database system. Therefore, after receiving the request data from any application server, the switching chip forwards the request to the central processing unit deployed on the same device if the request data is a database request. Then, the database service is provided for the above-mentioned request data by the database system running on the central processing unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present specification relates to the field of database technology, and in particular to a database implementation device, a database implementation method, a database implementation system, a computer-readable storage medium, and a computer program product. Background Art

[0002] In the era of networked big data, data center databases have high requirements for concurrent access and latency. For example, in the field of financial-grade databases, there are also high requirements for high concurrency and low latency performance of databases. Therefore, a database solution that can achieve high concurrency and low latency is urgently needed in related technologies.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this specification, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of this specification is to provide a database implementation device, a database implementation method, a database implementation system, a computer-readable storage medium and a computer program product, providing a database solution that has high concurrency and low latency performance to at least a certain extent.

[0005] Other features and advantages of the present specification will become apparent from the following detailed description, or may be learned in part from the practice of the present specification.

[0006] According to one aspect of the present specification, a database implementation device is provided, the device comprising: a switching chip and a central processing unit, wherein the database system is running in the central processing unit.

[0007] The switching chip is used to receive application requests from a plurality of application servers, determine the types of the application requests, and forward the application requests to a central processing unit when the application requests are of a database type; and the central processing unit is used to receive application requests forwarded by the switching chip to provide database services for the application servers based on the database system.

[0008] In an exemplary embodiment, based on the aforementioned solution, the database implementation device further includes: a first memory connected to the central processor, the first memory storing data resources of the at least one database; and a first memory connected to the central processor.

[0009] In an exemplary embodiment, based on the aforementioned scheme, the above-mentioned database implementation device also includes: a second memory connected to the above-mentioned switching chip; and a second memory connected to the above-mentioned switching chip, wherein the above-mentioned second memory stores configuration files and image files related to the above-mentioned switching chip.

[0010] In an exemplary embodiment, based on the above-mentioned solution, the above-mentioned database implementation device also includes: a read-only memory connected to the above-mentioned switching chip, and the above-mentioned read-only memory is used to store relevant programs required for the operation of the above-mentioned switching chip.

[0011] In an exemplary embodiment, based on the above-mentioned solution, the above-mentioned switching chip is also used for: when the type of the above-mentioned application request is non-database request, forwarding the above-mentioned application request according to the network data in the above-mentioned application request.

[0012] According to another aspect of the present specification, a database implementation method is provided, which is applied to the database implementation device as described in the above aspect.

[0013] The method includes: receiving application requests from multiple application servers respectively through the switching chip of the above-mentioned database implementation device; judging the type of the above-mentioned application request through the above-mentioned switching chip; and when the type of the above-mentioned application request is a database type, forwarding the above-mentioned application request to the central processing unit of the above-mentioned database implementation device by the above-mentioned switching chip, so as to provide database services through the database system running on the above-mentioned central processing unit.

[0014] In an exemplary embodiment, based on the above solution, when the type of the application request is not a database request, the switching chip forwards the application request according to the network data in the application request.

[0015] According to another aspect of the present specification, a database implementation system is provided, which includes: a first database implementation device and a second database implementation device.

[0016] Among them, the above-mentioned first database implementation device and the above-mentioned second database implementation device are connected through a network; or, the above-mentioned first database implementation device and the above-mentioned second database implementation device are connected to switches respectively; the above-mentioned first database implementation device and the above-mentioned second database implementation device are both database implementation devices as described in the above aspects of the specification.

[0017] In an exemplary embodiment, based on the above scheme, the first database implementation device includes a first central processor, and a first database system runs in the first central processor; the second database implementation device includes a second central processor, and a second database system runs in the second central processor;

[0018] The first database system and the second database system form a distributed database; or the first database system and the second database system form a centralized database.

[0019] According to another aspect of the present specification, a database implementation method is provided, which is applied to the database implementation system as described in the above aspect.

[0020] The method includes: receiving application requests from multiple application servers respectively through a first switching chip, the first switching chip being a switching chip of a first database implementation device; judging the type of the application request through the first switching chip; in the case where the type of the application request is a database type, forwarding the application request to a first central processor of the first database implementation device by the first switching chip, so as to provide database services through the first database system running on the first central processor; and, if the application request does not hit data in the first database system, forwarding the application request to the second database implementation device through the first switching chip.

[0021] According to one aspect of the present specification, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes the database implementation method as described in the above aspect of the specification.

[0022] According to another aspect of the present specification, a computer program product comprising instructions is provided. When the computer program product is executed on a computer or a processor, the computer or the processor executes the database implementation method as described in the above aspect of the specification.

[0023] The embodiments of this specification provide a database implementation device, a database implementation method, a database implementation system, a computer-readable storage medium, and a computer program product, which have the following technical effects:

[0024] The database implementation device provided by the exemplary embodiment of this specification includes: a switching chip that can be used to simultaneously receive application requests from multiple application servers, and a central processing unit running a database system in the same device. On the one hand, the above-mentioned switching chip that can simultaneously receive application requests from multiple application servers can meet the high concurrency performance of the database. On the other hand, in order to achieve the high concurrency requirements of the database in the related art, a switch is set between the database server and the application server, so that the database request from the application server needs to be forwarded to another computing device (i.e., the database server) after reaching the exchange before access to the database can be achieved. Compared with the related art, in the solution provided by the embodiment of this specification, the request data from the application device does not require information transmission between devices (i.e., from the switch to the database server), and is implemented inside the device (i.e., from the switching chip in the same device to the central processing unit). It can be seen that the database implementation device provided by the embodiment of this specification not only meets the high concurrency performance, but also has the technical effect of low latency.

[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the specification, and together with the specification are used to explain the principles of the specification. Obviously, the accompanying drawings described below are only some embodiments of the specification, and for those of ordinary skill in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0027] Figure 1 A schematic diagram of the structure of a data center provided for related technologies.

[0028] Figure 2 A schematic diagram of a usage scenario of a database implementation device provided in one embodiment of this specification.

[0029] Figure 3 This is a schematic diagram of the structure of a database implementation device provided in another embodiment of this specification.

[0030] Figure 4 A flowchart of a database implementation method provided in one embodiment of this specification.

[0031] Figure 5a This is a schematic diagram of the structure of a database implementation system provided in one embodiment of this specification.

[0032] Figure 5b A schematic diagram of the structure of a database implementation system provided in another embodiment of the present specification.

[0033] Figure 6 A flowchart of a database implementation method provided in another embodiment of this specification.

[0034] Figure 7 A flowchart of a database implementation method based on a database implementation system provided in one embodiment of this specification. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of this specification more clear, the embodiments of this specification will be further described in detail below with reference to the accompanying drawings.

[0036] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. Instead, they are only examples of devices and methods consistent with some aspects of this specification as detailed in the attached claims.

[0037] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that this specification will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of this specification. However, those skilled in the art will appreciate that the technical solutions of this specification may be practiced while omitting one or more of the above-mentioned specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of this specification.

[0038] In addition, the drawings are only schematic illustrations of the present specification and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0039] Since each database server in a data center can only provide one or two network exits, there is a high concurrency bottleneck in the data center database service. The existing technology generally achieves high concurrency performance of the data center database service by setting switches.

[0040] Exemplary, reference Figure 1 , the switch 120 can provide multiple network interfaces 10 (e.g., 30-40), wherein the switch is also connected to the power supply 12 through the power socket 11. Multiple application servers 110 in the data center can be connected to the network interface 10 of the switch 120 respectively, and then indirectly connected to the data center database server 130 through the switch 120. Then, application requests from multiple application servers can be sent to the corresponding database server 130 by the switch 120 at the same time. It can be seen that although the relevant technology can realize the high concurrency function of the data center database service, the application request needs to be forwarded from the switch to the database server, which is time-consuming.

[0041] In order to solve the technical problems existing in the related art, the embodiments of this specification provide a database implementation device, a database implementation method, a database implementation system, a computer-readable storage medium and a computer program product.

[0042] in, Figure 2 A schematic diagram of a usage scenario of a database implementation device provided in one embodiment of this specification.

[0043] refer to Figure 2 The database implementation device 200 provided in the embodiment of this specification includes: a switching chip 210 and a central processor 220 running a database system 20.

[0044] The switching chip 210 provides multiple network interfaces to the outside, so that the network interfaces provided by the switching chip can satisfy the database implementation device 200 to simultaneously receive application requests from multiple application servers 110, thereby achieving high concurrency performance of database services. Furthermore, the switching chip 210 is also used to determine the type of each of the application requests, and forward the application request to the central processor 220 when the type of the application request is a database type.

[0045] The central processor 220 is used to receive the application request forwarded by the switch chip 210, and provide database services for the application server 110 based on the database system 20 running on the central processor. Since the switch chip and the central processor belong to the same database implementation device, the application request output by the switch chip to the central processor is completed within the same device. Compared with the related art that requires information forwarding between devices, the database implementation solution provided in the embodiment of this description can achieve high concurrency of database services while also having the technical effect of low latency.

[0046] visible, Figure 2 The database implementation device provided by the illustrated embodiment can achieve the technical effects of high concurrency and low time consumption at the same time.

[0047] In an exemplary embodiment, Figure 3 This is a schematic diagram of the structure of a database implementation device provided in another embodiment of this specification.

[0048] refer to Figure 3 The database implementation device 200 provided by the embodiment shown in the figure includes, in addition to the above-mentioned central processor 220 for running the database program 20, also includes: a first memory 221 connected to the above-mentioned central processor 220, and the first memory 221 stores data resources of at least one database. Therefore, after the central processor 220 receives an application request of a database type, it provides database services based on the data resources in the above-mentioned first memory 221, thereby ensuring the smooth implementation of the above-mentioned high-concurrency and low-latency database services.

[0049] Exemplarily, the first memory 221 also stores the system software image files, database images, etc. of the central processing unit.

[0050] refer to Figure 3 The above-mentioned database implementation device 200 also includes: a first memory 222 connected to the above-mentioned central processor 20, and the first memory 222 is used to ensure the smooth operation of the central processor 220.

[0051] The embodiment of this specification can effectively ensure that the database implementation device can effectively provide database services by setting the above-mentioned central processor for running the database program, and the first memory and the first storage connected to the above-mentioned central processor respectively.

[0052] Continue to refer Figure 3, the database implementation device 200 further includes: the switching chip 210. Exemplarily, the switching chip 220 may be an application specific integrated circuit (ASIC) chip having a switching function and realizing high-speed data transmission and switching functions, or may be a field programmable gate array (FPGA). Among them, FPGA, as a semi-custom circuit in the field of ASIC, not only solves the shortcomings of custom circuits, but also overcomes the shortcomings of the limited number of gate circuits of the original programmable device.

[0053] Exemplarily, since the application request sent by the application server may be of a database type or a non-database type, as mentioned above, the above-mentioned switching chip is also used to determine the type of the received application request. On the one hand, when the type of the application request is a database type, the switching chip forwards the application request to the central processor in the same device to provide the corresponding database service. On the other hand, when the type of the application request is a non-database request, the switching chip 210 forwards the application request according to the network data in the application request. It can be seen that the switching chip 210 provided in the embodiment of this specification can not only provide high-concurrency and low-latency database services for the application server, but also provide network services other than database services for the application server, thereby ensuring the effective operation of the application server.

[0054] Continue to refer Figure 3 The database implementation device 200 further includes: a second memory connected to the switching chip 210, and the second memory 212 is used to ensure the smooth operation of the switching chip 210; the database implementation device 200 further includes: a second memory 211 connected to the switching chip 210, and the second memory 211 stores configuration files and image files related to the switching chip 210. Exemplarily, the second memory 211 stores image files of switching system software and configuration files related to the switching function.

[0055] In an exemplary embodiment, the database implementation device 200 further includes: a read-only memory connected to the switch chip 210, the read-only memory being used to store relevant programs required for the operation of the switch chip, for example, a startup diagnostic program and a boot program of the switch system software, so as to facilitate the user to correctly configure and use the database implementation device.

[0056] The embodiments of this specification can effectively ensure that the database implementation device can effectively provide a switching function by setting the above-mentioned switching chip, the second memory, the second storage device, and the above-mentioned read-only memory respectively connected to the above-mentioned switching chip, thereby achieving high concurrency of database services. At the same time, the above-mentioned switching chip and the central processor for running the database system are set in the same device, which can achieve high concurrency of database services while also having a technical effect of low latency.

[0057] In an exemplary embodiment, Figure 4 This is a flowchart of a database implementation method provided in one embodiment of this specification. The embodiment shown in this figure is performed based on the above-mentioned database implementation device.

[0058] refer to Figure 4 The database implementation method provided by the embodiment shown in the figure includes:

[0059] S410, receiving application requests from a plurality of application servers respectively through a switching chip of the above database implementation device.

[0060] S420: Determine the type of the application request through the switching chip.

[0061] Exemplarily, if the application request contains database data to be searched or related identifiers, the type of the current application request is determined to be a database type; if the application request does not contain database data to be searched or related identifiers, but contains network data to be jumped, the type of the current application request is determined to be a non-database type.

[0062] In the case where the type of the application request is a database type, S430 is executed: the switching chip forwards the application request to the central processor of the database implementation device to provide database services through the database system running on the central processor. In the case where the type of the application request is a non-database request, S440 is executed: the switching chip forwards the application request according to the network data in the application request.

[0063] It should be noted that Figure 4 The database implementation method embodiment shown is implemented based on the database implementation device 200 in the above embodiment. At the same time, the database implementation method provided in the above embodiment and the above database implementation device embodiment belong to the same concept, so for details not disclosed in the method embodiment of this specification, please refer to the above database implementation device embodiment of this specification, and no further description will be given here.

[0064] In an exemplary embodiment, based on the above-mentioned database implementation device 200, the embodiment of this specification also provides a database implementation system, and the database system implementation system includes at least two database implementation devices 200 provided in the above-mentioned embodiment. It can be seen that the database implementation system provided in the embodiment of this specification is a horizontal expansion of multiple database implementation devices.

[0065] in, Figure 5a This is a schematic diagram of the structure of a database implementation system provided in an embodiment of this specification. Figure 5a The database implementation system 500 provided in the embodiment shown in the figure includes: a first database implementation device 201 and a second database implementation device 202.

[0066] The first database implementation device 201 and the second database implementation device 202 are connected via a network.

[0067] Figure 5b This is a schematic diagram of the structure of a database implementation system provided by another embodiment of this specification. Figure 5b The database implementation system 500 provided in the embodiment shown in the figure also includes: a first database implementation device 201 and a second database implementation device 202.

[0068] The first database implementation device 201 and the second database implementation device 202 are respectively connected to the switch 50. Connecting multiple database implementation devices through a switch is conducive to networking and also convenient for unified management of multiple database implementation devices.

[0069] In an exemplary embodiment, similar to the above-mentioned database implementation device 200: the above-mentioned first database implementation device 201 includes a first central processor 2011, and a first database system 2012 runs in the above-mentioned first central processor 2011; the above-mentioned second database implementation device 202 includes a second central processor 2021, and a second database system 2022 runs in the above-mentioned second central processor 2021.

[0070] Exemplarily, the first database system 2012 and the second database system 2022 form a distributed database; or, the first database system 2012 and the second database system 2022 form a centralized database.

[0071] It can be seen that no matter whether the database itself is centralized or distributed, its database can be arranged in the data implementation system provided in the embodiments of this specification. It can be seen that the data implementation system provided in the embodiments of this specification has high applicability.

[0072] For example, if a distributed database system is deployed in the data implementation system provided in the embodiments of this specification, the databases between the above-mentioned database implementation devices ensure data consistency through distributed protocols such as the raft protocol or the paxos protocol. It can be seen that the database implementation system provided in the embodiments of this specification naturally supports distributed data databases and centralized databases.

[0073] If a centralized database system is arranged in the data implementation system provided in the embodiment of this specification, the access of the application server 110 is performed through access links such as the respective database systems.

[0074] In an exemplary embodiment, Figure 6 This is a flowchart of a database implementation method provided by another embodiment of this specification. The embodiment shown in this figure is based on the above database implementation system. Figure 6 The database implementation method provided by the embodiment shown in the figure includes:

[0075] S610: Receive application requests from a plurality of application servers respectively through a first switching chip, where the first switching chip is a switching chip of a first database implementation device.

[0076] Exemplary, reference Figure 7 , the application server 51 sends an application request to the first switching chip 2013 of the first database implementation device 201 (step (1)).

[0077] S620, determine the type of the application request through the first switching chip. If the type of the application request is a database type, execute S630: forward the application request to the first central processor of the first database implementation device through the first switching chip, so as to provide database services through the first database system running on the first central processor. And, S640, if the application request does not hit data in the first database system, forward the application request to the second database implementation device through the first switching chip.

[0078] Exemplarily, the first switching chip 2013 determines the type of the application request from the application server 51, and when the type of the application request is a database type, the first switching chip 2013 forwards the application request to the first central processor 2011 of the first database implementation device 201 (step (2)), so as to provide database services through the first database system 2012 running on the first central processor 2011. It can be seen that in this embodiment, when it is determined that the application request of the application server is a database request, the local database system is accessed first. If there is no hit in the local database system (for example, the local database does not contain the data corresponding to the above application request), the application request is forwarded to the neighbor's database system based on the protocol obeyed by different database implementation devices in the same database implementation system (step (3)).

[0079] Exemplarily, after receiving the forwarded application request, the second switching chip 2023 of the second database implementation device 202 may first determine the type of the application request, and if it is determined to be a database request, forward the application request to the second central processor 2021 (step (4)), so as to provide database services through the second database system 2022 running on the second central processor 2021. If the application request does not hit data in the second database system, the application request is forwarded to the third database implementation device (not shown in the figure) through the second switching chip 2023. This continues until the application request hits data in the database implementation system, or until all database implementation devices of the database implementation system are traversed.

[0080] In an exemplary embodiment, when the type of the application request is not a database request, S650 is executed: the first switching chip forwards the application request according to the network data in the application request. This step embodiment is the same as the specific implementation of S440 and will not be repeated here.

[0081] In addition, the database implementation method provided in the above embodiment belongs to the same concept as the above database implementation system embodiment. Therefore, for details not disclosed in the method embodiment of this specification, please refer to the above database implementation system embodiment of this specification, which will not be repeated here.

[0082] The database implementation device provided in the embodiment of this specification includes: a switching chip that can be used to simultaneously receive application requests from multiple application servers, and a central processing unit running a database system in the same device. On the one hand, the above-mentioned switching chip that can simultaneously receive application requests from multiple application servers can meet the high concurrency performance of the database. On the other hand, in order to achieve the high concurrency requirements of the database in the related art, a switch is set between the database server and the application server, so that the database request from the application server needs to be forwarded to another computing device (i.e., the database server) after reaching the exchange before access to the database can be achieved. Compared with the related art, in the solution provided in the embodiment of this specification, the request data from the application device does not require information transmission between devices (i.e., from the switch to the database server), and is implemented inside the device (i.e., from the switching chip in the same device to the central processing unit). It can be seen that the database implementation device provided in the embodiment of this specification not only meets the high concurrency performance, but also has the technical effect of low latency.

[0083] Based on the above database implementation device, the embodiment of this specification also provides a database implementation system, which can realize horizontal expansion of multiple database implementation devices, and can also connect multiple database implementation devices to a switch to facilitate networking and unified management. In addition, the database implementation system provided in the embodiment of this specification naturally supports distributed data databases and centralized databases, and has high practicality.

[0084] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present specification, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0085] The serial numbers of the embodiments of this specification are for description only and do not represent the advantages or disadvantages of the embodiments.

[0086] The embodiments of this specification also provide a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above embodiments. If the components of the above database implementation device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium.

[0087] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the above process or function according to the embodiment of this specification is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted by the above computer-readable storage medium. The above computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The above computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The above-mentioned available media can be magnetic media (for example, floppy disks, hard disks, tapes), optical media (for example, digital versatile discs (DVD)), or semiconductor media (for example, solid state drives (SSD)), etc.

[0088] It should be noted that the above description is of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0089] The above is only a specific implementation of this specification, but the protection scope of this specification is not limited to this. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in this specification, which should be included in the protection scope of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.

Claims

1. A database implementation device, wherein: The device comprises: A switching chip, used to: receive application requests from multiple application servers respectively through multiple external network interfaces thereon, and determine the type of the application requests, and also used to: forward the application requests to a central processing unit when the type of the application requests is a database type, wherein the switching chip is a chip with a switching function and a dedicated integrated circuit for realizing high-speed data transmission; The central processor, in which a database system is running, is used to: receive an application request forwarded by the switching chip, so as to provide a database service for the application server based on the database system; A second memory connected to the switching chip, wherein the second memory stores an image file of the switching system software and a configuration file related to the switching function; a second memory connected to the switching chip, the second memory being used to ensure smooth operation of the switching chip; A read-only memory connected to the switching chip, the read-only memory being used to store a startup diagnostic program and a boot program for implementing the switching system software; The switching chip is further used for: when the type of the application request is non-database type, forwarding the application request according to the network data in the application request; The switching chip is specifically used to: determine that the type of the application request is a database type when the application request contains database data to be searched or related identifiers; and determine that the type of the application request is a non-database type when the application request does not contain database data to be searched or related identifiers, and contains network data to be jumped.

2. The device according to claim 1, wherein: The device also includes: a first memory connected to the central processing unit, wherein the first memory stores data resources of the at least one database; and A first memory connected to the central processing unit.

3. A database implementation method, wherein: Applied to the database implementation device according to any one of claims 1 to 2, the method comprises: Receiving application requests from multiple application servers respectively through multiple external network interfaces on the switching chip of the database implementation device, the switching chip is a chip with a switching function and a dedicated integrated circuit for realizing high-speed data transmission, the switching chip is connected to a second memory, the second memory stores an image file of the switching system software and a configuration file related to the switching function, the switching chip is connected to a second memory, the second memory is used to ensure the smooth operation of the switching chip, the switching chip is connected to a read-only memory, and the read-only memory is used to store a startup diagnostic program and a boot program for realizing the switching system software; Determining the type of the application request by the switching chip; In the case where the type of the application request is a database type, the switching chip forwards the application request to the central processor of the database implementation device to provide database services through the database system running on the central processor; In the case where the type of the application request is non-database type, the switching chip forwards the application request according to the network data in the application request; And, the method for determining the type of the application request includes: In a case where the application request includes database data to be searched or a related identifier, determining that the type of the application request is a database type; In the case that the application request does not include the database data to be searched or the related identifier, and includes the network data to be redirected, it is determined that the type of the application request is a non-database type.

4. A database implementation system, wherein: The system comprises: A first database implementation device and a second database implementation device; wherein, The first database implementation device and the second database implementation device are connected via a network; or, the first database implementation device and the second database implementation device are connected to a switch respectively; The first database implementation device and the second database implementation device are both database implementation devices as described in any one of claims 1 to 2.

5. The system according to claim 4, wherein: The first database implementation device includes a first central processor, in which a first database system is running; the second database implementation device includes a second central processor, in which a second database system is running; The first database system and the second database system form a distributed database; or, the first database system and the second database system form a centralized database.

6. A database implementation method, wherein: Applied to the database implementation system according to claim 4 or 5, the method comprises: Receiving application requests from multiple application servers respectively through multiple external network interfaces on a first switching chip, the first switching chip is a switching chip of a first database implementation device, the first switching chip is a chip with a switching function and a dedicated integrated circuit for realizing high-speed data transmission, the first switching chip is connected to a second memory, the second memory stores an image file of the switching system software and a configuration file related to the switching function, the switching chip is connected to a second memory, the second memory is used to ensure the smooth operation of the switching chip, the switching chip is connected to a read-only memory, and the read-only memory is used to store a startup diagnostic program and a boot program for realizing the switching system software; Determining the type of the application request by the first switching chip; In the case where the type of the application request is a database type, the first switching chip forwards the application request to the first central processor of the first database implementation device, so as to provide a database service through the first database system running on the first central processor; If the application request does not match any data in the first database system, forwarding the application request to the second database implementation device through the first switching chip; In the case where the type of the application request is non-database type, the first switching chip forwards the application request according to the network data in the application request; And, the method for determining the type of the application request includes: In a case where the application request includes database data to be searched or a related identifier, determining that the type of the application request is a database type; In the case that the application request does not include the database data to be searched or the related identifier, and includes the network data to be redirected, it is determined that the type of the application request is a non-database type.

7. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer or a processor, the computer or the processor executes the database implementation method according to claim 3 or claim 6.

8. A computer program product comprising instructions, which, when executed on a computer or a processor, enables the computer or the processor to execute the database implementation method according to claim 3 or claim 6.

Citation Information

Patent Citations

  • Database security access system and method

    CN113221180A

  • Computing system and method for performing remote direct memory access therein

    CN113742257A