# US 12,225,012 B2 · Service processing method and device

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

- Number: US 12,225,012 B2
- Document ID: US12225012B2
- Status: Granted
- Kind: B2
- Application number: 18/194,616
- Filed: 2023-03-31
- Published: 2023-08-10
- Granted: 2025-02-11
- Earliest claimed: 2021-01-28
- Assignees: Wangsu Science & Technology Co., Ltd.
- Applicants: Wangsu Science & Technology Co., Ltd.
- Inventors: Jiangning She
- Web page: https://patentgrep.com/patent/US12225012B2

## CPC

- H04L 63/10: {for controlling access to devices or network resources}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/629: {to features or functions of an application}
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- H04L 67/63: Routing a service request depending on the request content or context
- H04L 61/4511: using domain name system [DNS]
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- 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

The embodiments of the present disclosure relate to the technical field of content delivery network, and disclose a service processing method. The service processing method includes: receiving a customized service logic issued by a CDN user, receiving a user request corresponding to the customized service logic, loading the customized service logic and the user request to at least one execution process of a restricted namespace, where the restricted namespace is restricted to at least one of accessing CDN system files, calling key system interfaces, and using system resources, and processing and responding to the user request in the at least one execution process according to the customized service logic.

## Claims

### Claim 1

A service processing method, comprising:
receiving a customized service logic issued by a user of a content delivery network (CDN);
receiving a user request corresponding to the customized service logic;
loading the customized service logic and the user request to at least one execution process of a restricted namespace, wherein the restricted namespace is restricted to at least one of accessing CDN system files, calling key system interfaces, and using system resources; and
processing and responding to the user request according to the customized service logic in the at least one execution process.

### Claim 2 (depends on 1)

The service processing method according to claim 1, wherein the operation of loading the customized service logic and the user request to the at least one execution process of the restricted namespace comprises:
loading code and configuration files corresponding to the customized service logic to the at least one execution process;
forwarding the user request to the at least one execution process through a management process for managing the at least one execution process in the restricted namespace.

### Claim 3 (depends on 1)

The service processing method according to claim 1, wherein the operation of receiving the user request corresponding to the customized service logic comprises:
a CDN node server process forwarding the user request to a management process of an edge application according to a filtering condition of the user request, the filtering condition comprising at least one of a domain name of the user request, a customized request header and a customized uniform resource locator (URL) parameter, and the CDN node server process interacting with the management process through inter-process communication;
the operation of loading the customized service logic and the user request to the at least one execution process of the restricted namespace comprises:
forwarding qualified user requests to the management process through the filtering condition of the user request.

### Claim 4 (depends on 1)

The service processing method according to claim 1, wherein the operation of loading the customized service logic and the user request to the at least one execution process of the restricted namespace comprises:
a management process of an edge application calling the customized service logic based on the user request, and forwarding the user request and the customized service logic to the at least one execution process.

### Claim 5 (depends on 1)

The service processing method according to claim 1, further comprising:
forwarding the customized service logic to one of the at least one execution process through a management process before receiving the user request; and
the operation of loading the customized service logic and the user request to the at least one execution process of the restricted namespace comprising:
forwarding the user request to an execution process which the customized service logic resides in through the management process.

### Claim 6 (depends on 5)

The service processing method according to claim 5, the operation of forwarding the customized service logic to one of the at least one execution process through the management process before receiving the user request comprising:
forwarding a plurality of customized service logics to one of the at least one execution process through the management process before receiving the user request; and
the operation of processing and responding to the user request according to the customized service logic in the at least one execution process comprising:
in response to there being more than one user request forwarded,
dynamically switching amongst different customized service logics according to different user requests, and
processing and responding to the different user requests.

### Claim 7 (depends on 2)

The service processing method according to claim 2, wherein the management process is further configured to adjust loads of different execution processes in a CDN node.

### Claim 8 (depends on 3)

The service processing method according to claim 3, wherein the CDN node server process, the management process, and the at least one execution process are deployed in a same CDN node or node cluster.

### Claim 9 (depends on 1)

The service processing method according to claim 1, further comprising:
terminating an execution process which a user request, an execution time of the user request in the execution process being greater than a preset time threshold, resides in.

### Claim 10 (depends on 1)

The service processing method according to claim 1, further comprising:
creating an execution process in response to receiving an updated customized service logic and a customized service logic before updating being in a running state; wherein a created execution process is configured to execute the updated customized service logic; an execution process which the customized service logic before updating resides in is cancelled after the customized service logic before updating finishes running.

### Claim 11 (depends on 1)

The service processing method according to claim 1, wherein each of the at least one execution process is a dynamic resolver supporting dynamic interpretation of a high-level programming language.

### Claim 12 (depends on 3)

The service processing method according to claim 3, wherein the CDN node server process performs a back-to-source process in response to the CDN node not hitting a cache.

### Claim 13 (depends on 3)

The service processing method according to claim 3, further comprising:
the at least one execution process forwarding the user request back to the CDN node server process after processing and responding to the user request according to the customized service logic in the at least one execution process.

### Claim 14 (depends on 1)

The service processing method according to claim 1, wherein the customized service logic comprises code and configuration files issued by the CDN user.

### Claim 15 (depends on 3)

The service processing method according to claim 3, wherein the management process starts a monitoring service to wait for receiving the user request, and execution of the customized service logic is triggered by starting the monitoring service to receive a user request forwarded by the CDN node server process.

### Claim 16 (depends on 1)

The service processing method according to claim 1, wherein execution of the customized service logic is voluntarily started by setting a regular task.

### Claim 17 (depends on 3)

The service processing method according to claim 3, wherein the edge application runs in the restricted namespace.

### Claim 18 (depends on 3)

The service processing method according to claim 3, wherein the edge application runs in any one of a sandbox environment, a container and a virtual machine.

### Claim 19

A service processing device, comprising:
at least one processor, and
a memory in communicative connection with the at least one processor;
wherein the memory at least stores an instruction executable by the at least one processor, and the instruction is executed by the at least one processor to cause the at least one processor to perform a service processing method;
wherein the service processing method includes:
receiving a customized service logic issued by a user of a content delivery network (CDN);
receiving a user request corresponding to the customized service logic;
loading the customized service logic and the user request to at least one execution process of a restricted namespace, wherein the restricted namespace is restricted to at least one of accessing CDN system files, calling key system interfaces, and using system resources; and
processing and responding to the user request according to the customized service logic in the at least one execution process.

### Claim 20

A non-transitory computer-readable storage medium, storing a computer program that implements a service processing method when executed by a processor;
wherein the service processing method includes:
receiving a customized service logic issued by a user of a content delivery network (CDN);
receiving a user request corresponding to the customized service logic;
loading the customized service logic and the user request to at least one execution process of a restricted namespace, wherein the restricted namespace is restricted to at least one of accessing CDN system files, calling key system interfaces, and using system resources; and
processing and responding to the user request according to the customized service logic in the at least one execution process.
