Network request method and device
A network request and network parameter technology, applied in the Internet field, can solve the problems of excessive polling times and high server performance overhead, and achieve the effect of reducing polling times, saving traffic consumption, and optimizing performance overhead.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com