Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Send x% of the users to A, the rest to B

by talexb (Canon)
on Oct 26, 2012 at 19:43 UTC ( #1001133=note: print w/ replies, xml ) Need Help??


in reply to Send x% of the users to A, the rest to B

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.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds


Comment on Re: Send x% of the users to A, the rest to B

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001133]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-07-06 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls