IP Library Granted Patent US 11,010,404
Granted Patent B2
US 11,010,404 · App. 16/037,785 · Granted May 18, 2021

Data synchronization method, apparatus, and system

Inventor: Shuai Shao (Hangzhou, CN)
Assignee: Advanced New Technologies Co., Ltd.
G06F16/27G06F16/2358G06F16/24552
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,010,404
App. No.
16/037,785
Granted
May 18, 2021
Kind
B2
Abstract

A determination is made, by a first device, that data in a first database is modified. The first database is associated with the first device. A notification is generated by the first device. The notification includes information associated with the data modification in the first database. The notification is transmitted by the first device to at least one second device. At least one second database is associated with the at least one second device.

Claims (59)

1. A computer-implemented method, comprising:

determining, by a first device, that data in a first database is modified, wherein the first database is associated with the first device;

generating, by the first device, a real-time notification for the data modification, wherein the real-time notification includes information associated with the data modification in the first database;

transmitting, by the first device, the real-time notification to at least one second device once the real-time notification is generated by the first device, wherein at least one second database is associated with the at least one second device;

initiating synchronization of the at least one second database with the first database after the data modification in the first database is completed;

receiving, by the at least one second device, the real-time notification from the first device; and

updating, by the at least one second device, at least one cache based on the received real-time notification before the synchronization of the at least one second database is completed, wherein the at least one cache is associated with the at least one second database, and wherein updating the at least one cache includes:

in response to determining that the real-time notification includes the data modification, directly updating the at least one cache based on the data modification included in the real-time notification, wherein directly updating the at least one cache based on the data modification included in the real-time notification is performed before the at least one second database is synchronized with the data modification in the first database.

2. The computer-implemented method of claim 1 , wherein the data modification in the first database is to be synchronized in the at least one second database.

3. The computer-implemented method of claim 1 , wherein generating, by the first device, the real-time notification includes:

determining whether a size of the data modification exceeds a predetermined threshold;

in response to a determination that the size of the data modification does not exceed the predetermined threshold, generating the real-time notification to include the data modification; and

in response to a determination that the size of the data modification does exceed the predetermined threshold, generating the real-time notification to include an operation identifier associated with the data modification in the first database.

4. The computer-implemented method of claim 3 , wherein updating, by the at least one second device, the at least one cache based on the real-time notification includes:

in response to determining that the real-time notification includes the operation identifier associated with the data modification:

monitoring the at least one second database based on the operation identifier; and

when a synchronization operation corresponding to the operation identifier is detected in the at least one second database, updating the at least one cache based on synchronized data in the at least one second database.

5. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

determining, by a first device, that data in a first database is modified, wherein the first database is associated with the first device;

generating, by the first device, a real-time notification for the data modification, wherein the real-time notification includes information associated with the data modification in the first database;

transmitting, by the first device, the real-time notification to at least one second device once the real-time notification is generated by the first device, wherein at least one second database is associated with the at least one second device;

initiating synchronization of the at least one second database with the first database after the data modification in the first database is completed;

receiving, by the at least one second device, the real-time notification from the first device; and

updating, by the at least one second device, at least one cache based on the received real-time notification before the synchronization of the at least one second database is completed, wherein the at least one cache is associated with the at least one second database, and wherein updating the at least one cache includes:

in response to determining that the real-time notification includes the data modification, directly updating the at least one cache based on the data modification included in the real-time notification, wherein directly updating the at least one cache based on the data modification included in the real-time notification is performed before the at least one second database is synchronized with the data modification in the first database.

6. The non-transitory, computer-readable medium of claim 5 , wherein the data modification in the first database is to be synchronized in the at least one second database.

7. The non-transitory, computer-readable medium of claim 5 , wherein generating, by the first device, the real-time notification includes:

determining whether a size of the data modification exceeds a predetermined threshold;

in response to a determination that the size of the data modification does not exceed the predetermined threshold, generating the real-time notification to include the data modification; and

in response to a determination that the size of the data modification does exceed the predetermined threshold, generating the real-time notification to include an operation identifier associated with the data modification in the first database.

8. The non-transitory, computer-readable medium of claim 7 , wherein updating, by the at least one second device, the at least one cache based on the real-time notification includes:

in response to determining that the real-time notification includes the operation identifier associated with the data modification:

monitoring the at least one second database based on the operation identifier; and

when a synchronization operation corresponding to the operation identifier is detected in the at least one second database, updating the at least one cache based on synchronized data in the at least one second database.

9. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

determining, by a first device, that data in a first database is modified, wherein the first database is associated with the first device;

generating, by the first device, a real-time notification for the data modification, wherein the real-time notification includes information associated with the data modification in the first database;

transmitting, by the first device, the real-time notification to at least one second device once the real-time notification is generated by the first device, wherein at least one second database is associated with the at least one second device;

initiating synchronization of the at least one second database with the first database after the data modification in the first database is completed;

receiving, by the at least one second device, the real-time notification from the first device; and

updating, by the at least one second device, at least one cache based on the received real-time notification before the synchronization of the at least one second database is completed, wherein the at least one cache is associated with the at least one second database, and wherein updating the at least one cache includes:

in response to determining that the real-time notification includes the data modification, directly updating the at least one cache based on the data modification included in the real-time notification, wherein directly updating the at least one cache based on the data modification included in the real-time notification is performed before the at least one second database is synchronized with the data modification in the first database.

10. The computer-implemented system of claim 9 , wherein the data modification in the first database is to be synchronized in the at least one second database.

11. The computer-implemented system of claim 9 , wherein generating, by the first device, the real-time notification includes:

determining whether a size of the data modification exceeds a predetermined threshold;

in response to a determination that the size of the data modification does not exceed the predetermined threshold, generating the real-time notification to include the data modification; and

in response to a determination that the size of the data modification does exceed the predetermined threshold, generating the real-time notification to include an operation identifier associated with the data modification in the first database.

12. The computer-implemented system of claim 11 , wherein updating, by the at least one second device, the at least one cache based on the real-time notification includes:

in response to determining that the real-time notification includes the operation identifier associated with the data modification:

monitoring the at least one second database based on the operation identifier; and

when a synchronization operation corresponding to the operation identifier is detected in the at least one second database, updating the at least one cache based on synchronized data in the at least one second database.

13. The computer-implemented method of claim 1 , wherein the first database is a write database and the at least one second database is a read database.

14. The computer-implemented method of claim 1 , wherein the real-time notification is compressed, encrypted, or encoded before transmitted to the at least one second device.

15. The non-transitory, computer-readable medium of claim 5 , wherein the first database is a write database and the at least one second database is a read database.

16. The non-transitory, computer-readable medium of claim 5 , wherein the real-time notification is compressed, encrypted, or encoded before transmitted to the at least one second device.

17. The computer-implemented system of claim 9 , wherein the first database is a write database and the at least one second database is a read database.

18. The computer-implemented system of claim 9 , wherein the real-time notification is compressed, encrypted, or encoded before transmitted to the at least one second device.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 21, 2024
From: ADVANCED NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NOVA TECHNOLOGIES (SINGAPORE) HOLDING PTE. LTD.
Reel/Frame 066862/0668 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 9, 2018
From: SHAO, SHUAI
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 047715/0603 →