|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Send x% of the users to A, the rest to Bby talexb (Canon) |
| on Oct 26, 2012 at 19:43 UTC ( #1001133=note: print w/ replies, xml ) | Need Help?? |
|
If a user can make multiple requests, and you always want to send a user to the same place, then hashing some user attribute and picking a destination based on that should work. For example, you could hash their username and look at the LSB of the result to decide where to send them.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||