CN113946618B - Cloud data interaction method and system, computer equipment and storage medium - Google Patents

Cloud data interaction method and system, computer equipment and storage medium Download PDF

Info

Publication number
CN113946618B
CN113946618B CN202111567272.6A CN202111567272A CN113946618B CN 113946618 B CN113946618 B CN 113946618B CN 202111567272 A CN202111567272 A CN 202111567272A CN 113946618 B CN113946618 B CN 113946618B
Authority
CN
China
Prior art keywords
data
request
interaction
uploading
downloading
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
CN202111567272.6A
Other languages
Chinese (zh)
Other versions
CN113946618A (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.)
Shenzhen Sixun Software Co ltd
Original Assignee
Shenzhen Sixun Software 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 Shenzhen Sixun Software Co ltd filed Critical Shenzhen Sixun Software Co ltd
Priority to CN202111567272.6A priority Critical patent/CN113946618B/en
Publication of CN113946618A publication Critical patent/CN113946618A/en
Application granted granted Critical
Publication of CN113946618B publication Critical patent/CN113946618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • G06F16/2386Bulk updating operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24532Query optimisation of parallel queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/80Database-specific techniques

Abstract

The invention relates to the technical field of intelligent shop management, in particular to a cloud data interaction method, a system, computer equipment and a storage medium. The method comprises the following steps: the cloud server acquires interaction requests sent by all terminal devices in real time and respectively feeds back a response instruction; analyzing the acquired interactive requests, and classifying the interactive requests into an upload request task set and a download request task set according to types; inquiring the corresponding data cluster of the task set of the interactive request according to the type, and completing an uploading request task and/or a downloading request task; and uploading the progress of the interactive request in real time, and inquiring the interactive progress by the terminal equipment through the feedback response instruction. According to the invention, synchronous parallel uploading or downloading of data is realized, asynchronous processing operation is carried out on the data in the background of the cloud server, and the terminal equipment can inquire the interaction progress at any time through a response instruction, so that the interaction efficiency with the cloud server is improved, time and labor are saved, and the parallel interaction processing speed of the data is increased.

Description

Cloud data interaction method and system, computer equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent shop management, in particular to a cloud data interaction method, a system, computer equipment and a storage medium.
Background
With the continuous development of the retail industry, the development mode of chain stores is becoming more mature, and in order to reasonably optimize the inventory configuration among stores and improve the sales targets among stores, monthly regular statistics are usually performed in a data report manner, so as to further know the change trend of market demands and adjust the inventory configuration among stores and the optimal configuration of resources.
The stock data and the sales data among stores are reported in a statistical manner in a table mode, and a real-time statistical function of the data is lacked. The traditional method for reporting the entity transaction data is not beneficial to backup, query and acquisition of the entity data, and the data volume among stores is large, so that effective management is difficult to carry out. With the development of technologies such as mobile internet, internet of things and the like, in the face of large data which is exponentially increased in an explosive manner, the data use, such as a data query process, a backup process and a data sharing and downloading process, is greatly influenced by the traditional data base data storage mode. Aiming at the problem of how to realize data interaction of a large amount of data among stores, upload or download the large amount of data quickly, and backup the data in real time so as to prevent data loss caused by misoperation or system failure, a cloud data interaction method, a system, computer equipment and a storage medium are needed to be provided, so that the problems are solved.
Disclosure of Invention
In order to solve the problem of how to realize data interaction on a large amount of existing data, the invention constructs a cloud data interaction method, a system, computer equipment and a storage medium.
The invention is realized by adopting the following technical scheme:
a cloud data interaction method comprises a plurality of terminal devices registered with store information and a cloud server connected with the terminal devices and used for data interaction, and comprises the following steps:
the cloud server acquires interaction requests sent by all terminal devices in real time and respectively feeds back a response instruction;
analyzing the acquired interactive requests, and classifying the interactive requests into an upload request task set and a download request task set according to types;
inquiring the corresponding data cluster of the task set of the interactive request according to the type, and completing an uploading request task and/or a downloading request task;
and uploading the progress of the interactive request in real time, and inquiring the interactive progress by the terminal equipment through the feedback response instruction.
As a further scheme of the present invention, the obtained interactive request is analyzed, the interactive request type of the interactive request is analyzed and obtained, the interactive request type includes a data uploading request or a data downloading request, and the data information to be interacted includes a safe stock, an actual stock, a stock-in amount, a stock-out amount, a commodity shortage amount, a consumption amount, sales data, a total sales amount, and the like.
Further, in a pair, the interactive method for uploading the request task set comprises the following steps:
reading an import file of the uploading request task set, and matching the data of the import file to a corresponding data cluster according to types;
setting the quantity of data to be imported into each data cluster in batch, and importing the data of the files to be imported into each data cluster according to the set quantity;
returning an import result every time the set quantity of batch analysis for each time is reached;
circularly importing the data of all import files of each data cluster until all import is finished;
and uploading the quantity of the imported data and the imported result in real time, and inquiring the uploading progress at any time according to the response instruction.
Further, circularly importing the data of the imported file into the corresponding data cluster for storage according to the preset batch import quantity; and when the import fails, the data clusters are matched with the imported data again, the imported data are uploaded to the matched data clusters again, and when the import fails twice or more, the uploading failure reason is returned as a result and uploaded in real time so as to inquire the uploading failure reason of the uploading failure data through a response instruction.
As a further aspect of the present invention, the interactive method for downloading a request task set includes:
reading a downloading request type of the downloading request task set, and loading a data cluster according to the downloading request type;
traversing the corresponding data clusters to inquire the download data corresponding to each download request;
and downloading the inquired data corresponding to each downloading request, and exporting the downloaded result file to the corresponding terminal equipment.
And further, before the downloaded result file is completed, the interactive progress of the download request task set is uploaded in real time, and the terminal equipment corresponding to the download request inquires the download progress in real time according to the response instruction.
The invention also comprises a cloud data interaction system, wherein the cloud data interaction system comprises a plurality of terminal devices registered with store information and a cloud server connected with the terminal devices and used for data interaction, the cloud data interaction system adopts the cloud data interaction method to interact the real-time data of the terminal devices bound to all stores with the cloud server, so that synchronous parallel uploading or downloading of the data is realized, and the data is asynchronously processed in a background of the cloud server; the cloud data interaction system further comprises a request acquisition module, a request classification module, a cluster query module, an interaction module, a feedback module and a progress query module.
The request acquisition module is used for acquiring the interactive requests sent by all the terminal devices in real time and feeding back a response instruction to the corresponding terminal device after receiving the interactive requests;
the request classification module is used for classifying the interaction requests received by the request acquisition module into an upload request task set or a download request task set according to types;
the cluster query module is used for querying a corresponding data cluster according to the task type of each request in the uploading request task set or the downloading request task set;
the interaction module is used for interacting the tasks of each data cluster with the database of the server to finish batch uploading or downloading of data;
the feedback module is used for uploading the uploading or downloading progress corresponding to each interactive request in real time;
and the progress query module is used for receiving the response instruction sent by the terminal equipment and querying the interaction progress uploaded in the feedback module according to the response instruction.
Preferably, the cloud data interaction system further includes: and the data cluster updating module is used for receiving the import file carried by the uploading request task set uploaded in batch by the interaction module, updating the batch import data according to the divided data clusters, and updating the data clusters in a mode of merging the uploaded data and the original data to obtain merged data objects arranged according to time sequence.
The invention also includes a computer apparatus comprising: the cloud data interaction method comprises at least one processor and a memory which is in communication connection with the at least one processor, wherein the memory stores instructions which can be executed by the at least one processor, and the instructions are executed by the at least one processor so as to enable the at least one processor to execute the cloud data interaction method.
The invention further includes a computer-readable storage medium, which stores computer instructions for causing the computer to execute the cloud data interaction method.
The technical scheme provided by the invention has the following beneficial effects:
the cloud server is used for interacting with a plurality of terminal devices bound with all stores in real time, batch interaction requests are divided into data uploading request task sets or downloading request task sets, the corresponding data clusters are inquired according to the requests of the task sets, the task quantity of single uploading or downloading of each data cluster is set, downloading data are led in batch in a circulating mode, synchronous parallel uploading or downloading of the data is achieved, asynchronous processing operation of the data is conducted on a background of the cloud server, the terminal devices can inquire interaction progress at any time through response instructions, interaction efficiency with the cloud server is improved, time and labor are saved, and the speed of parallel interaction processing of the data is increased.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or technical solutions in the related art, the drawings, which are needed to be used in the description of the exemplary embodiments or related art, will be briefly described below, and are used for providing further understanding of the present invention and are a part of the specification, and together with the embodiments of the present invention, serve to explain the present invention without limiting the present invention.
Fig. 1 is a flowchart of a cloud data interaction method according to an embodiment of the present invention.
Fig. 2 is a flowchart of an interaction of an upload request task set of a cloud data interaction method according to an embodiment of the present invention.
Fig. 3 is a flowchart of a download request task set interaction of a cloud data interaction method according to an embodiment of the present invention.
Fig. 4 is a block diagram of a cloud data interaction system according to an embodiment of the present invention.
Fig. 5 is a system block diagram of a cloud data interaction system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the exemplary embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the exemplary embodiments of the present invention, and it is apparent that the described exemplary embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The cloud data interaction method is used for optimizing real-time interaction of store data and cloud data, finishing quick uploading or downloading of a large amount of data according to different interaction requirements of a large amount of data among stores, and preventing the problem of data loss caused by misoperation or system failure during store backup in a cloud backup mode.
The technical scheme of the invention is further explained by combining the specific embodiment as follows:
referring to fig. 1, fig. 1 is a flowchart of a cloud data interaction method provided by the present invention. The cloud data interaction method provided in an embodiment of the present invention includes a plurality of terminal devices 100 registered with store information and a cloud server 500 connected to the terminal devices 100 for data interaction, and includes the following steps:
s1: the cloud server acquires the interaction requests sent by all the terminal devices in real time and respectively feeds back a response instruction.
In the invention, the interaction request is sent by the terminal device 100 bound with store information, when the store data in the store changes, the change data including commodity warehousing, commodity sales, commodity ex-warehouse, commodity shortage and the like are automatically sent to the cloud server 500 in a request instruction mode, and the cloud server 500 carries out interaction change on the data file carried by the interaction request; in this embodiment, the interaction request may also be sent by the terminal device 100 bound with store information, and when it is necessary to obtain inventory data, sales data, statistical accumulated sales data of stores, or analyze actual business conditions of each store, the interaction request is automatically sent to the cloud server 500 in a request instruction manner, and the cloud server 500 downloads cloud data meeting the interaction request to the interaction request, and interacts with the terminal device 100.
When the cloud server 500 responds to the interaction request, a response instruction for later-stage query interaction progress is fed back, and the earlier-stage query operation and the data interaction processing operation are performed separately, so that the waiting time of the terminal device 100 is saved, and the terminal device 100 is required to wait for the whole interaction process until the whole interaction process is completed.
S2: and analyzing the acquired interactive requests, and classifying the interactive requests into an upload request task set and a download request task set according to types.
The step S1 is executed to obtain the interaction requests sent by all the terminal devices in real time, and when the interaction requests are analyzed, the interaction request types of the interaction requests are analyzed and obtained, including the data upload request or the data download request, and the data information to be interacted, where the data information to be interacted includes a safe stock, an actual stock, a stock-in amount, a stock-out amount, a commodity shortage amount, a loss amount, sales data, a total sales amount, and the like. In this embodiment, the task sets are divided into two groups, that is, the upload request task set and the download request task set, so that the interaction requests acquired by the cloud server 500 can be conveniently classified, and different interaction modes are respectively acquired for different task sets.
S3: and querying the corresponding data cluster according to the type of the task set of the interactive request, and completing the uploading request task and/or the downloading request task.
It should be particularly noted that in this embodiment, the types of the task sets are classified according to the data information to be interacted obtained during the analysis, and the interaction request is classified into change data such as commodity warehousing, commodity sales, commodity ex-warehouse, commodity shortage, and the like, or data cluster types of inventory data, sales data, statistical accumulated sales data, actual business conditions of each store, and the like, and the types of the data clusters are more or less classified according to the difference of the store data. The method aims to further divide the request tasks contained in the upload request task set and the download request task set, so that the request tasks are transversely expanded and distributed, the method is favorable for quickly processing the request tasks of each subclass, the whole database does not need to be traversed, all the request tasks do not need to be traversed, the request tasks are processed in sequence, and the processing efficiency is high.
In the present invention, referring to fig. 2, the interaction method for uploading a request task set includes:
s301, reading an import file of the upload request task set, and matching data of the import file to a corresponding data cluster according to types;
s302, setting the quantity of batch import data of each data cluster, and importing the data of files to be imported of each data cluster according to the set quantity;
s303, returning an import result once when the quantity of batch analysis per time is set once;
s304, circularly importing the data of all the import files of each data cluster until all the import is finished;
s305, uploading the quantity of the imported data and the import result in real time, and inquiring the uploading progress at any time according to the response instruction.
According to the method, data of the imported file are circularly imported into corresponding data clusters for storage according to the preset batch import quantity; and when the import fails, the data clusters are matched with the imported data again, the imported data are uploaded to the matched data clusters again, and when the import fails twice or more, the uploading failure reason is returned as a result and uploaded in real time so as to inquire the uploading failure reason of the uploading failure data through a response instruction.
It should be particularly noted that, in this embodiment, when uploading import files in an upload request task set, the upload request tasks of the upload request task set are classified into respective corresponding data clusters according to the analyzed to-be-interacted data information by analyzing an interaction request, the data clusters are sub-modules classified and stored in the database of the cloud server 500, when uploading the upload request tasks, the upload request tasks corresponding to each sub-module are imported according to the set quantity of batch import data of each time, for example, 5 import files of the upload request tasks are imported each time, after the batch import of the import files of the batch is completed, an import result is fed back as a basis for querying an interaction progress, the upload is performed in real time, then the import of the next batch is performed until all the import files of all the upload request tasks are completely imported, the import files are arranged in a time sequence and are merged with original data in the sub-modules, thereby completing the interactive operation of the uploading request task set.
In this embodiment, referring to fig. 3, the interactive method for downloading a request task set includes:
s310, reading a downloading request type of the downloading request task set, and loading a data cluster according to the downloading request type;
s320, traversing the corresponding data clusters to inquire the download data corresponding to each download request;
s330, downloading the inquired data corresponding to each downloading request, and exporting the downloaded result file to the corresponding terminal equipment.
Further, before the downloaded result file is completed, the interactive progress of the download request task set is uploaded in real time, and the terminal device 100 corresponding to the download request queries the download progress in real time according to the response instruction.
It should be particularly noted that, in this embodiment, when executing the download request task set, the sub-modules classified and stored in the database of the cloud server 500 corresponding to the sub-module are queried according to the analyzed to-be-interacted data information by analyzing the interaction request, and when downloading the task, the data is downloaded in batches according to the set download request task corresponding to each sub-module until all the download request tasks are completed, and the downloaded data file generates a download link or address corresponding to the response request for the corresponding terminal device 100 to download, or the downloaded data file is directly sent to the corresponding terminal device 100, so that the download management of the batch data is implemented, the waiting time of the terminal device 100 does not need to be occupied, and the efficiency of interacting with the cloud data is improved.
S4: and uploading the progress of the interactive request in real time, and inquiring the interactive progress by the terminal equipment through the feedback response instruction.
It should be particularly noted that before the interactive operation corresponding to the interactive request is completed, the interactive progress of the cloud server 500 may be queried at any time in the terminal device 100 through a response request, and after the interactive operation is completed, the download connection may also be obtained through the response request, so as to complete the download of the data file corresponding to the download request, and all the upload or download data is backed up in the database of the cloud server 500, thereby effectively preventing the problem of data loss caused by operation errors or system failures.
In the invention, the batch interactive requests are divided into the uploading request task set or the downloading request task set of the data, the corresponding data cluster is inquired about the request of each task set, the single uploading or downloading task quantity of each data cluster is set, and the downloading data is circularly imported in batch, so that the synchronous parallel uploading or downloading of the data is realized, the interactive efficiency with the cloud server 500 is improved, the time and the labor are saved, and the parallel interactive processing speed of the data is increased.
It should be understood that although the steps are described above in a certain order, the steps are not necessarily performed in the order described. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, some steps of the present embodiment may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or in turns with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 4, the present invention provides a cloud data interaction system, which includes a plurality of terminal devices 100 registered with store information, and a cloud server 500 connected to the terminal devices 100 for data interaction. The cloud data interaction system adopts the cloud data interaction method to interact the real-time data of the plurality of terminal devices 100 bound to all stores with the cloud server 500, so that synchronous parallel uploading or downloading of the data is realized, and asynchronous processing operation is performed on the data in the background of the cloud server 500.
In this embodiment, referring to fig. 4 and 5, the cloud data interaction system further includes a request obtaining module 501, a request classifying module 502, a cluster querying module 503, an interaction module 504, a feedback module 505, and a progress querying module 506.
The request obtaining module 501 is configured to obtain, in real time, interaction requests sent by all terminal devices 100, and feed back a response instruction to a corresponding terminal device 100 after receiving the interaction requests;
the request classification module 502 is configured to classify the interaction request received by the request acquisition module 501 into an upload request task set or a download request task set according to types;
the cluster query module 503 is configured to query a corresponding data cluster according to a task type of each request in the upload request task set or the download request task set;
the interaction module 504 is configured to interact the task of each data cluster with the database of the server, and complete batch uploading or downloading of data;
the feedback module 505 is configured to upload an upload or download progress corresponding to each interactive request in real time;
the progress query module 506 is configured to receive a response instruction sent by the terminal device 100, and query the interaction progress uploaded in the feedback module 505 according to the response instruction.
In an embodiment of the present invention, the cloud data interaction system further includes: and a data cluster updating module 507, configured to receive an import file carried by an upload request task set uploaded in batch by the interaction module 504, update the batch import data according to a divided data cluster, and update the data cluster by merging the uploaded data with the original data to obtain merged data objects arranged according to a time sequence.
In this embodiment, the cloud data interaction system adopts the steps of the cloud data interaction method as described above during execution, and therefore, the operation process of the cloud data interaction system is not described in detail in this embodiment.
In an embodiment, there is further provided a computer device including at least one processor, and a memory communicatively connected to the at least one processor, where the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute the cloud data interaction method, and the processor executes the instructions to implement the steps in the method embodiments:
the cloud server 500 obtains the interaction requests sent by all the terminal devices 100 in real time and respectively feeds back a response instruction.
And analyzing the acquired interactive requests, and classifying the interactive requests into an upload request task set and a download request task set according to types.
And querying the corresponding data cluster according to the type of the task set of the interactive request, and completing the uploading request task and/or the downloading request task.
And uploading the progress of the interactive request in real time, and inquiring the interactive progress by the terminal equipment 100 through the feedback response instruction.
In one embodiment, a computer-readable storage medium is provided, which stores computer instructions for causing the computer to execute the cloud data interaction method:
the cloud server 500 acquires the interaction requests sent by all the terminal devices 100 in real time and respectively feeds back a response instruction;
analyzing the acquired interactive requests, and classifying the interactive requests into an upload request task set and a download request task set according to types;
inquiring the corresponding data cluster of the task set of the interactive request according to the type, and completing an uploading request task and/or a downloading request task;
and uploading the progress of the interactive request in real time, and inquiring the interactive progress by the terminal equipment 100 through the feedback response instruction.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program represented by computer instructions and stored in a non-volatile computer-readable storage medium, and the computer program can include the processes of the embodiments of the methods described above when executed. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory.
Non-volatile memory may include read-only memory, magnetic tape, floppy disk, flash memory, optical storage, or the like. Volatile memory may include random access memory or external cache memory. By way of illustration, and not limitation, RAM can take many forms, such as static random access memory, dynamic random access memory, and the like.
In summary, the cloud data interaction method, the system, the computer device, and the storage medium constructed by the technical solutions of the present invention perform real-time interaction with a plurality of terminal devices 100 bound to all stores through the cloud server 500, divide batch interaction requests into data upload request task sets or download request task sets, query a corresponding data cluster for a request of each task set, set a single upload or download task amount of each data cluster, circularly import and download data in batch, implement synchronous parallel upload or download of data, perform asynchronous processing operation on data in the background of the cloud server 500, and query an interaction progress at any time by the terminal devices 100 through response instructions, thereby improving the interaction efficiency with the cloud server 500, saving time and labor, and increasing the speed of parallel interaction processing of data.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A cloud data interaction method is characterized by comprising a plurality of terminal devices registered with store information and a cloud server connected with the terminal devices and used for data interaction, and the method comprises the following steps:
the cloud server acquires interaction requests sent by all terminal devices in real time and respectively feeds back a response instruction;
analyzing the acquired interactive requests, and classifying the interactive requests into an upload request task set and a download request task set according to types;
inquiring a corresponding data cluster according to types of a task set of an interaction request, completing an uploading request task and/or a downloading request task, and inquiring sub-modules which are stored in a database of a cloud server corresponding to the inquiry of the to-be-interacted data information according to the analyzed to-be-interacted data information by analyzing the interaction request when the downloading request task set is executed; during a downloading task, downloading data according to the downloading request task corresponding to each submodule and each set batch until all downloading request tasks are completed, and generating a downloading link or address corresponding to the response request by the downloaded data file for downloading by the corresponding terminal equipment, or directly sending the downloaded data file to the corresponding terminal equipment;
uploading the progress of the interactive request in real time, and inquiring the interactive progress by the terminal equipment through the feedback response instruction;
the interaction method for uploading the request task set comprises the following steps:
reading an import file of the uploading request task set, and matching the data of the import file to a corresponding data cluster according to types;
setting the quantity of data to be imported into each data cluster in batch, and importing the data of the files to be imported into each data cluster according to the set quantity;
returning an import result every time the set quantity of batch analysis for each time is reached;
circularly importing the data of all import files of each data cluster until all import is finished;
uploading the quantity of the imported data and the import result in real time, and inquiring the uploading progress at any time according to the response instruction;
the interactive method for downloading the request task set comprises the following steps:
reading a downloading request type of the downloading request task set, and loading a data cluster according to the downloading request type;
traversing the corresponding data clusters to inquire the download data corresponding to each download request;
and downloading the inquired data corresponding to each downloading request, and exporting the downloaded result file to the corresponding terminal equipment.
2. The cloud data interaction method of claim 1, wherein the interaction request obtained by analyzing is analyzed to obtain an interaction request type of the interaction request, including a data uploading request or a data downloading request, and data information to be interacted, where the data information to be interacted includes a safe stock amount, an actual stock amount, a stock entering amount, a stock leaving amount, a commodity shortage amount, a consumption amount, sales data, and a total sales amount.
3. The cloud data interaction method of claim 2, wherein the data of the imported file is circularly imported into the corresponding data cluster for storage according to a preset batch import number; and when the import fails, the data clusters are matched with the imported data again, the imported data are uploaded to the matched data clusters again, and when the import fails twice or more, the uploading failure reason is returned as a result and uploaded in real time so as to inquire the uploading failure reason of the uploading failure data through a response instruction.
4. The cloud data interaction method of claim 3, wherein before the downloaded result file is completed, the interaction progress of the download request task set is uploaded in real time, and the terminal device corresponding to the download request queries the download progress in real time according to the response instruction.
5. A cloud data interaction system is characterized by comprising a plurality of terminal devices registered with store information and a cloud server connected with the terminal devices and used for data interaction, wherein the cloud data interaction system adopts the cloud data interaction method of any one of claims 1-4 to interact real-time data of the terminal devices bound to all stores with the cloud server, so that synchronous parallel uploading or downloading of the data is realized, and the data is asynchronously processed in a background of the cloud server; the cloud data interaction system further comprises:
the request acquisition module is used for acquiring the interaction requests sent by all the terminal devices in real time and feeding back a response instruction to the corresponding terminal device after receiving the interaction requests;
the request classification module is used for classifying the interaction requests received by the request acquisition module into an upload request task set or a download request task set according to types;
the cluster query module is used for querying a corresponding data cluster according to the task type of each request in the uploading request task set or the downloading request task set;
the interaction module is used for interacting the tasks of each data cluster with the database of the server to finish batch uploading or downloading of data;
the feedback module is used for uploading the uploading or downloading progress corresponding to each interactive request in real time;
and the progress query module is used for receiving the response instruction sent by the terminal equipment and querying the interaction progress uploaded in the feedback module according to the response instruction.
6. The cloud data interaction system of claim 5, wherein said cloud data interaction system further comprises: and the data cluster updating module is used for receiving the import file carried by the uploading request task set uploaded in batch by the interaction module, updating the batch import data according to the divided data clusters, and updating the data clusters in a mode of merging the uploaded data and the original data to obtain merged data objects arranged according to time sequence.
7. A computer device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to cause the at least one processor to perform the cloud data interaction method of any of claims 1-4.
8. A computer-readable storage medium storing computer instructions for causing a computer to perform the cloud data interaction method of any one of claims 1-4.
CN202111567272.6A 2021-12-21 2021-12-21 Cloud data interaction method and system, computer equipment and storage medium Active CN113946618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111567272.6A CN113946618B (en) 2021-12-21 2021-12-21 Cloud data interaction method and system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111567272.6A CN113946618B (en) 2021-12-21 2021-12-21 Cloud data interaction method and system, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113946618A CN113946618A (en) 2022-01-18
CN113946618B true CN113946618B (en) 2022-03-04

Family

ID=79339463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111567272.6A Active CN113946618B (en) 2021-12-21 2021-12-21 Cloud data interaction method and system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113946618B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584622A (en) * 2022-03-03 2022-06-03 平安普惠企业管理有限公司 Batch data processing method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674330A (en) * 2009-10-09 2010-03-17 中兴通讯股份有限公司 Service interaction method and device thereof
CN102710630A (en) * 2012-05-29 2012-10-03 新华网股份有限公司 Cloud upload and download method and system of multi-threaded slice
CN107168742A (en) * 2017-05-19 2017-09-15 中南大学 Application quick deployment method based on customization Android platform
CN108718285A (en) * 2018-06-15 2018-10-30 北京奇艺世纪科技有限公司 Flow control methods, device and the server of cloud computing cluster

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8504530B2 (en) * 2010-06-26 2013-08-06 Asibo Inc. Global information management system and method
CN102916907B (en) * 2012-09-25 2015-06-17 中国联合网络通信集团有限公司 Download method and system based on home gateway, and home gateway
CN108347463B (en) * 2017-01-23 2021-06-18 普天信息技术有限公司 Terminal file uploading method
EP3499846B1 (en) * 2017-09-12 2021-04-14 Wangsu Science & Technology Co., Ltd. File distribution method, file download method, distribution server, client, and system
CN113326056B (en) * 2021-06-28 2022-10-21 上海致景信息科技有限公司 Data processing method, data processing device, storage medium and processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674330A (en) * 2009-10-09 2010-03-17 中兴通讯股份有限公司 Service interaction method and device thereof
CN102710630A (en) * 2012-05-29 2012-10-03 新华网股份有限公司 Cloud upload and download method and system of multi-threaded slice
CN107168742A (en) * 2017-05-19 2017-09-15 中南大学 Application quick deployment method based on customization Android platform
CN108718285A (en) * 2018-06-15 2018-10-30 北京奇艺世纪科技有限公司 Flow control methods, device and the server of cloud computing cluster

Also Published As

Publication number Publication date
CN113946618A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
US11514045B2 (en) Structured cluster execution for data streams
CN108256113B (en) Data blood relationship mining method and device
CN101739281A (en) Infrastructure for parallel programming of clusters of machines
CN111209310A (en) Service data processing method and device based on stream computing and computer equipment
CN113946618B (en) Cloud data interaction method and system, computer equipment and storage medium
CN110766520A (en) Multi-system multi-shop order fusion method and device, computer equipment and storage medium
CN110569179A (en) Data acquisition system and data acquisition method
CN114968739A (en) Operation and maintenance task management method, operation and maintenance method, device, equipment and medium
CN107193749B (en) Test method, device and equipment
CN113918532A (en) Portrait label aggregation method, electronic device and storage medium
CN113114776A (en) Data pushing method and device
CN112363838A (en) Data processing method and device, storage medium and electronic device
CN112380187A (en) Inventory data monitoring method and device, computer equipment and storage medium
WO2023245892A1 (en) Order processing method and system based on handheld terminals, computer device, and medium
CN111159213A (en) Data query method, device, system and storage medium
CN110765131A (en) Data compression method and device for goods source data, computer equipment and storage medium
CN114168624A (en) Data analysis method, computing device and storage medium
CN113935677A (en) Automatic warehouse entry and exit management method and system
CN112597162A (en) Data set acquisition method, system, device and storage medium
CN112116452A (en) Transaction processing method and device
CN112416648A (en) Data verification method and device
CN109902065A (en) Access distributed type assemblies external data method and device
CN111314440B (en) Ring detection method and system on graph structure data
CN115827452B (en) Data processing type test system, method, storage medium and equipment
CN111611245B (en) Method and system for processing data table

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
GR01 Patent grant
GR01 Patent grant