Ajax Quote by Ian Molyneaux
““In the AJAX world, a client can make a request, the server responds that it has received the request (so the client can get on with something else), and then at some random time later the actual response to the original request is returned. You see the problem? It becomes a challenge to match requests with the correct responses. From a programming standpoint, the performance tool must spawn a thread that waits for thecorrect response while the rest of the script continues to execute. A deft scripter may be able to code around this, but it may require signifcant changes to a script with the accompanying headache of ongoing maintenance. The reality is that not all testers are bored developers, so it’s better for the performance tool to handle this automatically.””
About This Quote
Source Article: Performance Testing with AJAX, 2009
Asynchronous requests make it hard to pair responses with their original calls, requiring extra code to manage timing and threading.
In simple terms: Matching async replies needs extra handling.
Automate response matching in tools.
Themes
Mood
Type
When to use this quote
- web testing
- performance scripts
- debugging
- tool development
Key Concepts
Questions to Reflect On
- How can tools better abstract async handling?
- What risks arise from automating response matching?
Tools may still need manual overrides for complex logic.