Forum Discussion
katic_13597
Nimbostratus
Jul 13, 2007increase the IRULE Performance ?
I am new to IRULEs ,I have an IRULE by which my Product Performance becomes Very slow, when HTTP requests are going via Big-IP IRULE the Performance is 2-requests per second , if we hit with HTTP r...
Leo_Katona_5507
Nimbostratus
Jul 15, 2007My URL looks like "http://+:995/DvsServer/one/Device/" , is "starts_with" with works for me ?
Yes, it will work. The HTTP header doesn't actually contain the entire URI but just the local part of it. If what you see in your browser's address field is "http://servername:995/DvsServer/one/Device/", [HTTP::uri] will only return "/DvsServer/one/Device/". The protocol, server name and port number are not returned.
Using the starts_with operator, as kirkbauer suggested, will save the iRule the trouble of always scanning through (nearly) the entire URI for occurrences of your search string. Instead, as soon as the first non-matching character is encountered, the iRule can skip the rest of the URI.
Using switch instead of if/elseif might be a bit more effective, but there shouldn't be a major difference, since most of the work is caused by the string comparison operations, and exactly the same comparisons must be done in both cases.
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