473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Cancel a REST request

42
Long story short: Can you cancel a POST or GET REST request once it's sent?

Situation: This is not a site that I'm developing, but if possible, I want to recommend that the developers cancel a POST request that populates search results in real-time as the user types characters into the search box.

Scenario: The user types a few characters, stops for a second, then types more characters.

Issue: The app sends a POST request once the user stops typing for 400ms. When the user starts typing again, it sends another request.

Repercussion: First and foremost, this takes extra resources from the system, unnecessarily. Aside from that, the real-time search results will be populated by whichever request takes longer to process. Typically, the first request will return results faster than the second request, and be trumped by the second request, but that's not always the case.
May 24 '12 #1
0 1526

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: Larry Woods | last post by:
I have a server page that has served an HTML page with a "Cancel" button on it, BUT this server page has not completed and is running a 15-30 second process before it completes. I want the browser...
1
by: Daniel | last post by:
in Application_BeginRequest how do i cancel the request and send back a message?
1
by: JM | last post by:
i have an aspx page that imports 15k records from ms access into sql server. the page is running pretty slow, so i have to reevaulate the code. I tested the page, while is was processing, i hit the...
3
by: Pavel Dvorkin | last post by:
Hi All, I have next problem. A page contains HtmlInputFile. User tries to upload file. File size is too large, so I can't allow this request. Now I have DNS error accoeding to MSDN When...
0
by: Susan | last post by:
I am trying to cancel an oracle stored procedure that can possibly run a long time. I set up the oracle command and, if the user selects to cancel the request or chooses another query to run, I...
4
by: =?Utf-8?B?T3Bh?= | last post by:
Hi, I'm not sure if the title is correct. Here's what I am having trouble with: I have a server side button control where I am calling a javascript function via the OnClientClick property. I...
4
by: Chamnap | last post by:
I develop a form allow the user to upload with the hidden iframe. While in the progress, I allow the user to cancel their upload. In javascript, does it have cancel the request to the server. I...
0
by: darfur | last post by:
I'm writing an application that simplifies the interface to a few websites I use at my job. One of the web servers has a tendency to cause my program to throw a time out exception for a variety of...
16
by: parez | last post by:
I start a BackGroundWorker to populate a grid. It is started off in the ui layer The thread follows( cannot think of a better word) the path UI->Layer1->Layer2->Communication Layer and it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.