# US 2025/0168238 A1 · Method, system, and device for managing session state, and storage medium

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

- Number: US 2025/0168238 A1
- Document ID: US20250168238A1
- Status: Published application
- Kind: A1
- Application number: 18/840,270
- Filed: 2023-02-24
- Published: 2025-05-22
- Earliest claimed: 2022-03-01
- Assignees: Bigo Technology Pte. Ltd.
- Applicants: Bigo Technology Pte. Ltd.
- Inventors: Jinjia LIN
- Web page: https://patentgrep.com/patent/US20250168238A1

## CPC

- H04L 67/14: Session management (for real-time applications in data packet communications networks H04L65/1066)
- H04L 67/142: Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
- H04L 67/1001: for accessing one among a plurality of replicated servers
- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- H04L 67/145: avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
- H04L 67/146: Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
- H04L 67/56: Provisioning of proxy services (store-and-forward switching systems in data switching networks H04L12/54)
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- H04L 67/5682: Policies or rules for updating, deleting or replacing the stored data
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Provided is a method for managing a session state. The method includes: receiving a service processing result corresponding to a session service forwarded by a proxy server, wherein the service processing result is forwarded by the proxy server based on a session identifier in the service processing result, the session identifier comprising mapping information between the service processing result and a processing server corresponding to the service processing result; and determining session state information of the session service based on the service processing result, and updating the session state information to a local cache so as to synchronize the session state information to a cache of an associated regional data center through the local cache.

## Claims

### Claim 1

A method for managing a session state, comprising:
receiving a service processing result corresponding to a session service forwarded by a proxy server, wherein the service processing result is forwarded by the proxy server based on a session identifier in the service processing result, the session identifier comprising mapping information between the service processing result and a processing server corresponding to the service processing result; and
determining session state information of the session service based on the service processing result, and updating the session state information to a local cache so as to synchronize the session state information to a cache of an associated regional data center through the local cache.

### Claim 2 (depends on 1)

The method according to claim 1, wherein, upon determining the session state information of the session service based on the service processing result, the method further comprises:
updating the session state information to a pre-constructed message middleware, wherein the message middleware is configured to be used for a service server to query the session state information, the service server being configured to process the session service and generate the service processing result, and report the service processing result to the proxy server.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the service processing result is a session creation result; and
determining the session state information of the session service based on the service processing result, and updating the session state information to the local cache, comprises:
performing an initialization operation of the session service based on the session creation result, generating first state information, and determining the first state information as the session state information and updating the session state information to the local cache.

### Claim 4 (depends on 3)

The method according to claim 3, wherein performing the initialization operation of the session service based on the session creation result further comprises:
initializing a session timeout period of the session service based on the session creation result, and storing the session timeout period in the local cache, wherein the session timeout period is configured to detect a session connection state of a client.

### Claim 5 (depends on 4)

The method according to claim 4, wherein, upon performing the initialization operation of the session service based on the session creation result, the method further comprises:
in a case that a client heartbeat request forwarded by the proxy server is received within the session timeout period, updating the session timeout period based on current time; and
in a case that the client heartbeat request forwarded by the proxy server is not received within the session timeout period, determining that a client corresponding to the session service is in an offline state, updating the session state information in the local cache based on the offline state, and deleting the session timeout period.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the service processing result is a session end result; and
determining the session state information of the session service based on the service processing result, and updating the session state information to the local cache, comprises:
generating second state information based on the session end result, and determining the second state information as the session state information and updating the session state information to the local cache.

### Claim 7 (depends on 6)

The method according to claim 6, wherein, prior to determining the second state information as the session state information and updating the session state information to the local cache, the method further comprises:
acquiring a first distributed lock corresponding to the session end result based on the session identifier, wherein the first distributed lock is configured to prohibit initiating a session end request corresponding to the session service again; and
upon determining the second state information as the session state information and updating the session state information to the local cache, the method further comprises:
deleting the session timeout period.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the service processing result is a streaming media connection result; and
determining the session state information of the session service based on the service processing result, and updating the session state information to the local cache, comprises:
generating third state information based on the streaming media connection result, and determining the third state information as the session state information and updating the session state information to the local cache.

### Claim 9 (depends on 8)

The method according to claim 8, wherein, prior to determining the third state information as the session state information and updating the session state information to the local cache, the method further comprises:
acquiring a second distributed lock corresponding to the streaming media connection result based on the session identifier, wherein the second distributed lock is configured to prohibit initiating a streaming media connection request corresponding to the session service again; and
upon determining the third state information as the session state information, the method further comprises:
initializing a streaming media connection timeout period, wherein the streaming media connection timeout period is configured to detect a streaming media connection state of a client.

### Claim 10

A system for managing a session state, comprising: a service server, a proxy server, a processing server, and a local cache, wherein
the service server is configured to process a session service from a first client to a second client, generate a service processing result corresponding to the session service, and report the service processing result to the proxy server;
the proxy server is configured to forward the service processing result to the processing server corresponding to the service processing result based on a session identifier in the service processing result, wherein the session identifier comprises mapping information between the service processing result and the processing server corresponding to the service processing result;
the processing server is configured to receive the service processing result corresponding to the session service forwarded by the proxy server, determine session state information of the session service based on the service processing result, and update the session state information to the local cache; and
the local cache is configured to store and synchronize the session state information to a cache of an associated regional data center.

### Claim 11

(canceled)

### Claim 12

A device for managing a session state, comprising:
a memory and one or more processors,
wherein the memory is configured to store one or more programs; wherein
the one or more programs, when run by the one or more processors, cause the one or more processors to:
receiving a service processing result corresponding to a session service forwarded by a proxy server, wherein the service processing result is forwarded by the proxy server based on a session identifier in the service processing result, the session identifier comprising mapping information between the service processing result and a processing server corresponding to the service processing result; and
determining session state information of the session service based on the service processing result, and updating the session state information to a local cache so as to synchronize the session state information to a cache of an associated regional data center through the local cache.

### Claim 13 (depends on 1)

A non-transitory storage medium comprising one or more computer-executable instructions, wherein the one or more computer-executable instructions, when executed by a computer processor, cause the computer processor to perform the method for managing the session state as defined in claim 1.

### Claim 14 (depends on 12)

The device according to claim 12, wherein the one or more programs, when run by the one or more processors, cause the one or more processors to perform:
updating the session state information to a pre-constructed message middleware, wherein the message middleware is configured to be used for a service server to query the session state information, the service server being configured to process the session service and generate the service processing result, and report the service processing result to the proxy server.

### Claim 15 (depends on 12)

The device according to claim 12, wherein the service processing result is a session creation result, and the one or more programs, when run by the one or more processors, cause the one or more processors to perform:
performing an initialization operation of the session service based on the session creation result, generating first state information, and determining the first state information as the session state information and updating the session state information to the local cache.

### Claim 16 (depends on 15)

The device according to claim 15, wherein the one or more programs, when run by the one or more processors, cause the one or more processors to perform:
initializing a session timeout period of the session service based on the session creation result, and storing the session timeout period in the local cache, wherein the session timeout period is configured to detect a session connection state of a client.

### Claim 17 (depends on 16)

The device according to claim 16, wherein the one or more programs, when run by the one or more processors, cause the one or more processors to perform:
in a case that a client heartbeat request forwarded by the proxy server is received within the session timeout period, updating the session timeout period based on current time; and
in a case that the client heartbeat request forwarded by the proxy server is not received within the session timeout period, determining that a client corresponding to the session service is in an offline state, updating the session state information in the local cache based on the offline state, and deleting the session timeout period.

### Claim 18 (depends on 16)

The device according to claim 16, wherein the service processing result is a session end result, and the one or more programs, when run by the one or more processors, cause the one or more processors to perform:
generating second state information based on the session end result, and determining the second state information as the session state information and updating the session state information to the local cache.

### Claim 19 (depends on 18)

The device according to claim 18, wherein the one or more programs, when run by the one or more processors, cause the one or more processors to perform:
acquiring a first distributed lock corresponding to the session end result based on the session identifier, wherein the first distributed lock is configured to prohibit initiating a session end request corresponding to the session service again; and
deleting the session timeout period.

### Claim 20 (depends on 12)

The device according to claim 12, wherein the service processing result is a streaming media connection result, and the one or more programs, when run by the one or more processors, cause the one or more processors to perform:
generating third state information based on the streaming media connection result, and determining the third state information as the session state information and updating the session state information to the local cache.

### Claim 21 (depends on 20)

The device according to claim 20, wherein the one or more programs, when run by the one or more processors, cause the one or more processors to perform:
acquiring a second distributed lock corresponding to the streaming media connection result based on the session identifier, wherein the second distributed lock is configured to prohibit initiating a streaming media connection request corresponding to the session service again; and
initializing a streaming media connection timeout period, wherein the streaming media connection timeout period is configured to detect a streaming media connection state of a client.
