Per-Request Rotation vs Sticky Sessions: A Practical Guide
Choosing between per-request rotation and sticky sessions is a core decision when using rotating proxies. The right choice depends entirely on the job you need the proxy to do. This guide compares the two strategies we offer, explains how they work, and gives clear recommendations for common tasks.
- Per-request rotation is ideal for large-scale data collection from a single source.
- Sticky sessions are necessary for tasks that require logged-in states or multi-step processes.
- You control the strategy via simple options in your proxy username.
- Costs are the same per GB; the choice is about functionality, not billing.
What is per-request rotation vs sticky sessions?
Per-request rotation means your connection gets a brand new exit IP address from the targeted location every time you open a new connection to our gateway. Sticky sessions, also called session persistence, allow you to keep the same exit IP for a defined period (1 to 120 minutes) by using a session ID. This fundamental difference shapes how you design your crawlers, bots, and testing tools. The decision between per-request rotation vs sticky sessions hinges on whether your target website expects a single user to make multiple requests from one IP.
How per-request rotation works
When you connect without a session ID, our system automatically assigns you a fresh IP from the pool for your specified country, state, or city. This happens transparently on every new TCP connection. For HTTP clients that use connection pooling or keep-alive, a single connection may handle multiple requests, and those requests will all come from the same IP until the connection closes. To force a true per-request rotation, you can configure your HTTP client to close connections after each request or use a new connection for each task. This method is the default behavior and is extremely effective for distributing requests across many IPs to minimize the chance of any single IP being rate-limited or blocked.
How sticky sessions work
Sticky sessions are activated by adding two options to your proxy username: sid.xxxxxx (a unique session ID) and ttl.MM (the session lifetime in minutes). When you first connect with a new session ID, you are assigned an IP. Any subsequent connection using the exact same session ID within the TTL window will return to that same IP. This persistence is crucial for workflows where you need to maintain a login cookie, complete a checkout process, or simulate a continuous user session. If the underlying device goes offline, the system will automatically move your session to a new device in the same geographic location, maintaining your session state as best as possible. For a full setup walkthrough, see our guide on how to keep the same IP.
Comparison table: per-request vs sticky
| Feature | Per-Request Rotation | Sticky Sessions |
|---|---|---|
| IP Behavior | New IP on each new connection. | Same IP for the duration of the TTL (1-120 min). |
| Configuration | Default. No extra options needed. | Add sid.xxxxxx and ttl.MM to username. |
| Best For | Large-scale scraping, bulk data collection, price monitoring. | Logged-in actions, multi-step forms, shopping carts, social media posting. |
| Target Site Perception | Many different users. | A single, persistent user. |
| Concurrency | High concurrency spreads load across many IPs. | High concurrency from one session ID uses one IP; use multiple session IDs for multiple IPs. |
| Cost Impact | No direct cost difference. You pay per GB for traffic used. | No direct cost difference. You pay per GB for traffic used. |
| When IP Changes | When your client opens a new connection. | After TTL expires, or if you change the session ID, or if the exit device goes offline. |
When to use per-request rotation
Use per-request rotation when you need to make a vast number of requests to a single website or API without being blocked. The goal is to make your request volume look like natural traffic from many different users. This is the standard mode for web scraping large catalogs, price monitoring across thousands of products, and rank tracking across many keywords. It's also ideal for market research that involves scanning competitor sites, as it minimizes the risk of triggering anti-bot measures. If you are building a price tracker with Python, starting with per-request rotation is often the right approach. For high-volume tasks, remember that our monthly volume rates automatically lower your cost per GB as your usage increases within a calendar month.
When to use sticky sessions
Use sticky sessions whenever your script or tool needs to maintain state with a website. This is non-negotiable for tasks like social media management where you post or interact from an account, or ad verification that requires seeing a logged-in user's view. If you are checking ecommerce data that requires adding an item to a cart to see shipping estimates, a sticky session is essential. They are also critical for localization testing where you need to browse a site as a user from a specific location over several minutes. For managing multiple accounts, you would create a separate sticky session (unique session ID) for each account. Integration guides like Playwright Python proxy show how to bind a browser instance to a specific proxy session.
Cost examples for both strategies
Your billing is purely based on consumed traffic (GB), not on which rotation strategy you use. The cost per GB depends on the network you choose and your monthly volume band. For example, if you are using rotating residential proxies for a scraping job, your first 50 GB in a month cost $1.79 per GB. If that job uses 300 GB in the month, the first 50 GB are at $1.79/GB, the next 200 GB (50-250 band) are at a lower rate, and the final 50 GB (250-1000 band) are lower still. A sticky session job, like monitoring a logged-in dashboard, might use only 10 GB a month, billed at the entry rate. The key takeaway: a sticky session does not cost more than a rotating one for the same amount of data transferred.
Technical setup and username examples
You control the rotation strategy through the proxy username string. For per-request rotation to the United States, your username might look like USERNAME_net.res_cc.us. To target a city like Chicago, add city.chicago. For a sticky session that lasts 30 minutes targeting Germany, you would create a username like USERNAME_net.res_cc.de_sid.a7k2m9_ttl.30. The session ID (sid) can be any 6-16 character string of lowercase letters and digits; it's your handle to that specific IP assignment. You can use different session IDs for different tasks or accounts within the same proxy user. For a deep dive on all options, refer to the username options documentation.
Mixing strategies in a single project
Sophisticated projects often benefit from using both strategies. Your main data collection crawler might use per-request rotation to gather product listings from Amazon at scale. Meanwhile, a separate process might use a sticky session to log into a seller account and fetch private inventory data. You can manage these different needs by creating multiple proxy users within your account, each with its own login, password, and network permissions. This allows you to apply a monthly GB cap to the high-volume scraper while letting the logged-in session run independently. This hybrid approach is common in marketplace seller tools.
Common pitfalls and how to avoid them
A common mistake is using a single sticky session for high-concurrency requests, which queues all traffic through one IP and can look like a bot attack from that single address. Instead, if you need concurrent requests from multiple IPs, use multiple session IDs. Another pitfall is assuming an IP will stick forever; the TTL is a maximum, and the IP can change earlier if the exit device reboots. Your code should be resilient to IP changes within a session. Also, remember that session persistence is per session ID; if you need to resume a session after a script restart, you must reuse the exact same session ID string. For debugging, use IP check tools to verify your exit IP matches expectations.
Decision checklist: which should I choose?
- Does the task require being logged into an account? If YES, use a sticky session.
- Does the task involve a multi-step process (add to cart, checkout, form submission)? If YES, use a sticky session.
- Am I making a very large number of requests (thousands+) to the same domain? If YES, use per-request rotation.
- Is my primary goal to avoid IP-based rate limits by spreading requests? If YES, use per-request rotation.
- Am I checking how content varies by location without login? You can use either, but per-request rotation is simpler.
- Am I testing website performance from a region? Use per-request rotation to simulate different users, or a sticky session to simulate a single user's journey.
When in doubt, start with per-request rotation for data collection and switch to a sticky session only when you encounter a website that requires a consistent IP for functionality. For more on designing polite crawlers, read our guide on how to avoid getting blocked while scraping politely.
Advanced session management tips
For long-running tasks, you may need sessions longer than the maximum 120-minute TTL. The solution is to implement a session renewal process in your code: as the TTL nears expiration, your script can create a new connection with the same session ID. This often prompts the system to keep you on the same IP, though a change is possible. Store your session IDs in a database or configuration file so they can be reused across script runs. When scraping sites that use heavy browser fingerprinting, pair your sticky session with a consistent user agent and browser profile. Tools like Multilogin or GoLogin are designed for this. Always respect robots.txt and implement sensible rate limiting even when using rotating IPs.
Questions
Can I switch from per-request to a sticky session in the middle of a script?
Yes, but you need to establish a new proxy connection using a username that includes a session ID (sid) and TTL. Any existing connections will continue with their current IP behavior. It's a matter of changing the proxy credentials your HTTP client uses for its next request.
If I use a sticky session, can the target website see my real IP?
No. With any of our proxy networks, the target website sees only the exit proxy IP address, whether you are using per-request rotation or a sticky session. Your original IP remains hidden behind our gateway.
How many sticky sessions can I have active at the same time?
You can have as many active sessions as your concurrency limit allows (up to 1,000 concurrent connections per account). Each unique session ID represents a potential IP assignment. You can generate hundreds of session IDs for different tasks or user simulations.
Does using a sticky session increase my chances of getting blocked?
It can, if you make too many requests too quickly from that single IP. A sticky session gives you a consistent IP, but you must still mimic human behavior and respect the target site's limits. Use delays and reasonable concurrency per session ID.
If the IP in my sticky session is banned by a website, what happens?
The session will continue to use that IP until the TTL expires or the device goes offline. If the IP is banned, your requests will likely receive HTTP 403 or 429 errors. You can manually change your session ID to force a new IP assignment before the TTL ends.
Can I use sticky sessions with the SOCKS5 port?
Absolutely. The session mechanism works identically on port 7070 (HTTP/HTTPS) and port 7071 (SOCKS5). Just include the sid and ttl options in the username you provide to your SOCKS5 client.
Start with one top-up, use any network
Create an account in a minute, add $40 or more, and the same balance pays for residential, mobile, datacenter and ISP traffic.