CN109164974B - Data storage method and device, computing equipment and storage medium - Google Patents

Data storage method and device, computing equipment and storage medium Download PDF

Info

Publication number
CN109164974B
CN109164974B CN201810678913.7A CN201810678913A CN109164974B CN 109164974 B CN109164974 B CN 109164974B CN 201810678913 A CN201810678913 A CN 201810678913A CN 109164974 B CN109164974 B CN 109164974B
Authority
CN
China
Prior art keywords
storage medium
result data
operation result
data
storage
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.)
Active
Application number
CN201810678913.7A
Other languages
Chinese (zh)
Other versions
CN109164974A (en
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.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810678913.7A priority Critical patent/CN109164974B/en
Publication of CN109164974A publication Critical patent/CN109164974A/en
Application granted granted Critical
Publication of CN109164974B publication Critical patent/CN109164974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a data storage method and device, a computing device and a storage medium, wherein the method comprises the steps of receiving business operation result data and a storage request of the business operation result data, wherein the storage request carries at least two target storage medium types; then determining at least two target storage medium interfaces corresponding to the at least two types of target storage media according to a preset configuration list; and finally, storing the service operation result data to the at least two target storage media through the at least two target storage media interfaces respectively.

Description

Data storage method and device, computing equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data storage method and apparatus, a computing device, and a storage medium.
Background
In some data storage fields, one piece of service data is stored in different types of data storage respectively due to some scene requirements.
For example, a document needs to be stored in a database table structure, and simultaneously needs to store a copy of data in the file to provide the data for a search engine to use, or needs to store user-modified version data and historical version data in a local system in the line of a Git file in addition to the database table structure and the database table structure, the storage media of each piece of data are different, the formats of the data are also different, and how to store the data of a business layer on 2 or more storage media in a quick synchronization manner in one application is a problem that needs to be solved at present.
Disclosure of Invention
In view of this, embodiments of the present application provide a data storage method and apparatus, a computing device, and a storage medium, so as to solve technical defects in the prior art.
The embodiment of the application discloses a data storage method, which comprises the following steps:
receiving business operation result data and a storage request of the business operation result data, wherein the storage request carries at least two target storage medium types;
determining at least two target storage medium interfaces corresponding to the at least two target storage medium types according to a preset configuration list, wherein the configuration list comprises a mapping relation between the storage medium types and the storage medium interfaces;
and storing the service operation result data to the at least two target storage media through the at least two target storage media interfaces respectively.
In another aspect, one or more embodiments of the present specification further provide a data storage device including:
the receiving module is configured to receive business operation result data and a storage request of the business operation result data, wherein the storage request carries at least two target storage medium types;
the interface determining module is configured to determine at least two target storage medium interfaces corresponding to the at least two target storage medium types according to a preset configuration list, wherein the configuration list comprises a mapping relation between the storage medium types and the storage medium interfaces;
the storage module is configured to store the service operation result data to the at least two target storage media through the at least two target storage media interfaces, respectively.
In another aspect, one or more embodiments of the present specification also provide a computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the data storage method as described above when executing the instructions.
In another aspect, one or more embodiments of the present specification also provide a computer readable storage medium storing computer instructions, which when executed by a processor, implement the steps of the data storage method as described above.
The data storage method comprises the steps of receiving business operation result data and a storage request of the business operation result data, wherein the storage request carries at least two target storage medium types; then determining at least two target storage medium interfaces corresponding to the at least two types of target storage media according to a preset configuration list; and finally, storing the service operation result data to the at least two target storage media through the at least two target storage media interfaces respectively.
Drawings
FIG. 1 is a diagram of a system architecture for implementing data storage according to one or more embodiments of the present disclosure;
FIG. 2 is a flow diagram of a data storage method provided by one or more embodiments of the present description;
FIG. 3 is a schematic diagram of a task model provided by one or more embodiments of the present disclosure;
FIG. 4 is a timing diagram of a data storage method provided by one or more embodiments of the present description;
FIG. 5 is a timing diagram of a data storage method provided by one or more embodiments of the present description;
FIG. 6 is a flow diagram of a data storage method provided by one or more embodiments of the present description;
fig. 7 is a schematic structural diagram of a data storage device according to one or more embodiments of the present disclosure.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in one or more embodiments of the present description to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description.
Technical terms used in one or more embodiments of the present specification will be explained first.
Hot plugging: the method is used for realizing the functions of dynamically adding, deleting or updating physical resources or logic resources of the application under the non-stop state.
Data medium: the data medium referred to herein refers to a system for storing data, such as a relational database, an object database, a Key-Value storage database, and a file store.
Referring to fig. 1, one or more embodiments of the present specification provide a system architecture diagram for implementing data storage, including a business layer 102, an interceptor 104, a distributor 106, a configuration list 108, a data layer 110, a data layer access interface 112, a storage media processor 114, and a storage media interface 116.
After the service layer 102 completes the service operation, it will receive a service operation result data storage request of the data layer 110, where the service operation result data storage request carries storage media types to which the service operation result data is stored,
the data of the business operation result is intercepted by the interceptor 104 before being stored, the interceptor 104 sends the intercepted data of the business operation result and the data storage request of the business operation result to the distributor 106,
the distributor 106 calls the configuration list 108, the configuration list 108 includes mapping relationships between storage media types and storage media processors 114, and between storage media processors 114 and storage media interfaces, the distributor 106 finds the storage media processor 114 corresponding to the storage media type in the service operation result data storage request through the data layer access interface 112, and calls the storage media interface 116 corresponding to the storage media processor 114 to implement multi-storage media type storage of the service operation result data,
the storage medium processor 114 may implement different types of storage of the service operation result data according to different storage media, and may perform different processing on the data format of the storage of the service operation result data.
The storage medium interface 116 receives the service operation result data processed by the storage medium processor 114, and then stores the service operation result data in a corresponding storage medium.
Referring to fig. 2, one or more embodiments of the present specification provide a data storage method, including steps 202 to 206.
Step 202: and receiving business operation result data and a storage request of the business operation result data, wherein the storage request carries at least two target storage medium types.
In one or more embodiments of the present specification, the business operation result data includes business operation result data of an intercepted business layer.
In one or more embodiments of the present specification, the service operation result data records a result corresponding to each step of operation of a service. Taking a purchase service as an example, the purchase service corresponds to a page browsing operation after entering a shopping website, a selection operation on an article to be purchased, a payment operation for purchasing the article, and the like, and the corresponding operations all have corresponding results, for example, the result corresponding to the page browsing operation includes all page names browsed by entering the shopping website, the result corresponding to the article selection operation includes the number of articles, the color of the articles, the model of the articles, and the like, which need to be purchased, and the result corresponding to the payment operation includes a payment amount and a selected payment bank, and the like.
In one or more embodiments of the present description, the business operation result data includes payment order data, cancellation order data, and/or selection payment source data.
In one or more embodiments of the present specification, the request for storing the service operation result data includes which types of storage media the service operation result data is stored in, so that the storage request carries at least two target storage media types, and the service operation result data can be stored in at least two types of storage media. In practical applications, the number of types of target storage media carried by the storage request may include two or more types, which are set according to practical requirements, and this application does not limit this.
In one or more embodiments of the present description, the target storage media type includes a relational storage media, an object-type storage media, and/or a file-type storage media. The practical application may also include other types of storage media, which are set according to practical requirements, and this application does not limit this.
Step 204: and determining at least two target storage medium interfaces corresponding to the at least two target storage medium types according to a preset configuration list, wherein the configuration list comprises a mapping relation between the storage medium types and the storage medium interfaces.
In one or more embodiments of the present specification, the configuration record stored in the configuration list includes a mapping relationship between storage medium types and storage medium interfaces, where one storage medium type in the configuration list corresponds to one storage medium interface.
The description will be given by taking an example in which the storage medium types include a relational storage medium, an object-type storage medium, and a file-type storage medium, the relational storage medium corresponds to the relational storage medium interface, the object-type storage medium corresponds to the object-type storage medium interface, and the file-type storage medium corresponds to the file-type storage medium interface. If the business operation result data is received through the relational storage medium interface, the business operation result data is stored into the relational storage medium, if the business operation result data is received through the object type storage medium interface, the business operation result data is stored into the object type storage medium, and if the business operation result data is received through the file type storage medium interface, the business operation result data is stored into the file type storage medium.
In one or more embodiments of the present specification, according to a configuration record in a configuration list and the at least two types of target storage media carried in the storage request, which storage media types in the configuration list correspond to the at least two types of target storage media may be determined, and then according to a mapping relationship between the storage media types and the storage media interfaces, at least two storage media interfaces, that is, target storage media interfaces, are determined.
Step 206: and storing the service operation result data to the at least two target storage media through the at least two target storage media interfaces respectively.
In one or more embodiments of the present specification, after receiving the service operation result data, the at least two target storage medium interfaces may perform processing such as format conversion on the service operation result data, convert the data format of the service operation result data into the format of a storage medium corresponding to the target storage medium interface, and then store the format of the storage medium to the target storage medium via the target storage medium interface.
In one or more embodiments of the present specification, after the business operation result data has been stored in the storage media of at least two target storage media types carried in the storage request, a storage result of the business operation result data is returned. And reminding that the business operation result data is successfully stored in a form of a popup window, a short message or an email.
In the data storage method provided in one or more embodiments of the present specification, the service layer does not pay attention to the implementation of the service operation result data storage logic, and only needs to pay attention to the storage medium interface of the storage behavior, and does not pay attention to which type of storage medium the service operation result data is to be stored in, and the storage medium interface corresponding to the type of storage medium is found according to the storage request, and the storage medium interface performs format conversion on the service operation result data and then stores the service operation result data to the corresponding storage medium, so that the service layer is completely decoupled from a specific storage process, and the code readability and the subsequent maintenance cost are greatly reduced.
Referring to fig. 3, one or more embodiments of the present specification provide a data storage method, including steps 302 to 308.
Step 302: and receiving business operation result data and a storage request of the business operation result data, wherein the storage request carries at least two target storage medium types.
Step 304: acquiring a preset configuration list, wherein the configuration list comprises a mapping relation between a storage medium type and a storage medium interface.
Step 306: and traversing the configuration list, and determining at least two target storage medium interfaces according to the at least two target storage medium types.
In one or more embodiments of the present specification, the configuration list is traversed, so that the mapping relationship between all storage media types and storage media interfaces in the configuration list is accessed once and only once. The configuration list may be traversed in a forward, middle, or backward order, and the selection may be made according to the actual application, which is not limited in any way by one or more embodiments of the present disclosure.
In one or more embodiments of the present description,
the mapping relationship between the storage medium type and the storage medium interface comprises the following steps:
the mapping relation between the storage medium type and the storage medium processor and the mapping relation between the storage medium processor and the storage medium interface;
determining at least two target storage media interfaces according to the at least two target storage media types comprises:
searching at least two storage medium types in the configuration list according to the at least two target storage medium types;
determining at least two storage medium processors corresponding to the at least two storage medium types based on the configuration list;
determining at least two storage medium interfaces corresponding to the at least two storage medium processors, wherein the at least two storage medium interfaces are the at least two target storage medium interfaces.
In one or more embodiments of the present description, the storage medium types correspond to respective storage medium processors, and the storage medium processors correspond to respective storage medium interfaces. In practical application, before storing the service operation result data, the format of the storage medium processor corresponding to the storage medium type is converted according to the requirement, and the storage of the service operation result data in different types of storage media is realized through the storage medium interface corresponding to the storage medium processor.
Taking the storage medium type including a relational storage medium, an object-type storage medium, and a file-type storage medium as an example for explanation, the mapping relationships between the storage medium processor and the mapping relationships between the storage medium type and the storage medium interface are specifically shown in table 1.
TABLE 1
Storage medium type Storage medium processor Storage medium interface
Relational storage medium Relational storage medium processor Relational storage medium interface
Object-type storage medium Object type storage medium processor Object type storage medium interface
File type storage medium File type storage medium processor File type storage medium interface
In one or more embodiments of the present disclosure, the structure of the configuration list is illustrated in table 2.
TABLE 2
Figure BDA0001710469190000091
Referring to tables 1 and 2, the description will be made by taking an example in which the at least two target storage medium types include a relational storage medium and an object-type storage medium.
Firstly, determining a relational storage medium and an object storage medium in a corresponding configuration list according to the relational storage medium and the object storage medium;
then, according to the relation type storage medium and the object type storage medium in the configuration list, the relation type storage medium corresponds to the relation type storage medium processor, and the object type storage medium corresponds to the object type storage medium processor;
and finally, determining that the corresponding storage medium interfaces respectively comprise a relational storage medium interface and an object type storage medium interface according to the relational storage medium processor and the object type storage medium processor, wherein the relational storage medium interface and the object type storage medium interface are target storage medium interfaces corresponding to the at least two target storage medium types.
Step 308: and storing the service operation result data to the at least two target storage media through the at least two target storage media interfaces respectively.
In one or more embodiments of the present specification, a mapping relationship between a new storage medium type and a storage medium interface may also be added to the configuration list.
In practical applications, the mapping relationship between the new storage medium type and the storage medium interface includes a mapping relationship between the new storage medium type and the storage medium processor, and a mapping relationship between the storage medium processor and the storage medium interface.
In the data storage method provided in one or more embodiments of the present specification, if the service operation result data needs to be stored in other types of storage media, and a new storage media type needs to be implemented by extension, the service operation result data can be stored in other storage media types only by adding a storage media type and a storage media interface corresponding to the storage media type in the configuration list and implementing a processor of one storage media.
Referring to fig. 4, one or more embodiments of the present specification provide a data storage method including steps 402 to 410.
Step 402: and receiving business operation result data and a storage request of the business operation result data, wherein the storage request carries at least two target storage medium types.
Step 404: acquiring a preset configuration list, wherein the configuration list comprises a mapping relation between a storage medium type and a storage medium interface.
Step 406: and traversing the configuration list, and determining at least two target storage medium interfaces according to the at least two target storage medium types.
Step 408: and storing the service operation result data to the at least two target storage media through the at least two target storage media interfaces respectively.
Step 410: and modifying and/or deleting the mapping relation between the storage medium type and the storage medium interface recorded in the configuration list.
In the data storage method provided in one or more embodiments of the present specification, the type of the storage medium may be dynamically adjusted during running, and the hot plug effect may be achieved only by performing a deletion or modification operation in the configuration list, so that the adjustment of the type of the storage medium is completed without shutdown. And one part of service operation result data can be stored in different types of storage media without shutdown, so that the effect of hot plugging of the storage media is achieved, meanwhile, the capacity of dynamically expanding service operation result data to store multiple types of storage media can be achieved only by configuring the new type of storage media into a configuration list, and the method has the advantage of low maintenance cost.
Referring to fig. 5, one or more embodiments of the present disclosure provide a timing diagram of a data storage method, including steps 502 to 514.
Step 502: and intercepting the purchase operation result data obtained after the purchase service processing is finished and the type of the target storage medium required to be stored by the purchase operation result, and transmitting the purchase operation result data to a distributor.
In one or more embodiments of the present disclosure, for example, in the case of purchasing clothes, the data of the result of the purchasing operation includes all pages browsed by entering a shopping website, a style, a color, an amount of the selected clothes, an amount of money to be paid, and information of a selected bank card.
Step 504: and receiving the purchase operation result data and acquiring a configuration list.
In one or more embodiments of the present description, the configuration list includes a mapping relationship between the storage medium type and a storage medium processor, and a mapping relationship between the storage medium processor and the storage medium interface.
Step 506: and traversing the configuration list, and acquiring a corresponding storage medium type from the configuration list according to one target storage medium type which needs to be stored according to the purchase operation result.
Step 508: and searching a storage medium interface corresponding to the storage medium type and a storage medium processor corresponding to the storage interface according to the configuration list.
Step 510: and after the storage medium processor processes the purchase operation result data, calling the storage medium interface to store the purchase operation result data to a corresponding storage medium.
Step 512: and judging whether all target storage medium types needing to be stored in the purchase operation result are traversed, if so, executing step 514, and if not, executing step 506.
Step 514: and returning the storage result of the purchase operation result data.
In the data storage method provided by one or more embodiments of the present specification, the business layer does not pay attention to the implementation of the purchase operation result data storage logic, only needs to pay attention to the storage medium interface of the storage behavior, and does not pay attention to which type of storage medium the purchase operation result data is stored in, and finds the storage medium interface corresponding to the type of storage medium according to the storage request, and the storage medium processor corresponding to the storage medium interface displays format conversion and storage of the purchase operation result data, so that the business layer is completely decoupled from a specific storage process, and code readability and subsequent maintenance cost are greatly reduced.
Referring to fig. 6, one or more embodiments of the present specification provide a data storage device including:
a receiving module 602, configured to receive service operation result data and a storage request of the service operation result data, where the storage request carries at least two target storage media types;
an interface determining module 604, configured to determine at least two target storage media interfaces corresponding to the at least two target storage media types according to a preset configuration list, where the configuration list includes a mapping relationship between a storage media type and a storage media interface;
a storage module 606 configured to store the service operation result data to the at least two target storage media through the at least two target storage media interfaces, respectively.
Optionally, the interface determining module 604 includes:
the acquisition submodule is configured to acquire a preset configuration list, wherein the configuration list comprises a mapping relation between a storage medium type and a storage medium interface;
and the traversing submodule is configured to traverse the configuration list and determine at least two target storage medium interfaces according to the at least two target storage medium types.
Optionally, one storage medium type in the configuration list corresponds to one storage medium interface.
Alternatively,
the mapping relationship between the storage medium type and the storage medium interface comprises the following steps:
the mapping relation between the storage medium type and the storage medium processor and the mapping relation between the storage medium processor and the storage medium interface;
the traversal submodule comprises:
a searching sub-module configured to search for at least two storage medium types in the configuration list according to the at least two target storage medium types;
a processor determination submodule configured to determine, based on the configuration list, at least two storage medium processors corresponding to the at least two storage medium types;
an interface determining submodule configured to determine at least two storage medium interfaces corresponding to the at least two storage medium processors, where the at least two storage medium interfaces are the at least two target storage medium interfaces.
Optionally, the apparatus further comprises:
and the interception module is configured to intercept the service operation result data of the service layer.
Optionally, the receiving module is configured to receive a storage request of service operation result data from the service layer and service result data from the data layer.
Optionally, the apparatus further comprises:
and the adding module is configured to add the mapping relation between the new storage medium type and the storage medium interface into the configuration list.
Optionally, the apparatus further comprises:
and the modification and deletion module is configured to modify and/or delete the mapping relation between the storage medium type and the storage medium interface recorded in the configuration list.
Optionally, the apparatus further comprises:
and the return module is configured to return the storage result of the business operation result data.
Optionally, the at least two target storage media types include a relational storage medium, an object-type storage medium, and/or a file-type storage medium.
Optionally, the business operation result data includes order payment data, order cancellation data and/or payment source selection data.
In the data storage device provided in one or more embodiments of the present specification, the service layer does not pay attention to the implementation of the service operation result data storage logic, and only needs to pay attention to the storage medium interface of the storage behavior, and does not pay attention to which type of storage medium the service operation result data is stored in, and finds the storage medium interface corresponding to the type of storage medium according to the storage request, and the storage medium processor corresponding to the storage medium interface displays format conversion and storage of the service operation result data, so that the service layer is completely decoupled from a specific storage process, and code readability and subsequent maintenance cost are greatly reduced.
Referring to fig. 7, a schematic structural diagram of a computing device according to one or more embodiments of the present disclosure is shown, and the specific embodiment of the present disclosure does not limit the specific implementation of the computing device.
As shown in fig. 7, the computing device may include: a processor (processor)702, a Communications Interface 704, a memory 706, and a communication bus 708.
Wherein:
the processor 702, communication interface 704, and memory 706 communicate with each other via a communication bus 708.
A communication interface 704 for communicating with other terminal devices or servers.
The processor 702 is configured to execute the program 710, and may specifically execute relevant steps in the foregoing data processing method embodiments.
In particular, the program 710 may include program code that includes computer instructions.
The processor 702 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The terminal device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 706 stores a program 710. The memory 706 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The program 710 may be specifically configured to cause the processor 702 to perform operations that implement the data storage described above.
One or more embodiments of the present specification also provide a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the data storage method.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the data storage method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the data storage method.
Each embodiment in one or more embodiments of the present disclosure is described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on differences from other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The technical carrier of the payment design described in one or more embodiments of the present specification may include, for example, Near Field Communication (NFC), WIFI, 3G/4G/5G, POS machine card swiping technology, two-dimensional code scanning technology, barcode scanning technology, bluetooth, infrared, Short Message Service (SMS), Multimedia Message Service (MMS), and the like.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (24)

1. A method of storing data, comprising:
receiving business operation result data and a storage request of the business operation result data, wherein the storage request carries at least two target storage medium types;
determining at least two target storage medium interfaces corresponding to the at least two target storage medium types according to a preset configuration list, wherein the configuration list comprises a mapping relation between the storage medium types and the storage medium interfaces;
and after receiving the service operation result data, the at least two target storage medium interfaces perform format conversion processing on the service operation result data, convert the data format of the service operation result data into the format of the storage medium corresponding to each target storage medium interface, and store the data in the corresponding target storage medium via each target storage medium interface.
2. The method of claim 1, wherein determining at least two target storage media interfaces corresponding to the at least two target storage media types according to a preset configuration list comprises:
acquiring a preset configuration list, wherein the configuration list comprises a mapping relation between a storage medium type and a storage medium interface;
and traversing the configuration list, and determining at least two target storage medium interfaces according to the at least two target storage medium types.
3. Method according to claim 1 or 2, wherein one storage medium type in the configuration list corresponds to one storage medium interface.
4. The method of claim 3, wherein the mapping between storage media types and storage media interfaces comprises:
the mapping relation between the storage medium type and the storage medium processor and the mapping relation between the storage medium processor and the storage medium interface;
determining at least two target storage media interfaces according to the at least two target storage media types comprises:
searching at least two storage medium types in the configuration list according to the at least two target storage medium types;
determining at least two storage medium processors corresponding to the at least two storage medium types based on the configuration list;
determining at least two storage medium interfaces corresponding to the at least two storage medium processors, wherein the at least two storage medium interfaces are the at least two target storage medium interfaces.
5. The method of claim 1, wherein before receiving the business operation result data and the storage request of the business operation result data, further comprising:
and intercepting service operation result data of the service layer.
6. The method of claim 1, wherein receiving business operation result data and a storage request for the business operation result data comprises:
and receiving a storage request of business operation result data from the business layer and business result data from the data layer.
7. The method of claim 1, further comprising:
and adding the mapping relation between the new storage medium type and the storage medium interface into the configuration list.
8. The method of claim 1, further comprising:
and modifying and/or deleting the mapping relation between the storage medium type and the storage medium interface recorded in the configuration list.
9. The method according to claim 1, wherein after storing the service operation result data to the at least two target storage media, respectively, further comprising:
and returning the storage result of the business operation result data.
10. The method of claim 1, wherein the at least two target storage media types comprise a relational storage media, an object-type storage media, and/or a file-type storage media.
11. The method of claim 1, wherein the business operations result data comprises order payment data, order cancellation data, and/or payment source selection data.
12. A data storage device, comprising:
the receiving module is configured to receive business operation result data and a storage request of the business operation result data, wherein the storage request carries at least two target storage medium types;
the interface determining module is configured to determine at least two target storage medium interfaces corresponding to the at least two target storage medium types according to a preset configuration list, wherein the configuration list comprises a mapping relation between the storage medium types and the storage medium interfaces;
and the storage module is configured to store the service operation result data to the at least two target storage media through the at least two target storage media interfaces, and after receiving the service operation result data, the at least two target storage media interfaces perform format conversion processing on the service operation result data, convert the data format of the service operation result data into the format of a storage medium corresponding to each target storage media interface, and store the data to the corresponding target storage medium through each target storage media interface.
13. The apparatus of claim 12, wherein the interface determination module comprises:
the acquisition submodule is configured to acquire a preset configuration list, wherein the configuration list comprises a mapping relation between a storage medium type and a storage medium interface;
and the traversing submodule is configured to traverse the configuration list and determine at least two target storage medium interfaces according to the at least two target storage medium types.
14. The apparatus of claim 12 or 13, wherein one storage media type in the configuration list corresponds to one storage media interface.
15. The apparatus of claim 13,
the mapping relationship between the storage medium type and the storage medium interface comprises the following steps:
the mapping relation between the storage medium type and the storage medium processor and the mapping relation between the storage medium processor and the storage medium interface;
the traversal submodule comprises:
a searching sub-module configured to search for at least two storage medium types in the configuration list according to the at least two target storage medium types;
a processor determination submodule configured to determine, based on the configuration list, at least two storage medium processors corresponding to the at least two storage medium types;
an interface determining submodule configured to determine at least two storage medium interfaces corresponding to the at least two storage medium processors, where the at least two storage medium interfaces are the at least two target storage medium interfaces.
16. The apparatus of claim 12, further comprising:
and the interception module is configured to intercept the service operation result data of the service layer.
17. The apparatus of claim 12, wherein the receiving module is configured to receive a storage request of service operation result data from a service layer and service result data from a data layer.
18. The apparatus of claim 12, further comprising:
and the adding module is configured to add the mapping relation between the new storage medium type and the storage medium interface into the configuration list.
19. The apparatus of claim 12, further comprising:
and the modification and deletion module is configured to modify and/or delete the mapping relation between the storage medium type and the storage medium interface recorded in the configuration list.
20. The apparatus of claim 12, further comprising:
and the return module is configured to return the storage result of the business operation result data.
21. The apparatus of claim 12, wherein the at least two target storage media types comprise a relational storage media, an object-based storage media, and/or a file-based storage media.
22. The apparatus of claim 12, wherein the business operations result data comprises order payment data, order cancellation data, and/or payment source selection data.
23. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-11 when executing the computer instructions.
24. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 11.
CN201810678913.7A 2018-06-27 2018-06-27 Data storage method and device, computing equipment and storage medium Active CN109164974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810678913.7A CN109164974B (en) 2018-06-27 2018-06-27 Data storage method and device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810678913.7A CN109164974B (en) 2018-06-27 2018-06-27 Data storage method and device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109164974A CN109164974A (en) 2019-01-08
CN109164974B true CN109164974B (en) 2021-07-09

Family

ID=64897320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810678913.7A Active CN109164974B (en) 2018-06-27 2018-06-27 Data storage method and device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109164974B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112136104A (en) * 2019-07-29 2020-12-25 深圳市大疆创新科技有限公司 Data packet writing method and device, control terminal and movable platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1387125A (en) * 2001-05-23 2002-12-25 株式会社日立制作所 Memory system
CN106599111A (en) * 2016-11-30 2017-04-26 上海斐讯数据通信技术有限公司 Data management method and storage system
CN106933494A (en) * 2015-12-31 2017-07-07 伊姆西公司 Mix the operating method and device of storage device
CN107451075A (en) * 2017-09-22 2017-12-08 算丰科技(北京)有限公司 Data processing chip and system, data storage forwarding and reading and processing method
CN107526542A (en) * 2016-06-15 2017-12-29 三星电子株式会社 Object storage device and its operating method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1387125A (en) * 2001-05-23 2002-12-25 株式会社日立制作所 Memory system
CN106933494A (en) * 2015-12-31 2017-07-07 伊姆西公司 Mix the operating method and device of storage device
CN107526542A (en) * 2016-06-15 2017-12-29 三星电子株式会社 Object storage device and its operating method
CN106599111A (en) * 2016-11-30 2017-04-26 上海斐讯数据通信技术有限公司 Data management method and storage system
CN107451075A (en) * 2017-09-22 2017-12-08 算丰科技(北京)有限公司 Data processing chip and system, data storage forwarding and reading and processing method

Also Published As

Publication number Publication date
CN109164974A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
US9256665B2 (en) Creation of inverted index system, and data processing method and apparatus
US20160035044A1 (en) Account processing method and apparatus
CN113194419B (en) User locking method and system based on 5G message and face recognition
CN108897729B (en) Transaction template sharing method and device, electronic equipment and storage medium
CN104423982A (en) Request processing method and device
CN110704486A (en) Data processing method, device, system, storage medium and server
CN110378723A (en) Product mix relationship determines method, apparatus, computer equipment and storage medium
CN109164974B (en) Data storage method and device, computing equipment and storage medium
CN113987054A (en) Big data governance full-flow visualization method and device and storage medium
CN110704423A (en) Excitation information acquisition method and device, storage medium and electronic equipment
CN108897873B (en) Method and device for generating job file, storage medium and processor
CN113792237B (en) Optimization method and device for card layout, storage medium and processor
CN115760453A (en) Method and device for creating accounting archive data association relation and electronic equipment
CN113625967B (en) Data storage method, data query method and server
CN109191103A (en) A kind of data carding method and device
US20190146924A1 (en) Method and system for matching multi-dimensional data units in electronic information system
CN107146075B (en) Request processing method and device
CN110738806B (en) Payment mode determination method, device and system and electronic equipment
CN114090680A (en) Data display method, device, equipment, storage medium and program product
CN109784713B (en) Method for forming settlement task queue, settlement method and device
CN108268594B (en) Data query method and device
CN106570663A (en) Ordered resource inventory management method and device and equipment
CN112148782A (en) Market data access method and device
CN108062329B (en) Data import method and device
CN111708757B (en) Data resource processing method, device and system, storage medium 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240227

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands