EP4002811B1

Data synchronization method and apparatus

Abstract

This record has no abstract on file.

EP4002811B1, drawing sheet 1
Sheet 1 of 10

Term

15.1 yearsleft in the term

Expires 15 November 2041.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Expires

12 claims: 2 independent, 10 dependent

  1. 1
    A data synchronization method, applied to a first data service module, comprising:receiving a first request from a second service module, wherein the first request is used to request to synchronize service data of a first service module;obtaining first service data and an identifier of the first service data, wherein the identifier indicates a sequence of obtaining the first service data, and the first service data is the service data of the first service module;storing the service data in a key-value format;obtaining, based on a key comprised in the service data of the first service module, service data comprising a same key, wherein the service data comprising the samek key comprises the first service data;determining new-version service data by comparing version numbers of service data having the same key (S1103);and sending only the new-version service data of the first service module to the second service module (S1104).
  2. 4
    The method according to any one of claims 1 to 3, wherein the first service module corresponds to the first data service module, and the first service module and the first data service module are deployed in a same object;or the first service module corresponds to the first data service module, and the first service module and the first data service module are deployed in different objects.
  3. 5
    The method according to any one of claims 1 to 3, wherein the first service module corresponds to the first data service module, and the first data service module and a data service module corresponding to the second service module are deployed in a same object;or the first service module corresponds to the first data service module, and the first data service module and a data service module corresponding to the second service module are deployed in different objects.
  4. 7
    A data synchronization apparatus (1300), comprising:a receiving unit (1301), configured to receive a first request from a second service module, wherein the first request is used to request to synchronize service data of a first service module;a processing unit (1302), configured to obtain first service data and an identifier of the first service data, wherein the identifier indicates a sequence of obtaining the first service data, and the first service data is the service data of the first service module;store the service data in a key-value format;obtain, based on a key comprised in the service data of the first service module, service data comprising a same key, wherein the service data comprising the same key comprises the first service data;determine new-version serive data by comparing version numbers of service data having the same key;and a sending unit (1303), configured to send only the new-version service data of the first service module to the second service module.
  5. 10
    The data synchronization apparatus according to any one of claims 7 to 9, wherein the first service module corresponds to a first data service module in which the apparatus is located, and the first service module and the first data service module are deployed in a same object;or the first service module corresponds to a first data service module in which the apparatus is located, and the first service module and the first data service module are deployed in different objects.
  6. 11
    The data synchronization apparatus according to any one of claims 7 to 9, wherein the first service module corresponds to a first data service module in which the apparatus is located, and the first data service module and a data service module corresponding to the second service module are deployed in a same object;or the first service module corresponds to a first data service module in which the apparatus is located, and the first data service module and a data service module corresponding to the second service module are deployed in different objects.