TL;DR
Proxy rotation should change the network exit according to a defined allocation policy while preserving the task state your workflow requires. The gateway hostname may remain the same even when the upstream exit changes. Conversely, a saved browser Profile may preserve cookies while the provider assigns a new exit.
Start by defining the unit of work. A public, independent product-page read and a multi-page authorized account workflow have different continuity requirements. A policy that improves one can break the other. Rotation is an infrastructure decision, not a substitute for source permission, request limits, or correct extraction.
Choose a boundary at which a network change does not invalidate the operation's assumptions. Record the intended session identifier and the observed exit separately. Provider session parameters express a policy; they are not proof that an upstream peer will remain available indefinitely.
For unrelated authorized reads, allocating an exit per job can keep the task model simple. A job still needs a stable identifier, a bounded attempt budget, and a correctness check. Do not report a challenge page with status 200 as an accepted record merely because a request completed.
Keep a deliberate session through steps that depend on prior state, such as a login, pagination cursor, or form preparation. If the exit changes unexpectedly, decide whether the task can resume safely. A new connection is not necessarily a new application session, and reusing a cookie is not proof that the application will accept the changed route.
A rotation timer can expire while a task is active. Prefer a scheduler that starts new work only when the chosen session has sufficient expected lifetime, then handles unexpected loss explicitly. Record interruptions rather than letting an automatic retry conceal a partially completed operation.
| Task state | Useful decision | Risk to avoid |
|---|---|---|
| Independent read not started | Allocate an available exit | Sharing untracked session state |
| Stateful flow in progress | Keep intended assignment | Switching exits between dependent steps |
| Destination rate-limited | Pause according to policy | Raising traffic by adding exits |
| Write outcome unknown | Reconcile application state | Repeating a completed write |
Classify a failure by the earliest layer that failed. A connection timeout, a rejected account session, a rate response, and a missing product identifier are different outcomes. Keep them separate in logs and metrics so an extraction bug does not become a proxy-health penalty.
MDN describes 429 Too Many Requests as a rate-limiting response. The Retry-After header can express a delay or an HTTP date. Parse the actual representation and respect your source's policy; do not invent an unlimited retry loop around it.
The HTTP semantics specification distinguishes safe and idempotent method semantics. Even so, the client must understand the actual operation before replaying a request after an ambiguous outcome. Do not assume that changing proxies makes a repeated POST safe. Check whether the first operation completed, and use the application's documented deduplication mechanism when available.
A policy function is easier to inspect when it returns a decision instead of immediately sleeping, rotating, or sending another request. The example below uses synthetic failures and an application-level replay_safe input. It deliberately treats Retry-After as pre-parsed seconds; parsing raw headers belongs in a separate adapter.
import json
def decide(*, attempt, max_attempts, failure, replay_safe, retry_after=None):
if not replay_safe:
return {"action": "reconcile", "reason": "outcome_may_have_side_effects"}
if attempt >= max_attempts:
return {"action": "stop", "reason": "attempt_budget_exhausted"}
if failure == "rate_limited":
if retry_after is None or retry_after < 0:
return {"action": "pause", "reason": "rate_policy_review_required"}
return {"action": "wait", "seconds": retry_after, "rotate": False}
if failure == "proxy_connect":
return {"action": "retry_after_backoff", "review_assignment": True}
return {"action": "stop", "reason": "inspect_target_or_extractor"}
result = {
"rate": decide(attempt=1, max_attempts=3, failure="rate_limited",
replay_safe=True, retry_after=30),
"write": decide(attempt=1, max_attempts=3, failure="proxy_connect",
replay_safe=False),
"exhausted": decide(attempt=3, max_attempts=3, failure="proxy_connect",
replay_safe=True)
}
assert result["rate"] == {"action": "wait", "seconds": 30, "rotate": False}
assert result["write"]["action"] == "reconcile"
assert result["exhausted"]["action"] == "stop"
print(json.dumps(result, indent=2))
The local test returned a wait decision for the rate case without requesting rotation, required reconciliation for the ambiguous write, and stopped at the attempt budget. No network request, sleep, or provider operation occurred. A production worker must also validate inputs, enforce a wall-clock budget, preserve task state, and handle cancellation. This example does not implement a complete scheduler.
Nstbrowser places built-in and custom proxy choices in the Profile workflow. Its documentation describes saved proxies and groups that can be reused for environment assignments. This helps operators keep the network choice next to the browser state used by a task. Session parameters still need to be interpreted according to the selected proxy product. The benefit is coordinated configuration, not a guarantee that rotation prevents blocks or improves every workload.
Use the proxy management guide to inspect the selected product and session options. Review Profile operations and group settings before changing environments that retain state. The offline policy was tested locally; a live Nstbrowser pool, provider rotation behavior, and authenticated target workflow were not tested.
Measure accepted records, complete tasks, interruption recovery, billed traffic, and operator intervention. Keep failures in the denominator rather than reporting only successful-request latency. A rotation policy is useful when it improves verified work under the same access and rate constraints, not merely when it produces more different IP addresses.
Q: Should every request use a different IP?
Only when the requests are independent and the provider and source policies permit that workflow. Stateful tasks often need continuity.
Q: Does a sticky session guarantee an unchanged exit?
No. Confirm the provider's allocation and availability behavior, then handle unexpected changes explicitly.
Q: Should I rotate immediately after HTTP 429?
Treat the rate response as a reason to follow the source's rate policy and Retry-After guidance, not a default instruction to add traffic.
Q: Can retries duplicate business actions?
Yes. An operation may succeed before the response is lost. Reconcile ambiguous outcomes before replaying writes.