# US 2021/0281641 A1 · Minimizing number of synchs

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0281641 A1
- Document ID: US20210281641A1
- Status: Published application
- Kind: A1
- Application number: 16/808,212
- Filed: 2020-03-03
- Published: 2021-09-09
- Earliest claimed: 2020-03-03
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Bradley Baron; Benjamin Ralph Hollis; Jason Varbedian; Tarang Desai
- Web page: https://patentgrep.com/patent/US20210281641A1

## CPC

- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- H04L 47/28: in relation to timing considerations
- H04L 47/34: ensuring sequence integrity, e.g. using sequence numbers
- H04L 67/14: Session management (for real-time applications in data packet communications networks H04L65/1066)
- H04L 67/141: Setup of application sessions (admission control or resource allocation in data switching networks H04L47/70)
- H04W 76/11: Allocation or use of connection identifiers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

Systems and methods are provided for synchronizing messages. The systems and methods include operations for: receiving, from a server by a client device, a set of synchronization data representing changes since a previous time the client device synchronized with the server; comparing, by the client device, the set of synchronization data to a local state of the synchronization data; identifying a difference between the set of synchronization data and the local state of the synchronization data; and transmitting, to the server by the client device, a request for content corresponding to the difference between the set of synchronization data and the local state of the synchronization data.

## Claims

### Claim 1

A method comprising:
after ending a synchronization session between a client device and a server, receiving, by the client device, content from an out-of-band source;
after receiving the content from the out-of-band source, receiving, from the server by one or more processors of the client device, a set of synchronization data representing changes since a previous time the client device synchronized with the server;
generating a local state of synchronization data based on the content received from the out-of-band source;
comparing, by the one or more processors of the client device, the set of synchronization data to the local state of the synchronization data;
identifying a difference between the set of synchronization data and the local state of the synchronization data; and
transmitting, to the server by the one or more processors of the client device, a request for content corresponding to the difference between the set of synchronization data and the local state of the synchronization data.

### Claim 2 (depends on 1)

The method of claim 1, further comprising establishing a communication session between a plurality of users, wherein the set of synchronization data comprises identifiers of one or more messages exchanged in the communication session.

### Claim 3 (depends on 1)

The method of claim 1, wherein the difference identifies a given message exchanged in a communication session, and wherein the request for content comprises a request for the given message exchanged in the communication session.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
receiving, by the server, a synchronization request from a messaging application;
identifying, by the server, a given timestamp representing the previous time the messaging application synchronized with the server;
retrieving timestamps of content stored by the server;
identifying a set of timestamps that are later in time than the given timestamp; and
generating the set of synchronization data based on the set of timestamps.

### Claim 5 (depends on 4)

The method of claim 4, wherein the previous time corresponds to a timestamp of a last time the server sent content to the messaging application.

### Claim 6 (depends on 4)

The method of claim 4, wherein generating the set of synchronization data comprises generating a first vector of sequence numbers.

### Claim 7 (depends on 6)

The method of claim 6, wherein identifying the difference comprises:
retrieving, by the messaging application, a second vector of sequence numbers; and
identifying one or more sequence numbers that differ between the first and second vectors.

### Claim 8 (depends on 7)

The method of claim 7, wherein transmitting the request comprises transmitting the request for content corresponding to the one or more sequence numbers that differ between the first and second vectors.

### Claim 9 (depends on 6)

The method of claim 6, wherein each sequence number represents a respective message sent by a participant in a communication session, and wherein each sequence number is associated with a participant identifier of the participant that sent the respective message.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
storing as the previous time a timestamp at which the synchronization session has ended.

### Claim 11 (depends on 10)

The method of claim 10, wherein the content is received over at least one of a bi-directional communication link, a pull mechanism, a push mechanism, or a real-time connection.

### Claim 12 (depends on 17)

The system of claim 17, wherein the set of synchronization data comprises a first vector of sequence numbers, and wherein the operations further comprise:
retrieving, by a messaging application, a second vector of sequence numbers; and
identifying one or more sequence numbers that differ between the first and second vectors;
transmitting the request for content corresponding to the one or more sequence numbers that differ between the first and second vectors.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
establishing; a communication session on the client device comprising a first set of messages received from the server;
ending a synchronization session with the server after establishing the communication session at the previous time;
receiving, by the client device, a second set of messages in the communication session from an out-of-band source; and
receiving, as the set of synchronization data, identifiers of a third set of messages exchanged in the communication session after the previous time.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
comparing the identifiers of the third set of messages to identifiers of the second set of messages;
identifying; by the client device, a subset of the third set of messages that differ from the second set of messages; and
requesting, from the server, the subset of messages as the content.

### Claim 15 (depends on 1)

The method of claim 1, wherein less than an entirety of content that was received by the server after the previous time is sent to the client device in response to the request.

### Claim 16 (depends on 1)

The method of claim 1, further comprising:
receiving a second set of synchronization data representing changes since another previous time the client device synchronized with the server;
comparing the second set of synchronization data to a second local state of the synchronization data;
determining that the second set of synchronization data matches the second local state of the synchronization data; and
skipping transmitting, to the server, a request for content in response to determining that the second set of synchronization data matches the second local state of the synchronization data.

### Claim 17

A system comprising:
a processor configured to perform operations comprising:
after ending a synchronization session between a client device and a server receiving, by the client device, content from an out-of-band source;
after receiving the content from the out-of-band source, receiving, from the server by one or more processors of the client device, a set of synchronization data representing changes since a previous time the client device synchronized with the server;
generating a local state of synchronization data based on the content received from the out-of-band source;
comparing, by the one or more processors of the client device, the set of synchronization data to the local state of the synchronization data;
identifying a difference between the set of synchronization data and the local state of the synchronization data; and
transmitting, to the server by the one or more processors of the client device, a request for content corresponding to the difference between the set of synchronization data and the local state of the synchronization data.

### Claim 18 (depends on 17)

The system of claim 17, wherein the difference identifies a given message exchanged in a communication session, and wherein the content comprises the given message exchanged in the communication session.

### Claim 19 (depends on 17)

The system of claim 17, further comprising operations for:
receiving, by the server, a synchronization request from the client device;
identifying, by the server, a given timestamp representing the previous time the client device synchronized with the server;
retrieving timestamps of content stored by the server;
identifying a set of timestamps that are later in time than the given timestamp; and
generating the set of synchronization data based on the set of timestamps.

### Claim 20

A non-transitory machine-readable storage medium that includes instructions that, when executed by one or more processors of a machine, cause the machine to perform operations comprising:
after ending a synchronization session between a client device and a server, receiving, by the client device, content from an out-of-band source;
after receiving the content from the out-of-band source, receiving; from the server by one or more processors of the client device, a set of synchronization data representing changes since a previous time the client device synchronized with the server;
generating a local state of synchronization data based on the content received from the out-of-band source;
comparing, by the one or more processors of the client device, the set of synchronization data to the local state of the synchronization data;
identifying a difference between the set of synchronization data and the local state of the synchronization data; and
transmitting, to the server by the one or more processors of the client device, a request for content corresponding to the difference between the set of synchronization data and the local state of the synchronization data.
