CN113220779A - Data processing method, device, storage medium and program product - Google Patents
Data processing method, device, storage medium and program product Download PDFInfo
- Publication number
- CN113220779A CN113220779A CN202110462322.8A CN202110462322A CN113220779A CN 113220779 A CN113220779 A CN 113220779A CN 202110462322 A CN202110462322 A CN 202110462322A CN 113220779 A CN113220779 A CN 113220779A
- Authority
- CN
- China
- Prior art keywords
- data
- auxiliary device
- database
- update data
- read
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 35
- 238000000034 method Methods 0.000 claims description 43
- 238000012545 processing Methods 0.000 claims description 23
- 238000004891 communication Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 22
- 230000005540 biological transmission Effects 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 8
- 238000004080 punching Methods 0.000 claims description 5
- 238000013519 translation Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000003993 interaction Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 15
- 230000001360 synchronised effect Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 8
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请提供的数据处理方法、设备、存储介质及程序产品,涉及多端交互技术,本申请的方案通过主设备将服务器发送的更新数据同步给各个辅助设备,使得各个终端设备中的数据能够保持一致,并且,在达到预设时刻后,主设备和辅助设备能够同时利用更新数据提供服务,从而使得多个终端设备能够基于相同的数据提供服务,避免多个终端设备相同时刻基于不同的数据对外提供服务的情况。
The data processing method, device, storage medium and program product provided by this application relate to multi-terminal interaction technology. The solution of this application synchronizes the update data sent by the server to each auxiliary device through the main device, so that the data in each terminal device can be kept consistent , and after reaching the preset time, the main device and the auxiliary device can use the updated data to provide services at the same time, so that multiple terminal devices can provide services based on the same data, and prevent multiple terminal devices from providing services based on different data at the same time. condition of the service.
Description
技术领域technical field
本申请涉及数据处理技术中的多端交互技术,尤其涉及一种数据处理方法、设备、存储介质及程序产品。The present application relates to multi-terminal interaction technology in data processing technology, and in particular, to a data processing method, device, storage medium and program product.
背景技术Background technique
目前,在很多应用场景中,会设置多个终端设备,各个终端设备可以同时向用户提供服务。Currently, in many application scenarios, multiple terminal devices are set up, and each terminal device can provide services to users at the same time.
其中,这些终端设备中应当设置同样的数据,进而能够基于相同的数据向用户提供服务。比如,在店铺内可以设置多台虚拟试衣的终端设备,这些终端设备中用于实现虚拟试衣的数据应当同步,从而可以向用户提供相同的试衣服务。Wherein, the same data should be set in these terminal devices, so that services can be provided to users based on the same data. For example, multiple terminal devices for virtual fitting can be set up in the store, and the data used to realize virtual fitting in these terminal devices should be synchronized, so that the same fitting service can be provided to users.
现有技术中,多台终端设备需要通过与服务器交互的方式获取数据,但是,在一些情况下,各个终端设备获取的数据可能不同步。比如,在网络不通畅的情况下,可能会产生获取的数据不同步的情况。In the prior art, multiple terminal devices need to acquire data by interacting with the server. However, in some cases, the data acquired by each terminal device may not be synchronized. For example, when the network is not smooth, the acquired data may be out of sync.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种数据处理方法、设备、存储介质及程序产品,以解决现有技术中用于提供相同服务的多端设备间的数据不同步的问题。The present application provides a data processing method, device, storage medium and program product to solve the problem of data asynchrony among multi-terminal devices used to provide the same service in the prior art.
根据本申请的第一方面,提供了一种基于多端设备的数据处理方法,所述方法应用于主设备,所述方法包括:According to a first aspect of the present application, a data processing method based on a multi-terminal device is provided, the method is applied to a master device, and the method includes:
接收服务器发送的更新数据,并根据所述更新数据更新所述主设备的第一数据库中的文件,其中,所述主设备中包括第一数据库和第二数据库;Receive the update data sent by the server, and update the files in the first database of the master device according to the update data, wherein the master device includes a first database and a second database;
将包括所述更新数据的文件发送给辅助设备,其中,所述辅助设备中包括第一数据库和第二数据库,所述文件被存储至所述辅助设备的第一数据库中,且所述辅助设备在预设时刻从所述辅助设备的第一数据库去读取所述文件中的更新数据;sending a file including the update data to an auxiliary device, wherein the auxiliary device includes a first database and a second database, the file is stored in the first database of the auxiliary device, and the auxiliary device Read the updated data in the file from the first database of the auxiliary device at a preset time;
在所述预设时刻,从所述主设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务;At the preset moment, read update data from the first database of the master device, and provide services according to the read update data;
其中,在所述预设时刻之前所述主设备、所述辅助设备分别从各自的第二数据库中读取数据,所述主设备、所述辅助设备用于基于相同的数据提供服务。Wherein, before the preset time, the main device and the auxiliary device respectively read data from their respective second databases, and the main device and the auxiliary device are used to provide services based on the same data.
根据本申请的第二方面,提供了一种基于多端设备的数据处理方法,所述方法应用于辅助设备,所述方法包括:According to a second aspect of the present application, a data processing method based on a multi-terminal device is provided, the method is applied to an auxiliary device, and the method includes:
接收主设备发送的包括更新数据的文件,并将所述文件存储在第一数据库中;所述辅助设备包括第一数据库和第二数据库;其中,包括更新数据的文件存储在所述主设备的第一数据库中,所述主设备在预设时刻从第一数据库读取所述文件中的更新数据;Receive the file including the update data sent by the main device, and store the file in the first database; the auxiliary device includes the first database and the second database; wherein, the file including the update data is stored in the main device. In the first database, the master device reads the updated data in the file from the first database at a preset time;
在所述预设时刻,从所述辅助设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务;At the preset moment, read update data from the first database of the auxiliary device, and provide services according to the read update data;
其中,在所述预设时刻之前所述主设备、所述辅助设备分别从各自的第二数据库中读取数据,所述主设备、所述辅助设备用于基于相同的数据提供服务。Wherein, before the preset time, the main device and the auxiliary device respectively read data from their respective second databases, and the main device and the auxiliary device are used to provide services based on the same data.
根据本申请的第三方面,提供了一种基于多端设备的数据处理方法,所述方法包括:According to a third aspect of the present application, a data processing method based on a multi-terminal device is provided, the method comprising:
主设备接收服务器发送的更新数据,并根据所述更新数据更新所述主设备的第一数据库中的文件,其中,所述主设备中包括第一数据库和第二数据库;The master device receives the update data sent by the server, and updates the file in the first database of the master device according to the update data, wherein the master device includes a first database and a second database;
主设备将包括所述更新数据的文件发送给至少一个辅助设备中的每一辅助设备;the primary device sends a file including the update data to each of the at least one secondary device;
辅助设备接收主设备发送的包括更新数据的文件,并将所述文件存储在第一数据库中;所述辅助设备包括第一数据库和第二数据库;The auxiliary device receives the file including the update data sent by the main device, and stores the file in the first database; the auxiliary device includes the first database and the second database;
在所述预设时刻,所述主设备从所述主设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务,所述辅助设备从所述辅助设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务;At the preset time, the main device reads the update data from the first database of the main device, and provides services according to the read update data, and the auxiliary device reads the update data from the first database of the auxiliary device. Read update data and provide services according to the read update data;
其中,在所述预设时刻之前所述主设备、所述辅助设备分别从各自的第二数据库中读取数据,所述主设备、所述辅助设备用于基于相同的数据提供服务。Wherein, before the preset time, the main device and the auxiliary device respectively read data from their respective second databases, and the main device and the auxiliary device are used to provide services based on the same data.
根据本申请的第四方面,提供了一种基于多端设备的数据处理装置,所述装置应用于主设备,所述装置包括:According to a fourth aspect of the present application, a data processing apparatus based on a multi-terminal device is provided, the apparatus is applied to a master device, and the apparatus includes:
接收单元,用于接收服务器发送的更新数据,并根据所述更新数据更新所述主设备的第一数据库中的文件,其中,所述主设备中包括第一数据库和第二数据库;a receiving unit, configured to receive update data sent by a server, and update a file in a first database of the master device according to the update data, wherein the master device includes a first database and a second database;
分发单元,用于将包括所述更新数据的文件发送给辅助设备,其中,所述辅助设备中包括第一数据库和第二数据库,所述文件被存储至所述辅助设备的第一数据库中,且所述辅助设备在预设时刻从所述辅助设备的第一数据库去读取所述文件中的更新数据;a distribution unit, configured to send the file including the update data to an auxiliary device, wherein the auxiliary device includes a first database and a second database, and the file is stored in the first database of the auxiliary device, and the auxiliary device reads the updated data in the file from the first database of the auxiliary device at a preset time;
更新单元,用于在所述预设时刻,从所述主设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务;an update unit, configured to read update data from the first database of the master device at the preset moment, and provide services according to the read update data;
其中,在所述预设时刻之前所述主设备、所述辅助设备分别从各自的第二数据库中读取数据,所述主设备、所述辅助设备用于基于相同的数据提供服务。Wherein, before the preset time, the main device and the auxiliary device respectively read data from their respective second databases, and the main device and the auxiliary device are used to provide services based on the same data.
根据本申请的第五方面,提供了一种基于多端设备的数据处理装置,所述装置应用于辅助设备,所述装置包括:According to a fifth aspect of the present application, a data processing apparatus based on a multi-terminal device is provided, the apparatus is applied to auxiliary equipment, and the apparatus includes:
接收单元,用于接收主设备发送的包括更新数据的文件,并将所述文件存储在第一数据库中;所述辅助设备包括第一数据库和第二数据库;其中,包括更新数据的文件存储在所述主设备的第一数据库中,所述主设备在预设时刻从第一数据库读取所述文件中的更新数据;The receiving unit is configured to receive the file including the update data sent by the main device, and store the file in the first database; the auxiliary device includes the first database and the second database; wherein, the file including the update data is stored in the In the first database of the master device, the master device reads the updated data in the file from the first database at a preset time;
更新单元,用于在所述预设时刻,从所述辅助设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务;an update unit, configured to read update data from the first database of the auxiliary device at the preset moment, and provide services according to the read update data;
其中,在所述预设时刻之前所述主设备、所述辅助设备分别从各自的第二数据库中读取数据,所述主设备、所述辅助设备用于基于相同的数据提供服务。Wherein, before the preset time, the main device and the auxiliary device respectively read data from their respective second databases, and the main device and the auxiliary device are used to provide services based on the same data.
根据本申请的第六方面,提供了一种电子设备,包括:According to a sixth aspect of the present application, an electronic device is provided, 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 executed by the at least one processor to enable the at least one processor to perform as described in the first aspect or the second aspect Data processing method based on multi-terminal equipment.
根据本申请的第七方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行如第一方面或第二方面所述的基于多端设备的数据处理方法。According to a seventh aspect of the present application, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method based on the first aspect or the second aspect. Data processing method for multi-terminal devices.
根据本申请的第八方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序,所述计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得电子设备执行第一方面或第二方面所述的方法。According to an eighth aspect of the present application, there is provided a computer program product, the computer program product comprising: a computer program, the computer program being stored in a readable storage medium, and at least one processor of an electronic device can download the computer program from the computer program. Reading the storage medium reads the computer program, and executing the computer program by the at least one processor causes the electronic device to perform the method of the first aspect or the second aspect.
本申请提供的数据处理方法、设备、存储介质及程序产品,通过主设备将服务器发送的更新数据同步给各个辅助设备,使得各个终端设备中的数据能够保持一致,并且,在达到预设时刻后,主设备和辅助设备能够同时利用更新数据提供服务,从而使得多个终端设备能够基于相同的数据提供服务,避免多个终端设备相同时刻基于不同的数据对外提供服务的情况。The data processing method, device, storage medium and program product provided by this application synchronize the update data sent by the server to each auxiliary device through the main device, so that the data in each terminal device can be kept consistent, and after reaching the preset time , the main device and the auxiliary device can use the updated data to provide services at the same time, so that multiple terminal devices can provide services based on the same data, avoiding the situation that multiple terminal devices provide services based on different data at the same time.
应当理解,本部分所描述的内容并非旨在标识本申请的实施例的关键或重要特征,也不用于限制本申请的范围。本申请的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or critical features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become readily understood from the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本申请的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present application. in:
图1为本申请一示例性实施例示出的应用场景图;FIG. 1 is an application scenario diagram shown in an exemplary embodiment of the present application;
图2为本申请一示例性实施例示出的基于多端设备的数据处理方法流程图;2 is a flowchart of a data processing method based on a multi-terminal device shown in an exemplary embodiment of the present application;
图3为本申请一示例性实施例示出的发送文件的示意图;3 is a schematic diagram of sending a file according to an exemplary embodiment of the present application;
图4为本申请一示例性实施例示出的数据库间的关系示意图;FIG. 4 is a schematic diagram of the relationship between databases shown in an exemplary embodiment of the present application;
图5为本申请另一示例性实施例示出的基于多端设备的数据处理方法流程图;5 is a flowchart of a data processing method based on a multi-terminal device shown in another exemplary embodiment of the present application;
图6为本申请一示例性实施例示出的基于多端设备的数据处理方法流程图;6 is a flowchart of a data processing method based on a multi-terminal device shown in an exemplary embodiment of the present application;
图7为本申请一示例性实施例示出的基于多端设备的数据处理方法流程图;7 is a flowchart of a data processing method based on a multi-terminal device shown in an exemplary embodiment of the present application;
图8为本申请一示例性实施例示出的基于多端设备的数据处理装置的结构图;FIG. 8 is a structural diagram of a data processing apparatus based on a multi-terminal device according to an exemplary embodiment of the present application;
图9为本申请另一示例性实施例示出的基于多端设备的数据处理装置的结构图;9 is a structural diagram of a data processing apparatus based on a multi-terminal device shown in another exemplary embodiment of the present application;
图10为本申请一示例性实施例示出的基于多端设备的数据处理装置的结构图;10 is a structural diagram of a data processing apparatus based on a multi-terminal device shown in an exemplary embodiment of the application;
图11是用来实现本申请实施例的方法的电子设备的框图。FIG. 11 is a block diagram of an electronic device used to implement the method of the embodiment of the present application.
具体实施方式Detailed ways
以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
图1为本申请一示例性实施例示出的应用场景图。FIG. 1 is an application scenario diagram shown in an exemplary embodiment of the present application.
如图1所示,在一些应用场景中,可能存在多个终端设备11向用户提供服务,比如,用户A可以操作其中的一台终端设备11,另一用户B可以操作另一台终端设备11。不同的终端设备11能够向用户提供相同的服务。因此,各个终端设备11中存储的数据也应当是同步的,进而能够向用户提供相同的服务。As shown in FIG. 1 , in some application scenarios, there may be multiple
其中,多台终端设备11可以从服务器11中获取数据,从而使得各个终端设备11中的数据同步。但是,在一些情况下,会导致终端设备11无法顺利从服务器获取最新数据的情况,比如,在网络状况不好的情况下,各个终端设备11分别从服务器11中获取数据时,可能存在部分终端设备11获取数据失败的情况,进而导致各个终端设备11中的数据不同步的问题。Wherein, a plurality of
为了解决上述技术问题,本申请提供的方案中,由多台终端设备中的主设备与服务器交互获取更新数据,并由主设备将包括更新数据的更新文件同步给其他终端设备,在预设时刻,主设备与其他各个终端设备同时使用更新数据对外提供服务,进而使得各个终端设备向用户提供服务的数据是相同的。In order to solve the above-mentioned technical problems, in the solution provided by the present application, the main device among the multiple terminal devices interacts with the server to obtain update data, and the main device synchronizes the update file including the update data to other terminal devices, at a preset time , the master device and other terminal devices simultaneously use the update data to provide services to the outside world, so that the data provided by each terminal device to provide services to users is the same.
图2为本申请一示例性实施例示出的基于多端设备的数据处理方法流程图。FIG. 2 is a flowchart of a data processing method based on a multi-terminal device according to an exemplary embodiment of the present application.
本申请提供的基于多端设备的数据处理方法应用于多端设备中的主设备。其中,多个终端设备中可以包括一台主设备,以及多台辅助设备。The data processing method based on the multi-terminal device provided by the present application is applied to the master device in the multi-terminal device. The multiple terminal devices may include one main device and multiple auxiliary devices.
如图2所示,本申请提供的基于多端设备的数据处理方法,包括:As shown in Figure 2, the data processing method based on multi-terminal equipment provided by this application includes:
步骤201,接收服务器发送的更新数据,并根据更新数据更新主设备的第一数据库中的文件,其中,主设备中包括第一数据库和第二数据库。Step 201: Receive the update data sent by the server, and update the files in the first database of the master device according to the update data, wherein the master device includes the first database and the second database.
其中,主设备可以与服务器通过网络连接,比如可以通过有线网络、无线网络连接,使得主设备可以接收到服务器发送的更新数据。The master device may be connected to the server through a network, for example, a wired network or a wireless network, so that the master device can receive the update data sent by the server.
具体的,可以由主设备向服务器发送用于获取数据的请求消息,使得服务器接收该消息后反馈更新数据。还可以由服务器主动向主设备下发更新数据。Specifically, the master device may send a request message for acquiring data to the server, so that the server feeds back the updated data after receiving the message. The server can also actively deliver update data to the master device.
进一步的,在主设备中设置有两个数据库,终端设备向外提供服务器时,可以从其中的一个数据库获取数据,并基于获取的数据提供服务。这两个数据库中的一个数据库用于对外提供数据,另一个数据库作为备份数据库,用于存储更新数据。在符合条件时,主设备从存储有更新数据的数据库中获取数据并基于获取的数据提供服务,即切换两个数据库的功能。Further, two databases are set in the main device, and when the terminal device provides a server to the outside, it can acquire data from one of the databases, and provide services based on the acquired data. One of the two databases is used to provide data to the outside world, and the other database is used as a backup database to store updated data. When the conditions are met, the master device acquires data from the database storing the updated data and provides services based on the acquired data, that is, the function of switching the two databases.
一种实施方式中,当前用于存储更新数据的数据库可以是第一数据库,电子设备可以将接收的更新数据存储到第一数据库中,具体可以使用接收的更新数据更新第一数据库中的文件。In one embodiment, the database currently used to store the update data may be the first database, and the electronic device may store the received update data in the first database, and specifically may use the received update data to update the files in the first database.
其中,第一数据库中可以存储有用于记录数据的文件,比如,该文件中包括多个字段,例如标识、颜色、款式等。主设备可以利用接收的更新数据更新该文件,从而得到更新文件。比如,更新数据中的一条数据包括:标识为2的服装包括标识21的上装、标识22的下装,则主设备可以在文件中添加标识为2的服装与标识21的上装、以及与标识22的下装的关联关系。Wherein, a file for recording data may be stored in the first database, for example, the file includes multiple fields, such as identification, color, style, and the like. The master device can update the file with the received update data, thereby obtaining an update file. For example, if a piece of data in the update data includes: the clothing marked 2 includes the tops with the 21 mark and the bottoms with the marks 22, then the main device can add the clothing marked 2, the tops with the marks 21, and the tops with the marks 22 in the file. The association relationship of the bottoms.
步骤202,将包括更新数据的文件发送给辅助设备,其中,辅助设备中包括第一数据库和第二数据库,文件被存储至辅助设备的第一数据库中,且辅助设备在预设时刻从辅助设备的第一数据库去读取文件中的更新数据。
图3为本申请一示例性实施例示出的发送文件的示意图。FIG. 3 is a schematic diagram of sending a file according to an exemplary embodiment of the present application.
如图3所示,主设备31从服务器32处获取了更新数据后,可以更新第一数据库中的文件,再将文件分发到各个辅助设备33中。从而使各个辅助设备也能够获取更新数据,使得主设备和各个辅助设备中存储的数据同步。As shown in FIG. 3 , after acquiring the update data from the
其中,在辅助设备中设置有两个数据库,终端设备向外提供服务器时,可以从其中的一个数据库获取数据,并基于获取的数据提供服务。这两个数据库中的一个数据库用于对外提供数据,另一个数据库作为备份数据库,用于存储包括更新数据的文件。在符合条件时,辅助设备从存储有上述文件的数据库中获取数据并基于获取的数据提供服务,即切换两个数据库的功能。Wherein, two databases are set in the auxiliary device, and when the terminal device provides a server to the outside, it can acquire data from one of the databases, and provide services based on the acquired data. One of the two databases is used to provide data externally, and the other database is used as a backup database to store files including updated data. When the conditions are met, the auxiliary device acquires data from the database storing the above-mentioned files and provides services based on the acquired data, that is, the function of switching the two databases.
每一辅助设备接收的包括更新数据的文件可以被存储至每一辅助设备的第一数据库中,从而在符合在预设时刻,辅助设备可以第二数据库切换至第一数据库去读取上述文件中的更新数据,并向外提供服务。The file including the update data received by each auxiliary device can be stored in the first database of each auxiliary device, so that at a preset time, the auxiliary device can switch from the second database to the first database to read the above-mentioned file. update data and provide services to the outside world.
实际应用时,主设备和辅助设备中都设置有两个数据库,其中一个数据库向外提供数据服务,另一个数据库用于存储更新数据。这两个数据库的功能可以根据实际情况进行切换,比如,达到预设时刻后,终端设备可以将存储有更新数据的数据库作为提供服务数据的数据库,并利用另一数据库存储更新数据。In practical applications, two databases are set in both the main device and the auxiliary device, one of which provides data services to the outside, and the other is used to store updated data. The functions of the two databases can be switched according to the actual situation. For example, after reaching the preset time, the terminal device can use the database storing the updated data as the database for providing service data, and use another database to store the updated data.
步骤203,在预设时刻,从主设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务。
其中,预设时刻之前,主设备从第二数据库中读取更新数据,达到预设时刻后,主设备从第一数据库中读取更新数据,从而根据更新数据向外提供服务。预设时刻之前,辅助设备也从其第二数据库中读取更新数据,达到预设时刻后,辅助设备从其第一数据库中读取更新数据,从而根据更新数据向外提供服务。Wherein, before the preset time, the master device reads the update data from the second database, and after reaching the preset time, the master device reads the update data from the first database, so as to provide services to the outside according to the update data. Before the preset time, the auxiliary device also reads the update data from its second database. After the preset time, the auxiliary device reads the update data from its first database, so as to provide services to the outside according to the update data.
具体的,主设备和辅助设备基于相同的数据向外提供相同的服务,从而使得用户在操作各个辅助设备或者主设备时,设备向用户提供的服务是相同的,从而提高用户体验。Specifically, the main device and the auxiliary device provide the same service based on the same data, so that when the user operates each auxiliary device or the main device, the device provides the same service to the user, thereby improving user experience.
进一步的,主设备在向外提供服务时,可以通过数据读取接口从数据库读取数据。在预设时刻前,主设备通过数据读取接口从第一数据库读取数据,达到预设时刻后,主设备可以将数据读取接口切换至第二数据库,从而读取更新数据,并基于更新数据对外提供服务。Further, when the master device provides services to the outside, it can read data from the database through the data read interface. Before the preset time, the master device reads data from the first database through the data read interface. After the preset time is reached, the master device can switch the data read interface to the second database, so as to read the updated data, and based on the update Data provides services to the outside world.
图4为本申请一示例性实施例示出的数据库间的关系示意图。FIG. 4 is a schematic diagram of a relationship between databases according to an exemplary embodiment of the present application.
如图4所示,存在数据库A和数据库B,当前可以将数据库A作为第一数据库411,将数据库B作为第二数据库411。利用第二数据库中的数据提供服务,利用第一数据库存储更新数据。As shown in FIG. 4 , there are database A and database B. Currently, database A can be used as the
达到第一预设时刻t1后,终端设备从数据库A中读取数据向外提供服务,并利用数据库B存储更新数据,也就是将数据库A作为第二数据库422,将数据库B作为第一数据库421。After reaching the first preset time t1, the terminal device reads data from database A to provide services to the outside world, and uses database B to store updated data, that is, database A is used as the
达到第二预设时刻t2后,终端设备可以再次从数据库B中读取数据提供服务,利用数据库A存储更新数据。也就是将数据库A作为第一数据库431,将数据库B作为第二数据库432。After reaching the second preset time t2, the terminal device can read data from the database B again to provide the service, and use the database A to store the updated data. That is, database A is used as the
通过这种方式,各个终端设备中的数据是同步的,且各个终端设备能够根据相同的数据向外提供服务。In this way, the data in each terminal device is synchronized, and each terminal device can provide services to the outside according to the same data.
本申请提供的基于多端设备的数据处理方法,方法应用于主设备,方法包括:接收服务器发送的更新数据,并根据所述更新数据更新所述主设备的第一数据库中的文件,其中,所述主设备中包括第一数据库和第二数据库;将包括所述更新数据的文件发送给辅助设备,其中,所述辅助设备中包括第一数据库和第二数据库,所述文件被存储至所述辅助设备的第一数据库中,且所述辅助设备在预设时刻从所述辅助设备的第一数据库去读取所述文件中的更新数据;在所述预设时刻,从所述主设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务;其中,在所述预设时刻之前所述主设备、所述辅助设备分别从各自的第二数据库中读取数据,所述主设备、所述辅助设备用于基于相同的数据提供服务。本申请提供的基于多端设备的数据处理方法,通过主设备将服务器发送的更新数据同步给各个辅助设备,使得各个终端设备中的数据能够保持一致,并且,在达到预设时刻后,主设备和辅助设备能够同时利用更新数据提供服务,从而使得多个终端设备能够基于相同的数据提供服务,避免多个终端设备相同时刻基于不同的数据对外提供服务的情况。The data processing method based on a multi-terminal device provided by this application is applied to a main device, and the method includes: receiving update data sent by a server, and updating a file in a first database of the main device according to the update data, wherein the The main device includes a first database and a second database; the file including the updated data is sent to an auxiliary device, wherein the auxiliary device includes a first database and a second database, and the file is stored in the auxiliary device. in the first database of the auxiliary device, and the auxiliary device reads the updated data in the file from the first database of the auxiliary device at a preset time; The first database reads the update data, and provides services according to the read update data; wherein, before the preset time, the main device and the auxiliary device respectively read data from their respective second databases, so The primary device and the secondary device are used to provide services based on the same data. The data processing method based on multi-terminal equipment provided by the present application synchronizes the update data sent by the server to each auxiliary equipment through the main equipment, so that the data in each terminal equipment can be kept consistent, and after reaching the preset time, the main equipment and the The auxiliary device can use the updated data to provide services at the same time, so that multiple terminal devices can provide services based on the same data, and avoid the situation that multiple terminal devices provide external services based on different data at the same time.
图5为本申请另一示例性实施例示出的基于多端设备的数据处理方法流程图。FIG. 5 is a flowchart of a data processing method based on a multi-terminal device according to another exemplary embodiment of the present application.
本申请提供的基于多端设备的数据处理方法应用于多端设备中的主设备。其中,多个终端设备中可以包括一台主设备,以及多台辅助设备。The data processing method based on the multi-terminal device provided by the present application is applied to the master device in the multi-terminal device. The multiple terminal devices may include one main device and multiple auxiliary devices.
如图5所示,本申请提供的基于多端设备的数据处理方法,包括:As shown in Figure 5, the data processing method based on multi-terminal equipment provided by this application includes:
步骤501,接收服务器发送的更新数据,并根据更新数据更新主设备的第一数据库中的文件,其中,主设备中包括第一数据库和第二数据库。Step 501: Receive the update data sent by the server, and update the files in the first database of the master device according to the update data, wherein the master device includes the first database and the second database.
步骤501与步骤201的执行原理、方式类似,不再赘述。The execution principle and manner of
步骤502,建立与辅助设备的通信连接。
其中,主设备接收服务器发送的更新数据后,主设备可以建立与各个辅助设备的通信连接,进而向各个辅助设备分发更新文件。Wherein, after the master device receives the update data sent by the server, the master device can establish a communication connection with each auxiliary device, and then distribute the update file to each auxiliary device.
具体的,主设备可以根据其与辅助设备的网络连接方式,建立与各个辅助设备的通信连接。Specifically, the main device can establish a communication connection with each auxiliary device according to the network connection mode between the main device and the auxiliary device.
一种实施方式中,若主设备与辅助设备之间的连接方式为基于互联网协议的连接方式,则主设备可以根据辅助设备的网络地址,建立与辅助设备的网络连接。In one embodiment, if the connection mode between the main device and the auxiliary device is an Internet protocol-based connection mode, the main device can establish a network connection with the auxiliary device according to the network address of the auxiliary device.
比如,主设备与每一辅助设备之间均是基于Ipv6(Internet Protocol Version6,互联网协议第6版)的方式连接,则主设备可以根据每一辅助设备的网络地址,建立与每一辅助设备的网络连接。进而可以通过主设备和辅助设备之间的网络连接,向辅助设备发送包括更新数据的文件。For example, if the connection between the main device and each auxiliary device is based on IPv6 (Internet Protocol Version 6, Internet Protocol Version 6), the main device can establish a connection with each auxiliary device according to the network address of each auxiliary device. Internet connection. In turn, the file including the updated data can be sent to the auxiliary device through the network connection between the primary device and the auxiliary device.
这种实施方式中,在主设备与辅助设备之间基于互联网协议连接时,主设备可以通过与辅助设备之间的网络连接,向辅助设备同步包括更新数据的文件,进而使各个设备中存储的数据保持一致。In this embodiment, when the main device and the auxiliary device are connected based on the Internet protocol, the main device can synchronize the files including the updated data with the auxiliary device through the network connection with the auxiliary device, so that the files stored in each device can be synchronized. Data remains consistent.
另一种实施方式中,若主设备与辅助设备之间的连接方式为局域网连接,则主设备可以广播用户数据包协议消息,探测局域网内的辅助设备。In another implementation manner, if the connection mode between the main device and the auxiliary device is a local area network connection, the main device may broadcast a user data packet protocol message to detect the auxiliary device in the local area network.
其中,辅助设备可以响应接收到的用户数据包协议消息,比如,可以向主设备发送用于响应用户数据包协议消息的信息。主设备接收到该信息后,可以建立与辅助设备之间的传输控制协议连接。The auxiliary device may respond to the received user data packet protocol message, for example, may send information for responding to the user data packet protocol message to the master device. After the master device receives the information, it can establish a transmission control protocol connection with the auxiliary device.
比如,主设备可以广播udp(User Datagram Protocol,用户数据包协议消息)消息,局域网内存在第一辅助设备、第二辅助设备,第一辅助设备和第二辅助设备可以分别接收udp消息,并向主设备分别发送第一消息、第二消息。主设备接收到第一消息、第二消息后,可以建立与第一辅助设备的第一tcp(Transmission Control Protocol,传输控制协议)连接,以及与第二辅助设备的第二tcp(Transmission Control Protocol,传输控制协议)连接。For example, the master device may broadcast a udp (User Datagram Protocol, User Datagram Protocol message) message, a first auxiliary device and a second auxiliary device exist in the local area network, and the first auxiliary device and the second auxiliary device may receive the udp message and send them to the local area network respectively. The master device sends the first message and the second message respectively. After receiving the first message and the second message, the master device can establish a first tcp (Transmission Control Protocol) connection with the first auxiliary device, and a second tcp (Transmission Control Protocol) connection with the second auxiliary device. Transmission Control Protocol) connection.
这种实施方式中,在主设备与辅助设备之间基于通过局域网连接时,主设备可以通过与辅助设备之间的tcp连接,向辅助设备同步包括更新数据的文件,进而使各个设备中存储的数据保持一致。In this embodiment, when the main device and the auxiliary device are connected through a local area network, the main device can synchronize the file including the updated data with the auxiliary device through the tcp connection with the auxiliary device, so as to make the files stored in each device Data remains consistent.
另一种实施方式中,若主设备与辅助设备之间的连接方式为基于网络地址转换的连接,则主设备可以基于用户数据包协议打孔建立与辅助设备的传输控制协议连接。In another embodiment, if the connection mode between the main device and the auxiliary device is a connection based on network address translation, the main device may establish a transmission control protocol connection with the auxiliary device based on user data packet protocol punching.
其中,若主设备与辅助设备之间的连接方式为nat(Network AddressTranslation,网络地址转换)连接,则主设备可以采用udp(User Datagram Protocol,用户数据包协议)打孔的方式,建立主设备与辅助设备之间的tcp连接。Among them, if the connection mode between the main device and the auxiliary device is a nat (Network AddressTranslation, network address translation) connection, the main device can use the udp (User Datagram Protocol, user data packet protocol) punching method to establish the connection between the main device and the auxiliary device. tcp connection between auxiliary devices.
这种实施方式中,在主设备与辅助设备之间基于nat连接时,主设备可以通过与辅助设备之间的tcp连接,向辅助设备同步包括更新数据的文件,进而使各个设备中存储的数据保持一致。In this embodiment, when the main device and the auxiliary device are connected based on nat, the main device can synchronize the file including the updated data to the auxiliary device through the tcp connection with the auxiliary device, so as to make the data stored in each device be consistent.
步骤503,基于与辅助设备的通信连接,将包括更新数据的文件发送给辅助设备。
具体的,主设备建立与辅助设备之间的通信连接后,主设备可以将包括更新数据的文件发送给辅助设备,进而使得辅助设备中也存储有更新数据。Specifically, after the main device establishes the communication connection with the auxiliary device, the main device can send the file including the update data to the auxiliary device, so that the auxiliary device also stores the update data.
通过这种实施方式,能够通过主设备向辅助设备同步包括更新数据的文件,进而同步各个设备中的数据,使得各个设备中的数据保持一致。Through this implementation, the file including the updated data can be synchronized to the auxiliary device through the primary device, thereby synchronizing the data in each device, so that the data in each device is consistent.
进一步的,主设备可以在同一时刻将包括更新数据的文件发送给辅助设备。比如,若主设备与辅助设备之间的网络稳定,则主设备可以在同一时刻向各个辅助设备发送文件。Further, the primary device may send the file including the updated data to the secondary device at the same time. For example, if the network between the main device and the auxiliary device is stable, the main device can send files to each auxiliary device at the same time.
在另一种实施方式中,主设备还可以依据辅助设备的优先级信息,将更新数据的文件按照优先级排序依次发送给辅助设备。依次向辅助设备发送文件,能够使得单次发送文件的稳定性更高,避免数据丢失的情况。比如,在网络不太稳定的情况,主设备可以依次向辅助设备发送文件。In another implementation manner, the main device may further send the files of the updated data to the auxiliary device in order of priority according to the priority information of the auxiliary device. Sending files to auxiliary devices in sequence can make the stability of sending files at a time higher and avoid data loss. For example, in a situation where the network is not stable, the primary device can send files to the secondary device in turn.
通过这种实施方式,能够根据网络状况将文件同步到各个辅助设备中,且避免数据遗漏。Through this implementation, files can be synchronized to various auxiliary devices according to network conditions, and data omission can be avoided.
其中,优先级信息为以下的任意一种:The priority information is any one of the following:
辅助设备的标识、辅助设备的总存储空间、辅助设备的剩余存储空间、辅助设备的硬件信息。辅助设备的硬件信息例如可以是影响其性能的指标,比如可以包括主频、CPU的位数、CPU的缓存指令集、CPU核心数和IPC(每周期指令数)。The identifier of the auxiliary device, the total storage space of the auxiliary device, the remaining storage space of the auxiliary device, and the hardware information of the auxiliary device. The hardware information of the auxiliary device may be, for example, an index that affects its performance, such as the main frequency, the number of bits of the CPU, the cached instruction set of the CPU, the number of CPU cores, and the IPC (number of instructions per cycle).
具体的,可以根据需求设置相应的优先级信息,进而根据需求确定各辅助设备的优先级。Specifically, the corresponding priority information can be set according to the requirements, and then the priority of each auxiliary device can be determined according to the requirements.
进一步的,在一种可选的实施方式中,主设备还可以接收服务器发送的指示信息,该指示信息用于指示预设时刻。这种方式中,可以由服务器通知主设备预设时刻,从而使主设备基于该预设时刻读取更新数据。Further, in an optional implementation manner, the master device may also receive indication information sent by the server, where the indication information is used to indicate a preset time. In this manner, the server may notify the master device of the preset time, so that the master device reads the update data based on the preset time.
实际应用时,主设备同步给各个辅助设备的文件中,可以携带该指示信息,进而向各个辅助设备同步预设时刻。另外,主设备还可以向辅助设备转发指示信息,进而向各个辅助设备同步预设时刻。In practical application, the indication information can be carried in the file synchronized by the main device to each auxiliary device, and then the preset time can be synchronized to each auxiliary device. In addition, the master device may also forward the indication information to the auxiliary device, and then synchronize the preset time to each auxiliary device.
这种实施方式,可以由主设备将预设时刻这一信息同步给各个辅助设备,使得各个辅助设备可以和主设备同时读取更新数据,使得主设备和辅助设备能够基于相同的数据提供服务。In this embodiment, the master device can synchronize the preset time information to each auxiliary device, so that each auxiliary device and the master device can read updated data at the same time, so that the master device and the auxiliary device can provide services based on the same data.
步骤504,在预设时刻,将数据读取接口从主设备的第二数据库切换至主设备的第一数据库,根据数据读取接口从主设备的第一数据库中读取数据。Step 504 , at a preset moment, switch the data reading interface from the second database of the master device to the first database of the master device, and read data from the first database of the master device according to the data reading interface.
其中,主设备中设置有数据读取接口,主设备可以通过数据读取接口从数据库中读取数据,进而提供服务。The main device is provided with a data read interface, and the main device can read data from the database through the data read interface to provide services.
具体的,可以在预设时刻时,主设备可以将数据读取接口切换至存储有更新数据的第一数据库,进而可以利用数据读取接口从主设备的第一数据库中读取数据。Specifically, at a preset time, the master device can switch the data reading interface to the first database storing the updated data, and then can use the data reading interface to read data from the first database of the master device.
通过这种实施方式,主设备可以在预设时刻,通过数据读取接口读取更新数据,使得主设备和辅助设备能够同步利用更新数据提供服务。Through this implementation, the master device can read the update data through the data reading interface at a preset time, so that the master device and the auxiliary device can synchronously use the update data to provide services.
步骤505,响应用户的操作指令,基于数据读取接口从主设备的第一数据库中读取目标数据;根据目标数据确定并显示用于响应操作指令的信息。
进一步的,用户可以操作主设备,进而向主设备发送操作指令。主设备可以响应该操作指令,并利用数据读取接口从主设备的第一数据库中读取目标数据,进而从更新数据中读取目标数据。Further, the user can operate the main device, and then send an operation instruction to the main device. The master device can respond to the operation instruction and use the data reading interface to read the target data from the first database of the master device, and then read the target data from the update data.
实际应用时,主设备可以根据目标数据确定并显示用于响应操作指令的信息。主设备获取目标数据后,可以确定向用户展示的信息,进而向用户反馈信息。In practical application, the master device can determine and display the information for responding to the operation command according to the target data. After acquiring the target data, the master device can determine the information displayed to the user, and then feed back information to the user.
比如,用户点击了套装1,主设备可以从第一数据库中读取与套装1关联的上装数据和下装数据,进而使得主设备可以根据上装数据和下装数据确定展示信息,并在显示屏中显示相应的信息。For example, when the user clicks on the suit 1, the main device can read the upper and lower data associated with the suit 1 from the first database, so that the main device can determine the display information according to the upper and lower data, and display the information on the display screen. corresponding information is displayed.
通过这种实施方式,主设备能够基于更新数据向用户提供服务,从而实现服务的更新。Through this implementation, the master device can provide the user with the service based on the update data, so as to realize the update of the service.
图6为本申请一示例性实施例示出的基于多端设备的数据处理方法流程图。FIG. 6 is a flowchart of a data processing method based on a multi-terminal device according to an exemplary embodiment of the present application.
本申请提供的基于多端设备的数据处理方法应用于多端设备中的任一台辅助设备。其中,多个终端设备中可以包括一台主设备,以及多台辅助设备。The data processing method based on a multi-terminal device provided in this application is applied to any auxiliary device in the multi-terminal device. The multiple terminal devices may include one main device and multiple auxiliary devices.
如图6所示,本申请提供的基于多端设备的数据处理方法,包括:As shown in Figure 6, the data processing method based on multi-terminal equipment provided by this application includes:
步骤601,接收主设备发送的包括更新数据的文件,并将文件存储在第一数据库中;辅助设备包括第一数据库和第二数据库;其中,包括更新数据的文件存储在主设备的第一数据库中,主设备在预设时刻从第一数据库读取文件中的更新数据。Step 601: Receive the file including the update data sent by the main device, and store the file in the first database; the auxiliary device includes the first database and the second database; wherein, the file including the update data is stored in the first database of the main device , the master device reads the updated data in the file from the first database at a preset time.
其中,主设备可以基于上述任一种实施例的方法获取更新数据,并根据更新得到文件。Wherein, the master device may acquire update data based on the method of any of the foregoing embodiments, and obtain a file according to the update.
具体的,主设备可以将更新文件同步给辅助设备,以使辅助设备接收到主设备发送的包括更新数据的文件,并将文件存储在第一数据库中。Specifically, the main device may synchronize the update file to the auxiliary device, so that the auxiliary device receives the file including the update data sent by the main device, and stores the file in the first database.
其中,在所述预设时刻,主设备从主设备的第二数据库切换至主设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务。Wherein, at the preset time, the master device switches from the second database of the master device to the first database of the master device to read update data, and provides services according to the read update data.
步骤602,在预设时刻,从辅助设备的第一数据库读取更新数据,并根据读取的更新数据提供服务。
具体的,辅助设备中设置有两个数据库,终端设备向外提供服务器时,可以从其中的一个数据库获取数据,并基于获取的数据提供服务。这两个数据库中的一个数据库用于对外提供数据,另一个数据库作为备份数据库,用于存储包括更新数据的文件。在符合条件时,辅助设备从存储有上述文件的数据库中获取数据并基于获取的数据提供服务,即切换两个数据库的功能。Specifically, two databases are set in the auxiliary device, and when the terminal device provides a server to the outside, it can acquire data from one of the databases, and provide services based on the acquired data. One of the two databases is used to provide data externally, and the other database is used as a backup database to store files including updated data. When the conditions are met, the auxiliary device acquires data from the database storing the above-mentioned files and provides services based on the acquired data, that is, the function of switching the two databases.
具体可以在预设时刻,从辅助设备的第二数据库切换至辅助设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务。Specifically, it is possible to switch from the second database of the auxiliary device to the first database of the auxiliary device at a preset time to read updated data, and provide services according to the read updated data.
这种实施方式中,可以保持主设备与各个辅助设备之间的数据同步,并在同一时刻,主设备与辅助设备能够都基于更新后的数据提供相同的服务。In this embodiment, data synchronization between the main device and each auxiliary device can be maintained, and at the same time, the main device and the auxiliary device can both provide the same service based on the updated data.
其中,一种可选的实施方式中,辅助设备可以使用接收的文件覆盖辅助设备的第一数据库中原有的文件。从而提高数据同步速度。Wherein, in an optional implementation manner, the auxiliary device may use the received file to overwrite the original file in the first database of the auxiliary device. Thereby increasing the data synchronization speed.
具体的,从辅助设备的第一数据库读取更新数据,包括:Specifically, reading the update data from the first database of the auxiliary device includes:
将数据读取接口从辅助设备的第二数据库切换至辅助设备的第一数据库,根据数据读取接口从辅助设备的第一数据库中读取数据。The data reading interface is switched from the second database of the auxiliary device to the first database of the auxiliary device, and data is read from the first database of the auxiliary device according to the data reading interface.
辅助设备中设置有数据读取接口,辅助设备可以通过数据读取接口从数据库中读取数据,进而提供服务。The auxiliary device is provided with a data reading interface, and the auxiliary device can read data from the database through the data reading interface to provide services.
具体的,可以在预设时刻时,辅助设备可以将数据读取接口切换至存储有更新数据的第一数据库,进而可以利用数据读取接口从辅助设备的第一数据库中读取数据。Specifically, at a preset time, the auxiliary device can switch the data reading interface to the first database storing the updated data, and then can use the data reading interface to read data from the first database of the auxiliary device.
在一种可选的实施方式中,用户可以操作辅助设备,进而向辅助设备发送操作指令。辅助设备可以响应该操作指令,并利用数据读取接口从辅助设备的第一数据库中读取目标数据,进而从更新数据中读取目标数据。In an optional implementation manner, the user may operate the auxiliary device, and then send an operation instruction to the auxiliary device. The auxiliary device can respond to the operation instruction and use the data reading interface to read the target data from the first database of the auxiliary device, and then read the target data from the update data.
实际应用时,辅助设备可以根据目标数据确定并显示用于响应操作指令的信息。辅助设备获取目标数据后,可以确定向用户展示的信息,进而向用户反馈信息。In practical application, the auxiliary device can determine and display the information for responding to the operation command according to the target data. After the auxiliary device acquires the target data, it can determine the information displayed to the user, and then feed back information to the user.
比如,用户点击了套装1,辅助设备可以从第一数据库中读取与套装1关联的上装数据和下装数据,进而使得辅助设备可以根据上装数据和下装数据确定展示信息,并在显示屏中显示相应的信息。For example, when the user clicks on the suit 1, the auxiliary device can read the top and bottom data associated with the suit 1 from the first database, so that the auxiliary device can determine the display information according to the top and bottom data, and display the information on the display screen. corresponding information is displayed.
通过这种实施方式,辅助设备能够基于更新数据向用户提供服务,从而实现服务的更新。Through this implementation, the auxiliary device can provide the user with the service based on the update data, so as to realize the update of the service.
图7为本申请一示例性实施例示出的基于多端设备的数据处理方法流程图。FIG. 7 is a flowchart of a data processing method based on a multi-terminal device according to an exemplary embodiment of the present application.
如图7所示,本申请提供的基于多端设备的数据处理方法,包括:As shown in Figure 7, the data processing method based on multi-terminal equipment provided by this application includes:
步骤701,主设备接收服务器发送的更新数据;Step 701, the master device receives the update data sent by the server;
步骤702,主设备根据更新数据更新主设备的第一数据库中的文件,其中,主设备中包括第一数据库和第二数据库;Step 702, the master device updates the files in the first database of the master device according to the update data, wherein the master device includes the first database and the second database;
步骤703,主设备将包括更新数据的文件发送给至少一个辅助设备中的每一辅助设备。Step 703, the primary device sends the file including the update data to each of the at least one secondary device.
步骤704,辅助设备接收主设备发送的包括更新数据的文件,并将文件存储在第一数据库中;辅助设备包括第一数据库和第二数据库。Step 704, the auxiliary device receives the file including the update data sent by the main device, and stores the file in the first database; the auxiliary device includes the first database and the second database.
步骤705,在预设时刻,主设备从主设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务,辅助设备从辅助设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务。Step 705, at a preset moment, the main device reads the update data from the first database of the main device, and provides services according to the read update data, and the auxiliary device reads the update data from the first database of the auxiliary device, and provides services according to the read update data. Read the updated data provided by the service.
其中,在所述预设时刻之前所述主设备、所述辅助设备分别从各自的第二数据库中读取数据,主设备、辅助设备用于基于相同的数据提供服务。Wherein, before the preset time, the main device and the auxiliary device respectively read data from their respective second databases, and the main device and the auxiliary device are used to provide services based on the same data.
图8为本申请一示例性实施例示出的基于多端设备的数据处理装置的结构图。FIG. 8 is a structural diagram of a data processing apparatus based on a multi-terminal device according to an exemplary embodiment of the present application.
如图8所示,本申请提供的基于多端设备的数据处理装置800,应用于主设备,所述装置800包括:As shown in FIG. 8 , a
接收单元810,用于接收服务器发送的更新数据,并根据所述更新数据更新所述主设备的第一数据库中的文件,其中,所述主设备中包括第一数据库和第二数据库;A receiving
分发单元820,用于将包括所述更新数据的文件发送给辅助设备,其中,所述辅助设备中包括第一数据库和第二数据库,所述文件被存储至所述辅助设备的第一数据库中,且所述辅助设备在预设时刻从所述辅助设备的第一数据库去读取所述文件中的更新数据;A
更新单元830,用于在所述预设时刻,从所述主设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务;an
其中,在所述预设时刻之前所述主设备、所述辅助设备分别从各自的第二数据库中读取数据,所述主设备、所述辅助设备用于基于相同的数据提供服务。Wherein, before the preset time, the main device and the auxiliary device respectively read data from their respective second databases, and the main device and the auxiliary device are used to provide services based on the same data.
本申请提供的基于多端设备的数据处理装置与图2所示实施例类似,不再赘述。The data processing apparatus based on a multi-terminal device provided by the present application is similar to the embodiment shown in FIG. 2 , and details are not repeated here.
图9为本申请另一示例性实施例示出的基于多端设备的数据处理装置的结构图。FIG. 9 is a structural diagram of a data processing apparatus based on a multi-terminal device according to another exemplary embodiment of the present application.
如图9所示,本申请提供的基于多端设备的数据处理装置900,应用于主设备,所述装置900中的接收单元910与图8中的接收单元810相似,分发单元920与图8中的分发单元820相似,更新单元930与图8中的更新单元830相似。As shown in FIG. 9 , the multi-terminal device-based
在本申请提供的基于多端设备的数据处理装置900中,分发单元920包括:In the multi-terminal device-based
连接模块921,用于建立与所述辅助设备的通信连接;a
发送模块922,用于基于与所述辅助设备的通信连接,将包括所述更新数据的文件发送给所述辅助设备。The sending
在一种可选的实施方式中,若主设备与辅助设备之间的连接方式为基于互联网协议的连接方式,则所述连接模块921具体用于:In an optional implementation manner, if the connection mode between the primary device and the auxiliary device is an internet protocol-based connection mode, the
根据所述辅助设备的网络地址,建立与所述辅助设备的网络连接。A network connection to the auxiliary device is established based on the network address of the auxiliary device.
在一种可选的实施方式中,若主设备与辅助设备之间的连接方式为局域网连接,则所述连接模块921具体用于:In an optional implementation manner, if the connection mode between the main device and the auxiliary device is a local area network connection, the
广播用户数据包协议消息;Broadcast user data packet protocol messages;
根据接收的用于响应所述用户数据包协议消息的信息,建立与辅助设备之间的传输控制协议连接。Based on the information received in response to the user data packet protocol message, a transmission control protocol connection with the auxiliary device is established.
在一种可选的实施方式中,若主设备与辅助设备之间的连接方式为基于网络地址转换的连接,则所述连接模块921具体用于:In an optional implementation manner, if the connection mode between the primary device and the auxiliary device is a network address translation-based connection, the
基于用户数据包协议打孔建立与所述辅助设备的传输控制协议连接。Establish a transmission control protocol connection with the auxiliary device based on user data packet protocol punching.
在一种可选的实施方式中,发送模块922具体用于:In an optional implementation manner, the sending
在同一时刻将包括所述更新数据的文件发送给所述辅助设备;sending a file including the updated data to the auxiliary device at the same time;
或者,依据辅助设备的优先级信息,将所述更新数据的文件按照优先级排序依次发送给所述辅助设备。Or, according to the priority information of the auxiliary device, the files of the update data are sequentially sent to the auxiliary device according to the priority order.
在一种可选的实施方式中,所述接收单元910在将包括所述更新数据的文件发送给至少一个辅助设备中的每一辅助设备之前,还用于:In an optional implementation manner, before sending the file including the update data to each auxiliary device in the at least one auxiliary device, the receiving
接收所述服务器发送的指示信息,其中,所述指示信息用于指示所述预设时刻。The indication information sent by the server is received, wherein the indication information is used to indicate the preset time.
在一种可选的实施方式中,所述更新数据的文件中携带有所述指示信息,或者,所述装置还包括信息指示单元940,用于:向所述辅助设备发送所述指示信息。In an optional implementation manner, the update data file carries the indication information, or the apparatus further includes an
在一种可选的实施方式中,更新单元930包括切换模块931,用于:In an optional implementation manner, the updating
将数据读取接口从所述主设备的第二数据库切换至所述主设备的第一数据库,根据所述数据读取接口从主设备的第一数据库中读取数据。The data reading interface is switched from the second database of the master device to the first database of the master device, and data is read from the first database of the master device according to the data reading interface.
在一种可选的实施方式中,更新单元930包括服务模块932,用于:In an optional embodiment, the
响应用户的操作指令,基于所述数据读取接口从主设备的第一数据库中读取目标数据;In response to the user's operation instruction, read the target data from the first database of the master device based on the data reading interface;
根据所述目标数据确定并显示用于响应所述操作指令的信息。Information for responding to the operation instruction is determined and displayed according to the target data.
图10为本申请一示例性实施例示出的基于多端设备的数据处理装置的结构图。FIG. 10 is a structural diagram of a data processing apparatus based on a multi-terminal device according to an exemplary embodiment of the present application.
如图10所示,本申请提供的基于多端设备的数据处理装置1000,应用于辅助设备,所述装置1000包括:As shown in FIG. 10 , a
接收单元1010,用于接收主设备发送的包括更新数据的文件,并将所述文件存储在第一数据库中;所述辅助设备包括第一数据库和第二数据库;其中,包括更新数据的文件存储在所述主设备的第一数据库中,所述主设备在预设时刻从第一数据库读取所述文件中的更新数据;The receiving unit 1010 is configured to receive the file including the update data sent by the main device, and store the file in the first database; the auxiliary device includes the first database and the second database; wherein, the file including the update data is stored In the first database of the master device, the master device reads the updated data in the file from the first database at a preset time;
更新单元1020,用于在所述预设时刻,从所述辅助设备的第一数据库去读取更新数据,并根据读取的更新数据提供服务;an
其中,在所述预设时刻之前所述主设备、所述辅助设备分别从各自的第二数据库中读取数据,所述主设备、所述辅助设备用于基于相同的数据提供服务。Wherein, before the preset time, the main device and the auxiliary device respectively read data from their respective second databases, and the main device and the auxiliary device are used to provide services based on the same data.
在一种可选的实施方式中,所述接收单元1010具体用于:In an optional implementation manner, the receiving unit 1010 is specifically configured to:
使用所述文件覆盖所述辅助设备的第一数据库中原有的文件。Using the file to overwrite the original file in the first database of the auxiliary device.
在一种可选的实施方式中,所述更新单元1020具体用于:In an optional implementation manner, the
将数据读取接口从所述辅助设备的第二数据库切换至所述辅助设备的第一数据库,根据所述数据读取接口从辅助设备的第一数据库中读取数据。The data reading interface is switched from the second database of the auxiliary device to the first database of the auxiliary device, and data is read from the first database of the auxiliary device according to the data reading interface.
本申请提供一种数据处理方法、设备、存储介质及程序产品,应用于数据处理技术中的多端交互技术,以解决现有技术中用于提供相同服务的多端设备间的数据不同步的问题。The present application provides a data processing method, device, storage medium and program product, which are applied to multi-terminal interaction technology in data processing technology to solve the problem of data asynchrony between multi-terminal devices used to provide the same service in the prior art.
根据本申请的实施例,本申请还提供了一种电子设备和一种可读存储介质。According to the embodiments of the present application, the present application further provides an electronic device and a readable storage medium.
根据本申请的实施例,本申请还提供了一种计算机程序产品,计算机程序产品包括:计算机程序,计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从可读存储介质读取计算机程序,至少一个处理器执行计算机程序使得电子设备执行上述任一实施例提供的方案。According to an embodiment of the present application, the present application further provides a computer program product, the computer program product includes: a computer program, the computer program is stored in a readable storage medium, and at least one processor of the electronic device can read from the readable storage medium A computer program is taken, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the foregoing embodiments.
图11示出了可以用来实施本申请的实施例的示例电子设备1100的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。11 shows a schematic block diagram of an example
如图11所示,电子设备1100包括计算单元1101,其可以根据存储在只读存储器(ROM)1102中的计算机程序或者从存储单元1108加载到随机访问存储器(RAM)1103中的计算机程序,来执行各种适当的动作和处理。在RAM 1103中,还可存储设备1100操作所需的各种程序和数据。计算单元1101、ROM 1102以及RAM 1103通过总线1104彼此相连。输入/输出(I/O)接口1105也连接至总线1104。As shown in FIG. 11 , the
设备1100中的多个部件连接至I/O接口1105,包括:输入单元1106,例如键盘、鼠标等;输出单元1107,例如各种类型的显示器、扬声器等;存储单元1108,例如磁盘、光盘等;以及通信单元1109,例如网卡、调制解调器、无线通信收发机等。通信单元1109允许设备1100通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the
计算单元1101可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元1101的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元1101执行上文所描述的各个方法和处理,例如基于多端设备的数据处理方法。例如,在一些实施例中,基于多端设备的数据处理方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元1108。在一些实施例中,计算机程序的部分或者全部可以经由ROM 1102和/或通信单元1109而被载入和/或安装到设备1100上。当计算机程序加载到RAM 1103并由计算单元1101执行时,可以执行上文描述的基于多端设备的数据处理方法的一个或多个步骤。备选地,在其他实施例中,计算单元1101可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行基于多端设备的数据处理方法。
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
用于实施本申请的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.
在本申请的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this application, a machine-readable medium may be a tangible medium that may contain or store the program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务("Virtual Private Server",或简称"VPS")中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and VPS service ("Virtual Private Server", or "VPS" for short). , there are the defects of difficult management and weak business expansion. The server can also be a server of a distributed system, or a server combined with a blockchain.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present application can be performed in parallel, sequentially or in different orders, and as long as the desired results of the technical solutions disclosed in the present application can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims (32)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110462322.8A CN113220779A (en) | 2021-04-27 | 2021-04-27 | Data processing method, device, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110462322.8A CN113220779A (en) | 2021-04-27 | 2021-04-27 | Data processing method, device, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113220779A true CN113220779A (en) | 2021-08-06 |
Family
ID=77089196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110462322.8A Pending CN113220779A (en) | 2021-04-27 | 2021-04-27 | Data processing method, device, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113220779A (en) |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1818902A (en) * | 2005-01-31 | 2006-08-16 | 捷讯研究有限公司 | Synchronizing server and device data using device data schema |
EP2741217A1 (en) * | 2012-12-04 | 2014-06-11 | Thomson Licensing | Database synchronization |
US20170293666A1 (en) * | 2016-04-08 | 2017-10-12 | Bank Of America Corporation | Big data based predictive graph generation system |
CN107480309A (en) * | 2017-09-28 | 2017-12-15 | 阿里巴巴集团控股有限公司 | Database access strategies update method, device, server and computing device |
CN107682255A (en) * | 2017-11-17 | 2018-02-09 | 腾讯科技(深圳)有限公司 | Method for message transmission, device and storage medium |
US20180341560A1 (en) * | 2017-05-23 | 2018-11-29 | International Business Machines Corporation | Service outage time reduction for a planned event in a system |
CN109597724A (en) * | 2018-09-18 | 2019-04-09 | 北京微播视界科技有限公司 | Service stability measurement method, device, computer equipment and storage medium |
CN110895498A (en) * | 2018-09-13 | 2020-03-20 | 深圳市蓝灯鱼智能科技有限公司 | Data storage method and device |
CN110955647A (en) * | 2019-12-04 | 2020-04-03 | 世纪龙信息网络有限责任公司 | Database assistance method, database assistance device, computer equipment and storage medium |
CN111144926A (en) * | 2019-11-27 | 2020-05-12 | 泰康保险集团股份有限公司 | Service request processing method, device, system, electronic equipment and readable medium |
CN111240904A (en) * | 2020-01-17 | 2020-06-05 | 北京达佳互联信息技术有限公司 | Database backup method and device, electronic equipment and storage medium |
CN111259022A (en) * | 2020-01-13 | 2020-06-09 | 京东方科技集团股份有限公司 | Information synchronization method, synchronization system, computer equipment and medium |
CN111339200A (en) * | 2020-02-28 | 2020-06-26 | 中国平安人寿保险股份有限公司 | Data verification method and data verification system based on database synchronization |
CN111367922A (en) * | 2020-02-25 | 2020-07-03 | 香港乐蜜有限公司 | A data update method and related equipment |
CN111506649A (en) * | 2020-04-10 | 2020-08-07 | 深圳前海微众银行股份有限公司 | Transaction data disaster tolerance switching method and device, computing device and storage medium |
CN111723024A (en) * | 2019-03-18 | 2020-09-29 | 阿里巴巴集团控股有限公司 | Data processing method, device and system, client server and storage server |
CN112685486A (en) * | 2021-01-05 | 2021-04-20 | 腾讯科技(深圳)有限公司 | Data management method and device for database cluster, electronic equipment and storage medium |
-
2021
- 2021-04-27 CN CN202110462322.8A patent/CN113220779A/en active Pending
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1818902A (en) * | 2005-01-31 | 2006-08-16 | 捷讯研究有限公司 | Synchronizing server and device data using device data schema |
EP2741217A1 (en) * | 2012-12-04 | 2014-06-11 | Thomson Licensing | Database synchronization |
US20170293666A1 (en) * | 2016-04-08 | 2017-10-12 | Bank Of America Corporation | Big data based predictive graph generation system |
US20180341560A1 (en) * | 2017-05-23 | 2018-11-29 | International Business Machines Corporation | Service outage time reduction for a planned event in a system |
CN107480309A (en) * | 2017-09-28 | 2017-12-15 | 阿里巴巴集团控股有限公司 | Database access strategies update method, device, server and computing device |
CN107682255A (en) * | 2017-11-17 | 2018-02-09 | 腾讯科技(深圳)有限公司 | Method for message transmission, device and storage medium |
CN110895498A (en) * | 2018-09-13 | 2020-03-20 | 深圳市蓝灯鱼智能科技有限公司 | Data storage method and device |
CN109597724A (en) * | 2018-09-18 | 2019-04-09 | 北京微播视界科技有限公司 | Service stability measurement method, device, computer equipment and storage medium |
CN111723024A (en) * | 2019-03-18 | 2020-09-29 | 阿里巴巴集团控股有限公司 | Data processing method, device and system, client server and storage server |
CN111144926A (en) * | 2019-11-27 | 2020-05-12 | 泰康保险集团股份有限公司 | Service request processing method, device, system, electronic equipment and readable medium |
CN110955647A (en) * | 2019-12-04 | 2020-04-03 | 世纪龙信息网络有限责任公司 | Database assistance method, database assistance device, computer equipment and storage medium |
CN111259022A (en) * | 2020-01-13 | 2020-06-09 | 京东方科技集团股份有限公司 | Information synchronization method, synchronization system, computer equipment and medium |
CN111240904A (en) * | 2020-01-17 | 2020-06-05 | 北京达佳互联信息技术有限公司 | Database backup method and device, electronic equipment and storage medium |
CN111367922A (en) * | 2020-02-25 | 2020-07-03 | 香港乐蜜有限公司 | A data update method and related equipment |
CN111339200A (en) * | 2020-02-28 | 2020-06-26 | 中国平安人寿保险股份有限公司 | Data verification method and data verification system based on database synchronization |
CN111506649A (en) * | 2020-04-10 | 2020-08-07 | 深圳前海微众银行股份有限公司 | Transaction data disaster tolerance switching method and device, computing device and storage medium |
CN112685486A (en) * | 2021-01-05 | 2021-04-20 | 腾讯科技(深圳)有限公司 | Data management method and device for database cluster, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
肖斌斌;徐雨明;: "基于双重验证的抗重放攻击方案", 计算机工程, no. 05, pages 115 - 121 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10320886B2 (en) | Image display method and apparatus | |
CN112202746B (en) | RPC member information acquisition method, device, electronic equipment and storage medium | |
CN114089974B (en) | Cloud code development system, method, device, equipment and storage medium | |
EP4521242A1 (en) | Method and apparatus for accessing virtual machine, device and storage medium | |
CN109413118B (en) | Method, device, storage medium and program product for realizing session synchronization | |
CN114422572B (en) | Cloud mobile phone control method and device, electronic equipment and storage medium | |
CN113220779A (en) | Data processing method, device, storage medium and program product | |
CN118300994A (en) | Virtual network management method, device, equipment and storage medium based on cloud mobile phone | |
CN114095758B (en) | Cloud image intercepting method and related device | |
US20220407771A1 (en) | Method and apparatus for updating instance configuration, device, storage medium, and program product | |
CN113079382B (en) | Message transmission method, device, device, system and storage medium | |
CN116032880A (en) | A system, method, electronic device and storage medium for session synchronization | |
CN115118654B (en) | Data forwarding method, system, device and program product under virtual network | |
CN115858125B (en) | Rendering engine calling method and device, electronic equipment and storage medium | |
US11831598B2 (en) | Method, apparatus and system for switching virtual IP | |
CN116192945A (en) | Intranet communication method, device, equipment and storage medium | |
CN118233455B (en) | Intranet-based file transmission method, device, equipment and medium | |
CN112925482B (en) | Data processing method, device, system, electronic equipment and computer storage medium | |
CN115914077A (en) | Neighbor node self-maintenance method, device and equipment based on authentication registration mechanism | |
CN115103019A (en) | Access request forwarding method and device, electronic equipment and readable storage medium | |
CN115175172A (en) | Data processing method and device, electronic equipment and storage medium | |
CN115752496A (en) | Route search method, device, electronic device and storage medium | |
CN119960971A (en) | Custom mirror image generation method and device for edge computing scene | |
CN114553849A (en) | Drive update method, device, apparatus, medium, and program product | |
CN115036044A (en) | Message processing method and device, electronic equipment and storage medium |
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 | ||
AD01 | Patent right deemed abandoned | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20241122 |