Data processing method and system, client, and page engine

A data processing and client-side technology, applied in the processing field of Internet data interaction, can solve the problems of large server resource occupation, low security, and low popularity, and achieve the effect of reducing resource occupation, reliable and efficient data transmission, and ensuring security.

Active Publication Date: 2014-12-31
TENCENT TECH (SHENZHEN) CO LTD
View PDF10 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 1) The server resource occupation is large: whether it is the B / S mode long-polling strategy or the long-connection strategy, it will cause the server to maintain a connection state for a period of time, which consumes a lot of server resources
Moreover, the polling mechanism will generate more data requests, and the server needs to respond to the data requests, which will also consume server resources.
[0009] 2) Compatibility: WebSocket is a html5 technology, which is not popular, and there is a problem of browser compatibility. Currently, it is only supported by browsers such as chrome and Firefox
[0010] 3) Security: The http protocol used in the B / S mode is not very secure, and the long connection strategy based on the http protocol is time-sensitive, not a stable and reliable connection

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and system, client, and page engine
  • Data processing method and system, client, and page engine
  • Data processing method and system, client, and page engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] Such as image 3 Shown is a schematic diagram of the implementation flow of the data processing method in Embodiment 1 of the present invention, and the flow includes the following steps:

[0068] Step 101. Divide data according to time sensitivity and / or data volume.

[0069] Here, the basis for dividing data in this step is as follows: 1) When dividing according to time sensitivity, in principle, data with high time sensitivity requires timeliness. Therefore, data with high time sensitivity is subsequently transmitted in C / S mode ; When divided according to time sensitivity, in principle, data with low time sensitivity does not need to consider timeliness. Therefore, data with low time sensitivity is subsequently transmitted in B / S mode; 2) When divided according to the amount of data, the principle Data with a small amount of data does not occupy network bandwidth, and is technically easy to implement. Considering the need for real-time transmission, the data with a...

Embodiment 2

[0082] Embodiment 2: For a further optimized solution based on the description of the above-mentioned embodiment 1, the selection of the divided data using C / S mode and / or B / S mode for data transmission includes at least any of the following methods:

[0083] Mode 1: When the data interaction between the front-end and the back-end is a request / response mode, the C / S mode is used for data transmission for data classified as highly time-sensitive and / or small in data volume;

[0084] Mode 2: When the data interaction between the front-end and the back-end is in the request / response mode, the B / S mode is used for data transmission for data classified as having low time sensitivity and / or large data volume;

[0085] Mode 3: When the background actively pushes data to the front end, the data type is not distinguished, and the C / S mode is used for data transmission;

[0086] Mode 4: When the background actively pushes data to the front end, the C / S mode is used for data transmission...

Embodiment 3

[0091] Embodiment 3: To further optimize the solution based on the description of Embodiment 1 or Embodiment 2 above, the method further includes: triggering a loading page request before dividing data according to time sensitivity and / or data volume, and according to the loading page The data returned by the request is displayed in the embedded page. Such as Figure 5 As shown, the interaction process of embedded page loading is as follows: B / S mode is adopted, the browser triggers a request to load the page, and returns data to the background server through the HTTP protocol. The data returned by the background server includes content, style, script, browsing The server receives the returned data, and loads and displays the returned data in the embedded page through the page engine. Wherein, the script is an executable code, and the script of the present invention is specifically a JS script, which runs on the browser of the user terminal. The embedded page can also be ref...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data processing method and system, a client, and a page engine. The method comprises: dividing data according to time sensitivity and/or a data bulk; and carrying out data transmission on the divided data by selecting a client/server mode and/or a browser/server mode. The client includes an expansion interface and a first data transmission unit; and the first data transmission unit is used for carrying out data transmission by using the client/server mode and/or a browser/server mode. According to the invention, server resource occupation is reduced and reliable and high-efficient data transmission is provided.

Description

technical field [0001] The invention relates to Internet data interaction processing technology, in particular to a data processing method, client, page engine and system. Background technique [0002] The existing data interaction processing technology in the Internet field is: the browser uses the B / S mode to perform data interaction with the background server, and the B / S mode is the browser / server mode, and the B / S mode is a stateless communication method. When the browser establishes a connection with the server, the browser sends a data request to the server based on the hypertext transfer protocol (http), the server responds to the data request, returns the data to the browser, and closes the connection between the browser and the server. When the server needs to actively push data to the browser, there are mainly the following strategies: [0003] (1) Long connection strategy: use a transmission control protocol (tcp) connection to process multiple http requests, al...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08H04L12/58
Inventor 何一舟夏槟
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products