IP Library Granted Patent US 10,754,873
Granted Patent B2
US 10,754,873 · App. 16/719,402 · Granted Aug 25, 2020

Data synchronization method, apparatus, and system

Inventor: Shuai Shao (Hangzhou, CN)
Assignee: Alibaba Group Holding Limited
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 10,754,873
App. No.
16/719,402
Granted
Aug 25, 2020
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 (56)

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 notification, wherein the notification includes information associated with the data modification in the first database, and wherein generating the 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 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 notification to include an operation identifier associated with the data modification in the first database; and

transmitting, by the first device, the notification to at least one second device, wherein at least one second database is associated with the at least one second device.

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 , further comprising synchronizing the at least one second database with the first database after the data modification in the first database is completed.

4. The computer-implemented method of claim 1 , further comprising:

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

updating, by the at least one second device, at least one cache based on the notification, wherein the at least one cache is associated with the at least one second database.

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

if the notification includes the data modification, directly updating the at least one cache based on the data modification included in the notification; and

if the 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.

6. The computer-implemented method of claim 5 , wherein the notification is a real-time data modification notification, and directly updating the at least one cache based on the data modification included in the notification is performed before the at least one second database is synchronized with the data modification in the first database.

7. 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 notification, wherein the notification includes information associated with the data modification in the first database, and wherein generating the 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 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 notification to include an operation identifier associated with the data modification in the first database; and

transmitting, by the first device, the notification to at least one second device, wherein at least one second database is associated with the at least one second device.

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

9. The non-transitory, computer-readable medium of claim 7 , the operations further comprising synchronizing the at least one second database with the first database after the data modification in the first database is completed.

10. The non-transitory, computer-readable medium of claim 7 , the operations further comprising:

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

updating, by the at least one second device, at least one cache based on the notification, wherein the at least one cache is associated with the at least one second database.

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

if the notification includes the data modification, directly updating the at least one cache based on the data modification included in the notification; and

if the 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.

12. The non-transitory, computer-readable medium of claim 11 , wherein the notification is a real-time data modification notification, and directly updating the at least one cache based on the data modification included in the notification is performed before the at least one second database is synchronized with the data modification in the first database.

13. 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 notification, wherein the notification includes information associated with the data modification in the first database, and wherein generating the 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 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 notification to include an operation identifier associated with the data modification in the first database; and

transmitting, by the first device, the notification to at least one second device, wherein at least one second database is associated with the at least one second device.

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

15. The computer-implemented system of claim 13 , the operations further comprising synchronizing the at least one second database with the first database after the data modification in the first database is completed.

16. The computer-implemented system of claim 13 , the operations further comprising:

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

updating, by the at least one second device, at least one cache based on the notification, wherein the at least one cache is associated with the at least one second database.

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

if the notification includes the data modification, directly updating the at least one cache based on the data modification included in the notification; and

if the 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.

18. The computer-implemented system of claim 17 , wherein the notification is a real-time data modification notification, and directly updating the at least one cache based on the data modification included in the notification is performed before the at least one second database is synchronized with the data modification in the first database.

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 Jan 22, 2020
From: SHAO, SHUAI
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 051587/0932 →