Forum Discussion
JohnBarulich1
6 years agoQrew Cadet
I am refactoring my code to accomodate async. I was using async/await to handle each API_DeleteRecord call, but I'm still not completely clear. You're saying turning async off will make this code snippet work, but does this imply quickbase doesn't handle several ajax requests made at *basically* the same time/ does quickbase handle all the requests as a queue? I know that ajax calls are event based, does one event get completely interrupted by another?
Obviously my goal is to write optimized code because our list gets quite large and there are specifications for what gets deleted, I would preferably like to delete these records with async
Obviously my goal is to write optimized code because our list gets quite large and there are specifications for what gets deleted, I would preferably like to delete these records with async
- _anomDiebolt_6 years agoQrew EliteBrowsers will limit the number of simultaneous requests to the same domain (QuickBase uses at least two domains: quickbase.com and assets-cflare.quickbasecdn.net) to a number historically between four to six:
Max Parallel HTTP Connections
https://stackoverflow.com/questions/985431/max-parallel-http-connections-in-a-browser#answer-985704
If you make too many requests simultaneously your browser could run out of sockets and hang. Where that limit is reached probably depends on a number of technical factors but you are probably safe up to say 100 simultaneous requests.
Servers tend to rate limit the number of requests they accept and don't often publicize the rate limit or other details. The issue is pretty much treated as a security issue (Denail of Service). Other than the limits QuickBase publishes for {webhooks, actions, automations} I am not sure what QuickBase uses but I have never had a problem.
If you are moving towards using async/await (which is a good idea) you will not have any problem. I answered the questions assuming you had more limited knowledge of async/await. You are on the right track and will have no problems.