Forum Discussion
dragonflymr
Cirrostratus
Dec 14, 2015iRule - which option is better performance wise
Hi, I need to reject request when given number of concurrent HTTP session is created (based on session cookie). So above limit I should not accept more requests. I wonder which way will be le...
dragonflymr
Cirrostratus
Dec 14, 2015Hi Kai,
My filling was as well that performance wise it's better to use HTTP::cookie value $cookie ne "" in HTTP_REQUEST but you never know :-)
Based on iRule performance stats it as well seems that working in L7 is less cycle hungry that in L4.
Piotr
P.S. Not my idea, just found some iRule posted on the forum and modified it as much I my skills allowed :-)
Kai_Wilke
MVP
Dec 14, 2015If you really want to get sure which method is faster, then you may set a timestamp (e.g. set start_time [clock clicks] during "CLIENT_ACCEPTED" and then recheck this timestamp (e.g. [expr { $stop_time - $start_time }] when you have proven the existence of the cookie using the one and the other mothod. But I strongly believe this would be just for coriousity... ;-)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects