How Do Rotating and Sticky Sessions Work?
It’s one thing to know that you need proxies, but it’s an entirely different thing to launch projects with them. There are so many aspects that you have to consider, but one of the most critical decisions is choosing the right kind of proxy session.
There are two sessions that you can choose from in Smartproxy: sticky and rotating. To find these options, you need to click on the Endpoint generator tab in your Dashboard and choose which kind of proxies, datacenter or residential, you want to use.
Let’s dissect these sessions and see where they work best.
What Is a Sticky Session and How Does It Work?
It’s best to use sticky sessions for social media management and retail. These sessions are beneficial if you want to create new accounts or login into them.
Session stickiness can be translated to session persistence. This means that the proxy will not change with each new request, and the IP address will stay the same for an extended period of time. Our datacenter proxy session can last for up to 30 minutes, and you can choose our residential proxy session length between 1 minute, up to 10 minutes, or up to 30 minutes.
It’s vital to keep in mind that we cannot guarantee the same IP address for all those precious 10 or 30 minutes when you’re using residential proxies. After all, these are IP addresses that belong to real devices, and they can turn off in the middle of your session.
When you start your session, the countdown begins when you send your first request. The session terminates when no response is received from an IP address, or there is no activity for 60 seconds in that session. After the session’s termination, you will automatically receive a new sticky IP address. The same rules will apply to this IP address too.
Besides, when you’re using a sticky session, you can use any port(s) in the ports range to connect to the proxy server (endpoint). You can also download your filtered list of domain:ports by clicking on Download the list.
The most popular countries have up to 10,000 ports for sticky IPs. For example, it.smartproxy.com: 25762 will allow you to use the same Italian IP address for up to 30 minutes. Please note that this endpoint (it.smartproxy.com) has 10,000 sticky ports, from 20001 to 29999.
What Is a Rotating IP Session and How Does It Work?
Use rotating sessions for the best web scraping experience and price/product monitoring.
In this case, IPs change automatically with every connection request. For example, you can open a website with one IP address, but when you take further action, such as reloading the website or opening a new link, the IP will change instantly.
Oh, and Sneakerheads…
You thought that we forgot about you? Not in a million years!
The secret is that you have to utilize both sessions if you want to master the sneaker market. Use rotating sessions when you’re monitoring new releases, but change your gear to sticky sessions when you start copping.