question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Control over Requests to Server

See original GitHub issue

In order not to overwhelm the server can there be parameters specified to control requests to the server by child elements (this can be also implemented at the page level to make it simpler supporting child elements is too complicated):

  • number of parallels requests
  • the delay between requests in a thread (this will be very small)
    • delay as an absolute number
    • delay as an uniformly distributed random number within a range (prevent all requests from firing nearly the same time)
  • alternate parameters after error code (to stop overwhelming the server)
  • ability to get parameters periodically from the server as a REST call (to stop overwhelming the server)

The trigger might need to be changed where the request is ques when triggered not actually making the request. If there is no delay and unlimited parallel request any request which is queued will be immediate.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
1cgcommented, Jul 25, 2020

htmx has events for before and after hooks:

https://htmx.org/events/

As of right now, my long term vision is that hyperscript will fill this need. But I won’t get back to hyperscript until the Fall unfortunately. 😕

0reactions
1cgcommented, Jul 6, 2021

yes, events are the way to handle this

if there is a need for declarative implementations, that should be first does as an extension to get firmed up and then we can consider moving it into core

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access-Control-Request-Method - HTTP - MDN Web Docs
The Access-Control-Request-Method request header is used by browsers when issuing a preflight request, to let the server know which HTTP method ...
Read more >
How to Reduce Your Website's HTTP Requests - HubSpot Blog
When a user visits a page on your website, your server heeds this request and returns the files contained on that page to...
Read more >
Http Control
The Http control supports two types of request methods for data transfer, namely Get and Post. By using the Get mode, you can...
Read more >
Preventing server overload: limit requests being processed ...
The solution is to limit the maximum number of concurrent requests, so some fraction of requests fail, but the others are processed. The ......
Read more >
Prevent unnecessary network requests with the HTTP Cache
Response headers: configure your web server # · Cache-Control . The server can return a Cache-Control directive to specify how, and for how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found