Method and apparatus for processing request from client

A client-side request and client-side technology, applied in the field of computer networks, can solve problems such as non-compliance with business logic, waste of resources, incorrect changes and changes, and achieve the effect of improving the efficiency of request execution and saving resources

Inactive Publication Date: 2016-03-30
BEIJING QIHOO TECH CO LTD +1
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the client did not get the returned result, thinking that the server did not execute the request successfully
Therefore, the client may need to repeatedly send requests to the server to execute the request, and the server may execute the same request multiple times, resulting in waste of resources, and may also cause incorrect changes and changes to the data in the database due to multiple executions of the request , for example, according to the request of adding 5 points, it is necessary to perform the value +5 operation on the point data in the database. If the request is executed multiple times, it will cause unnecessary points to increase, which does not conform to business logic

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
  • Method and apparatus for processing request from client
  • Method and apparatus for processing request from client

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0025] figure 1 A flow chart showing a method for processing a client request according to an embodiment of the present invention, such as figure 1 As shown, the method includes:

[0026] Step S110, receiving the request sent by the client, and obtaining a unique identifier of the request according to the request. The premise of performing this step is that when the client sends a request, it needs to include a unique identifier ...

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 apparatus for processing a request from a client. The method comprises: a request sent by a client is received and a unique identifier of the request is obtained according to the request; matching of the unique identifier of the request and a unique request identifier in a database is carried out; and if the matched unique request identifier exists in the database, a processing result corresponding to the matched unique request identifier in the database is returned to the client instead of carrying out corresponding processing is carried out based on the request. According to the technical scheme, problems that time and resources are wasted and a data operation error is caused because request execution equipment like a server needs to carry out repeated operation according to a repeated request sent by the client when a request time-out situation occurs can be solved successfully, so that the request execution efficiency is effectively improved, resources are saved, and wrong operation occurrence due to needless execution of requests of data can be avoided.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a method and device for processing client requests. Background technique [0002] When the user is using the computing device, the actual needs of the user need to be fulfilled by the computing device executing a corresponding request that can be recognized by the computing device. When a request is executed on a computing device, there are two outcomes: the request succeeds and the request fails. However, with the development of computer network technology, for the situation that a computing device cannot well meet the needs of users, the existing technology adopts the method of setting up clients on some computing devices and setting up servers to receive requests sent by clients. to process. Since the server and the client interact through the network, taking a distributed system as an example, when a program or RPC (Remote Procedure Call Protocol, Remote Procedure...

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/08H04L29/06
CPCH04L63/0428H04L63/0807H04L67/02H04L67/60H04L67/62H04L65/40
Inventor 郭军
Owner BEIJING QIHOO TECH 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