# US 2023/0275976 A1 · Data processing method and apparatus, and computer-readable storage medium

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

- Number: US 2023/0275976 A1
- Document ID: US20230275976A1
- Status: Published application
- Kind: A1
- Application number: 18/314,094
- Filed: 2023-05-08
- Published: 2023-08-31
- Earliest claimed: 2021-06-11
- Assignees: Tencent Cloud Computing (Beijing) Co., Ltd.
- Applicants: Tencent Cloud Computing (Beijing) Co., Ltd.
- Inventors: Jing GONG
- Web page: https://patentgrep.com/patent/US20230275976A1

## CPC

- H04L 67/60: Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources (admission control or resource allocation H04L47/70)
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of this application provide a data processing method, apparatus, and computer-readable storage medium. The method includes acquiring a data processing request of a target service, the request including data to be processed; invoking a first worker node of the first server to execute an operation corresponding to a first service process of the target service on the data to be processed to obtain an intermediate processing result, the first worker node being a worker node on the first server for processing the first service process; and transmitting the intermediate processing result to a second server according to a next service process in a plurality of service processes in the target service, so that the second server invokes a second worker node to execute an operation on the intermediate processing result, the second worker node being a worker node on the second server for processing the next service process.

## Claims

### Claim 1

A data processing method, applied to a first server of a plurality of servers in a service processing system, each server including one or more worker nodes, the method comprising:
acquiring a data processing request of a target service, the data processing request including data to be processed;
invoking a first worker node of the first server to execute an operation corresponding to a first service process of the target service on the data to be processed to obtain an intermediate processing result, the first worker node being a worker node on the first server for processing the first service process; and
transmitting the intermediate processing result to a second server of the plurality of servers according to a next service process in a plurality of service processes in the target service, so that the second server invokes a second worker node to execute an operation corresponding to the next service process on the intermediate processing result, the second worker node being a worker node on the second server for processing the next service process.

### Claim 2 (depends on 1)

The method of claim 1, wherein each server further includes an engine service management component, and the method further comprises:
acquiring service configuration data of the first server;
invoking the engine service management component to start one or more worker nodes according to the service configuration data, and configuring a service process processed by each worker node, wherein the service process processed by each worker node is one of the plurality of service processes in the target service;
invoking the engine service management component to transmit first node registration information of the first server to another server of the plurality of servers; and
receiving second node registration information transmitted by the another server.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first node registration information comprises the service process processed by each of the worker nodes, a node identifier, and a network address of the first server; and the second node registration information comprises a service process processed by each worker node on the another server, a node identifier and a network address of the another server.

### Claim 4 (depends on 2)

The method of claim 2, wherein each server further includes a service registry, and the method further comprises:
invoking the service registry to acquire registration data of each worker node on the first server, wherein the registration data comprises the service process processed by each worker node and the node identifier; and
generating the first node registration information of the first server according to the registration data of each worker node.

### Claim 5 (depends on 2)

The method of claim 2, wherein the method further comprises:
acquiring service update data of the first server; and
invoking the engine service management component to perform an adjustment operation on the worker node of the first server according to the service update data, the adjustment operation comprising one or more of the service processes of adding a worker node, deleting a worker node and adjusting a service process processed by the worker node.

### Claim 6 (depends on 2)

The method of claim 2, wherein the method further comprises:
invoking the engine service management component to start at least one third worker node according to the service configuration data, in response to a number of the data processing requests acquired within a reference time reaching a number threshold; and
configuring a service process processed by each third worker node.

### Claim 7 (depends on 2)

The method of claim 2, wherein the method further comprises:
determining characteristic data of a thread pool of each worker node according to the service configuration data, wherein the characteristic data comprises a number of work threads and a number of resources occupied; and
invoking the engine service management component to start the thread pool on each worker node according to the characteristic data of the thread pool of each worker node, a work thread in the thread pool being used for processing a corresponding service process.

### Claim 8 (depends on 1)

The method of claim 1, wherein the transmitting the intermediate processing result to a second server of the plurality of servers according to a next service process of the first service process in a plurality of service processes in the target service comprises:
acquiring the next service process of the first service process in the plurality of service processes in the target service;
acquiring a server set composed of servers where the worker node used to process the next service process is located from the plurality of servers; and
determining the second server from the servers in the server set according to a reference scheduling policy, and transmitting the intermediate processing result to the second server.

### Claim 9 (depends on 8)

The method of claim 8, wherein the acquiring the next service process of the first service process in the plurality of service processes in the target service comprises:
acquiring a current working mode of the target service;
acquiring a plurality of service processes in the current working mode and an execution order of the plurality of service processes; and
acquiring the next service process of the first service process according to the plurality of service processes in the current working mode and the execution order of the plurality of service processes.

### Claim 10 (depends on 8)

The method of claim 8, wherein the determining the second server from the servers in the server set according to a reference scheduling policy comprises:
determining a server identifier according to a signature of the data to be processed and a number of servers in the server set; and
acquiring the second server corresponding to the server identifier from the servers in the server set.

### Claim 11 (depends on 8)

The method of claim 8, wherein the method further comprises:
acquiring a mode switching instruction of the target service, the mode switching instruction including a target working mode;
switching the current working mode of the target service to the target working mode; and
acquiring a plurality of service processes in the target working mode and an execution order of the plurality of service processes.

### Claim 12 (depends on 8)

The method of claim 8, wherein the method further comprises:
acquiring working mode configuration data of the target service; and
generating one or more working modes of the target service according to the working mode configuration data, each working mode comprising a plurality of service processes and an execution order of the plurality of service processes.

### Claim 13 (depends on 1)

The method of claim 1, wherein a thread pool running on the first worker node comprises a plurality of work threads, and the invoking a first worker node of the first server to execute an operation corresponding to a first service process of the target service on the data to be processed to obtain an intermediate processing result comprises:
invoking the plurality of work threads of the first worker node to perform the operation corresponding to the first service process of the target service in parallel on the data to be processed to obtain the intermediate processing result.

### Claim 14

A non-transitory computer-readable storage medium, storing a computer program, the computer program comprising program instructions, the program instructions being executable by a processor to perform the data processing method comprising:
acquiring a data processing request of a target service, the data processing request including data to be processed;
invoking a first worker node of the first server to execute an operation corresponding to a first service process of the target service on the data to be processed to obtain an intermediate processing result, the first worker node being a worker node on the first server for processing the first service process; and
transmitting the intermediate processing result to a second server of the plurality of servers according to a next service process in a plurality of service processes in the target service, so that the second server invokes a second worker node to execute an operation corresponding to the next service process on the intermediate processing result, the second worker node being a worker node on the second server for processing the next service process.

### Claim 15 (depends on 14)

The computer-readable storage medium of claim 14, wherein each server further includes an engine service management component, and the method further comprises:
acquiring service configuration data of the first server;
invoking the engine service management component to start one or more worker nodes according to the service configuration data, and configuring a service process processed by each worker node, wherein the service process processed by each worker node is one of the plurality of service processes in the target service;
invoking the engine service management component to transmit first node registration information of the first server to another server of the plurality of servers; and
receiving second node registration information transmitted by the another server.

### Claim 16 (depends on 15)

The computer-readable storage medium of claim 15, wherein the first node registration information comprises the service process processed by each of the worker nodes, a node identifier, and a network address of the first server; and the second node registration information comprises a service process processed by each worker node on the another server, a node identifier and a network address of the another server.

### Claim 17 (depends on 15)

The computer-readable storage medium of claim 15, wherein each server further includes a service registry, and the method further comprises:
invoking the service registry to acquire registration data of each worker node on the first server, wherein the registration data comprises the service process processed by each worker node and the node identifier; and
generating the first node registration information of the first server according to the registration data of each worker node.

### Claim 18 (depends on 15)

The computer-readable storage medium of claim 15, wherein the method further comprises:
acquiring service update data of the first server; and
invoking the engine service management component to perform an adjustment operation on the worker node of the first server according to the service update data, the adjustment operation comprising one or more of the service processes of adding a worker node, deleting a worker node and adjusting a service process processed by the worker node.

### Claim 19 (depends on 15)

The computer-readable storage medium of claim 15, wherein the method further comprises:
invoking the engine service management component to start at least one third worker node according to the service configuration data, in response to a number of the data processing requests acquired within a reference time reaching a number threshold; and
configuring a service process processed by each third worker node.

### Claim 20

A server, comprising a processor, a network interface and a storage apparatus, the processor, the network interface and the storage apparatus being connected to each other, the network interface being controlled by the processor to transmit and receive data, the storage apparatus being configured to store a computer program, the computer program comprising program instructions, and the processor being configured to call the program instructions to perform the data processing method comprising:
acquiring a data processing request of a target service, the data processing request including data to be processed;
invoking a first worker node of the first server to execute an operation corresponding to a first service process of the target service on the data to be processed to obtain an intermediate processing result, the first worker node being a worker node on the first server for processing the first service process; and
transmitting the intermediate processing result to a second server of the plurality of servers according to a next service process in a plurality of service processes in the target service, so that the second server invokes a second worker node to execute an operation corresponding to the next service process on the intermediate processing result, the second worker node being a worker node on the second server for processing the next service process.
