Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A network request method and device

A network request and network parameter technology, applied in the Internet field, can solve the problems of high server performance overhead and excessive polling times, and achieve the effects of saving traffic consumption, reducing polling times, and optimizing performance overhead

Active Publication Date: 2021-06-11
ALIBABA GRP HLDG LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a network request method and device to solve the problem of high performance overhead of the server caused by too many network request polls from the client

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 network request method and device
  • A network request method and device
  • A network request method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] Such as figure 1 As shown, the flow chart of the network request method provided in Embodiment 1 of the present application includes the following steps:

[0060] S101: The server receives a network request sent by the client; the network request carries indication information for requesting a third-party service.

[0061] In a specific implementation, after receiving the user instruction, the client sends the network request indicated by the user to the server. For example, the user clicks the order button on the ticket order page, and the client sends an order request to the server based on the user's request.

[0062] In the embodiment of this application, the interaction between the client and the server, and between the server and the third party is established through a short connection, and the network request response result may not be obtained in the short connection established for the first time. This requires the client to establish a short connection with...

Embodiment 2

[0081] Such as figure 2 As shown, the flow chart of the network request method provided in Embodiment 2 of the present application includes the following steps:

[0082] S201: The client sends a network request to the server for the Nth time.

[0083] Here, the client first establishes a short connection with the server, and then sends a network request to the server through the established short connection. After receiving the network request, the server establishes a short connection with the third party, and sends a network request to the third party for the client through the established short connection.

[0084] S202: If the N value is less than or equal to the set threshold, the server feeds back the preset polling duration to the client.

[0085] For example, if N=1, when polling for the first time, a short polling duration of 5s is returned to the client.

[0086] S203: If the N value is greater than the set threshold, determine a polling duration for the client t...

Embodiment 3

[0096] Such as Figure 4 As shown, the flow chart of the network request method provided by Embodiment 3 of the present application includes the following steps:

[0097] S401: Establish a short connection between the client and the server, based on the established short connection, send an order request to the server, the order request carries the flight information selected by the user, the user information filled in the order page, and the customer The network environment information on the terminal, the flight information includes third-party airline information.

[0098] S402: The server determines, for the client, the polling duration for subsequent sending of the ticket order request according to the network environment information of the client and the service interface information of the third-party airline corresponding to the flight information.

[0099] S403: The server sends the determined polling duration to the client.

[0100] S404: If the client does not rec...

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 present application relates to the technical field of the Internet, and in particular to a network request method and device, which are used to solve the problem of high performance overhead of the server caused by too many polling times of the network request of the client. The present application provides a network request method, including: the server receives the network request sent by the client, and the network request carries indication information requesting third-party services; according to the network parameter information corresponding to the network request, the client Determine a polling duration for subsequent sending of the network request; and send the polling duration to the client, so that the client subsequently sends the network request based on the polling duration.

Description

technical field [0001] The present application relates to the technical field of the Internet, and in particular to a network request method and device. Background technique [0002] After receiving the user instruction to send a network request, the client will establish a short connection with the server, and send a network request to the server through the established short connection. Affected by the third-party service interface (for example, when an order request is initiated on the ticket order page, the server's response to the order request depends on the third-party airline interface), the client may not Get the network request response result, which requires the client to establish a short connection with the server again and send a network request. [0003] Generally, after receiving user instructions, the client will periodically send the user's network request to the server until it receives the response result of the network request fed back by the server. Th...

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/08
CPCH04L67/14H04L67/141H04L67/62
Inventor 窦明明
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products