Best Option
I have an application that needs me to select a pool based on the TCP port that it connects to the F5 on. (Server Port or Local Port) The number of ports that need to be tracked for each server can run into the thousands. My first idea was to use a data group and the switch command. The reason I wanted to go this way was because the switch command is suppose to be more efficient than the if statement. However, I have discovered that the switch command can not use data groups. So now I am considering going back to the if statements and use the data groups. The reason is because I believe using data groups will be a much more manageable option based on the number of TCP ports I have to account for. My basic question is do I lose much efficiency doing it this way or is there a better option out that I have not thought of yet. Thanks for any feedback.
Joe