Delay Request

Category
HTTP Rules (Modify Traffic)
API Client
FAQ
File Server
Getting Started
Guides
HTTP Rules (Modify Traffic)
Inspect Traffic
Installation
Mock Server
New Section
Public API
Sessions Replay
Setup
TroubleShooting
Workspace
Getting Started
Installation
Setup
Inspect Traffic
API Client
HTTP Rules (Modify Traffic)
Mock Server
File Server
Workspace
Public API
Sessions Replay
FAQ
Guides
New Section
TroubleShooting
Β 

Delay Request

As a frontend developer or QA, Testing certain parts of web applications require you to simulate delay in one or more components of the web app. This can be achieved using Requestly Delay Rule.
notion image
  1. Source Condition:Β Source condition is where you set criteria for the rules. You can useΒ URL,Β HostΒ orΒ PathΒ withΒ Regex,Β Contains,Β WildcardΒ orΒ EqualsΒ to match the source request. Learn more about source conditionsΒ here.
  1. Delay AmountΒ : The delay time (in milliseconds) that is applied to the request matching the source condition. For XHR/Fetch, max delay is 5000 ms & for other resources (JS, CSS, Images, etc), max delay is 10000 ms.
    For Desktop app we don't have such limitation for the delay amount.
  1. Source FiltersΒ : You can define better targeting conditions and restrict rules to be applied on specific webpages (or domains), request types, request methods, or request payload. Learn more about source filtersΒ here.

Popular Use Cases

  • Test the performance of your web app on a slower network conditions.
  • Test the behaviour of your app when one or more APIs respond slowly (API Latency has gone up).
  • Check if any race conditions exist when some resource X gets loaded after or before another resource Y.
  • Test the impact of the slow loading of external resources impact on your app.
  • Test loading experience in the app.

Further Readings

  • You can referΒ this blogΒ on delaying network requests for detailed explanation.

FAQs

Why is maximum delay capped at 10000ms?
To avoid performance degradation, we cap the maximum delay to 10000ms
Β 
Β