Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for processing external requests

An external request and cluster technology, applied in the field of Internet communication, can solve the problems of increasing the time for the client to receive response information, increasing the load of the cluster system, multi-time and network traffic, etc., so as to avoid the time of sending response information and reduce The time to receive response information and the effect of saving network traffic

Active Publication Date: 2018-09-04
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since the external request sent by the client needs to be forwarded by the access server to the business server, and when the business server finishes processing the external request and sends a response message to the client, it also needs to be forwarded to the client through the access server. Forwarding information between the client and the business server will waste more time and network traffic, increase the time for the client to receive response information, and increase the load of the cluster system

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
  • A method and device for processing external requests
  • A method and device for processing external requests
  • A method and device for processing external requests

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] The embodiment of the present invention provides a method for processing external requests, see figure 1 , the method includes:

[0023] Step 101: The access server obtains the garbage collection frequency of the cluster system, and the cluster system includes the access server and multiple service servers;

[0024] Step 102: If the garbage collection frequency is less than the preset threshold, the access server processes the external request sent by the client;

[0025] Step 103: If the garbage collection frequency is greater than or equal to the preset threshold, the access server forwards the external request sent by the client to the service server included in the cluster system, so that the service server included in the cluster system can The external request is processed.

[0026] Wherein, the access server obtains the garbage collection frequency of the cluster system, including:

[0027] The access server obtains the first number of garbage collections by i...

Embodiment 2

[0040] The embodiment of the present invention provides a method for processing external requests, see figure 2 , the method includes:

[0041] Step 201: The access server obtains the garbage collection frequency of the cluster system, and the cluster system includes the access server and multiple service servers;

[0042] Specifically, this step can be achieved through the following steps (1)-(3), including:

[0043] (1) The access server obtains the first number of garbage collections by itself within the first preset time period closest to the current time;

[0044] Wherein, the access server creates a data text in advance, sets an initial value of the number of times of garbage collection, and stores the set initial value of the number of times of garbage collection in the data text. When the available memory cannot be allocated in the heap memory of the access server, the access server triggers garbage collection, counts the number of garbage collections in real time, ...

Embodiment 3

[0084] see image 3 , an embodiment of the present invention provides a device for processing external requests, the device includes:

[0085] The first obtaining module 301 is used to obtain the garbage collection frequency of the cluster system, which includes the access server and multiple service servers;

[0086] A sending module 302, configured to process the external request sent by the client if the garbage collection frequency is less than a preset threshold;

[0087] The first forwarding module 303 is configured to forward the external request sent by the client to the service server included in the cluster system if the garbage collection frequency is greater than or equal to the preset threshold, so that the service server included in the cluster system Process the external request.

[0088] Wherein, the first acquisition module 301 includes:

[0089] The first acquisition unit is configured to acquire the first number of garbage collections by itself within the...

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 method and device for processing external requests, belonging to the field of Internet communication. The method includes: the access server obtains the garbage collection frequency of the cluster system, and the cluster system includes the access server and multiple service servers; if the garbage collection frequency is less than a preset threshold, the access The server processes the external request sent by the client; if the garbage collection frequency is greater than or equal to the preset threshold, the access server forwards the external request sent by the client to the cluster system included A service server, enabling the service server included in the cluster system to process the external request. The device includes: a first acquiring module, a sending module and a first forwarding module. The invention reduces the time for the client to receive response information, saves network traffic, and reduces the load of the cluster system.

Description

technical field [0001] The invention relates to the field of Internet communication, in particular to a method and device for processing external requests. Background technique [0002] With the rapid development of Internet communication technology, more and more users use the Internet for entertainment, work and communication. Due to the large number of users using the Internet, the server receives a large number of external requests sent by the client at the same time, so that a single server cannot handle all external requests, so a cluster system is generally used to process external requests sent by the client. [0003] Wherein, the cluster system includes an access server and multiple service servers. The access server receives the external request sent by the client, and distributes the received external request to each service server evenly according to the number of received external requests and the number of service servers, so that each service server processes...

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 Patents(China)
IPC IPC(8): H04L29/06H04L12/801
CPCH04L67/1001
Inventor 赵秦谢广文吴帅
Owner TENCENT TECH (SHENZHEN) CO LTD