Forum Discussion
Arie
Apr 21, 2011Altostratus
It depends on the number of items you're checking against. The rule of thumb is to use "switch" up to about a 100 items and a class for more than a 100 items.
However, this is from a performance perspective. One problem I've encountered with using switches is that iRules tend to apply only to new connections. In other words, updates to iRules do not affect existing clients. In my experience classes do not have this drawback.