# US 2014/0208309 A1 · Method, apparatus, and communication system for implementing internet application

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

- Number: US 2014/0208309 A1
- Document ID: US20140208309A1
- Status: Published application
- Kind: A1
- Application number: 14/221,672
- Filed: 2014-03-21
- Published: 2014-07-24
- Earliest claimed: 2013-01-24
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: JIAN WU; GAOQIAN XU
- Web page: https://patentgrep.com/patent/US20140208309A1

## CPC

- G06F 9/44505: {Configuring for program initiating, e.g. using registry, configuration files}
- G06F 9/44521: {Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading}
- G06F 8/41: Compilation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, apparatus, and communication systems for implementing an internet application are disclosed. A number N of code files of a processing logic used for implementing a first internet application can be loaded in a memory and can be compiled into a runtime library. The runtime library can be registered to the first internet application. A message data package can be received from an internet application client and parsed to obtain an internet application identification. When the internet application identification indicates that the message data package corresponds to the first internet application, a corresponding function in the runtime library of the first internet application can be called to process the message data package, according to a message identification contained in the message data package.

## Claims

### Claim 1

A method for implementing an internet application, comprising:
loading N code files of a processing logic used for implementing a first internet application in a memory, wherein N is a number;
compiling the N code files loaded in the memory into a runtime library;
registering the runtime library to the first internet application;
receiving a message data package from an internet application client;
parsing the message data package to obtain an internet application identification contained in the message data package; and
calling a corresponding function in the runtime library of the first internet application to process the message data package, according to a message identification contained in the message data package, when the internet application identification indicates that the message data package corresponds to the first internet application.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
obtaining processing results after processing the message data package by the corresponding function in the runtime library of the first internet application;
feeding back the processing results to the internet application client; and
persisting the processing results to a local cache.

### Claim 3 (depends on 2)

The method of claim 2, wherein the message data package contains a user identification, and before calling the corresponding function, the method further comprises:
searching in the local cache whether there are user data corresponding to the user identification, according to the user identification; and
reading the user data corresponding to the user identification from a backstage database to the local cache, when the user data corresponding to the user identification are not found in the local cache.

### Claim 4 (depends on 1)

The method of claim 1, wherein the message identification contained in the message data package is an internet application logout identification, and wherein calling the corresponding function in the runtime library further comprises:
calling the corresponding function in the runtime library to persist user data corresponding to a user identification recorded in a local cache to a backstage database, according to the internet application logout identification contained in the message data package.

### Claim 5 (depends on 4)

The method of claim 4, wherein the N code files comprises JavaScript files.

### Claim 6 (depends on 5)

The method of claim 5, wherein the first internet application comprises an on-line game application.

### Claim 7

An apparatus for implementing an internet application, comprising:
a runtime library implementing unit, configured to load N code files of a processing logic used for implementing a first internet application in a memory, wherein N is a number, to compile the N code files loaded in the memory into a runtime library, and to register the runtime library to the first internet application;
a receiving unit, configured to receive a message data package from an internet application client;
a parsing unit, configured to parse the message data package to obtain an internet application identification contained in the message data package; and
a calling unit, configure to call a corresponding function in the runtime library of the first internet application to process the message data package, according to a message identification contained in the message data package, when the internet application identification indicates that the message data package corresponds to the first internet application.

### Claim 8 (depends on 7)

The apparatus of claim 7, further comprising:
a result obtaining unit, configured to obtain processing results after processing the message data package by the corresponding function in the runtime library of the first internet application; and
a result processing unit, configured to feed back the processing results to the internet application client, and/or persist the processing results to a local cache.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the message data package contains a user identification, and the apparatus further comprises a data reading unit configured, before calling the corresponding function in the runtime library to process the message data package, to search in the local cache whether there are user data corresponding to the user identification according to the user identification; and to read the user data corresponding to the user identification from a backstage database to the local cache, when the user data corresponding to the user identification are not found in the local cache.

### Claim 10 (depends on 7)

The apparatus of claim 7, wherein the message identification contained in the message data package is an internet application logout identification, and wherein the calling unit is further configured to call the corresponding function in the runtime library to persist user data corresponding to a user identification recorded in a local cache to a backstage database, according to the internet application logout identification contained in the message data package.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the N code files comprises JavaScript files.

### Claim 12

A communication system, comprising:
an access server and an internet application server,
wherein the access server and the internet application server communicate with each other;
wherein the access server is configured to receive a message data package from an internet application client and to forward the message data package to the internet application server; and
wherein the internet application server is configured to load N code files of a processing logic used for implementing a first internet application in a memory, wherein N is a number; to compile the N code files loaded in the memory into a runtime library of the first internet application; to register the runtime library to the first internet application; to receive a message data package from an internet application client; to parse the message data package to obtain an internet application identification contained in the message data package; and to call a corresponding function in the runtime library of the first internet application to process the message data package, according to a message identification contained in the message data package, when the internet application identification indicates that the message data package corresponds to the first internet application.

### Claim 13 (depends on 12)

The communication system of claim 12, wherein the internet application server is further configured to:
obtain processing results after processing the message data package by the corresponding function in the runtime library of the first internet application;
feed back the processing results to the internet application client; and
persist the processing results to a local cache.

### Claim 14 (depends on 13)

The communication system of claim 13, wherein the message data package contains a user identification, and before calling the corresponding function, the internet application server is further configured to:
search in the local cache whether there are user data corresponding to the user identification, according to the user identification; and
read the user data corresponding to the user identification from a backstage database to the local cache, when the user data corresponding to the user identification are not found in the local cache.

### Claim 15 (depends on 12)

The communication system of claim 12, wherein the message identification contained in the message data package is an internet application logout identification and, to call the corresponding function in the runtime library, the internet application server is further configured to:
call the corresponding function in the runtime library to persist user data corresponding to a user identification recorded in a local cache to a backstage database, according to the internet application logout identification contained in the message data package.

### Claim 16 (depends on 15)

The communication system of claim 15, wherein the N code files comprises JavaScript files.

### Claim 17 (depends on 16)

The communication system of claim 16, wherein the first internet application comprises an on-line game application.
