Viren Negi
2012-10-25 18:22:57 UTC
Hello guys ,
this thing is bothering me for a while so I intend to ask
it at a place where I sure that I would get a correct answer .
I have a* redis List *called "*money_payout*" Where a list of all the
money that need to payed are stored
Now I connecting the redis using ruby redis client the list is quite vast
so In a process of faster paying out of money running multiple redis
client which are polling the same list.
Now the thing that bothering me is that
Consider a time when more than one redis client ping the redis for *pop* or
*BLPOP* request from the lists ("money_payout")
Let say the list currently contain
[500,100,290,900, ...] all in USD
so will there be ever be a chance that the two *pop request i.e
(LPOP/BLPOP) * sent to redis would return result to the two clients that
500 USD,500 USD instead of 500 USD and 100 USD
I want to know what happen in such situation I know such situation is
pretty rare to achieve but this one thing is boiling my head
I assuming that redis is smart enough to understand that an act accordingly
but that is just assumption
Guys in redis group your thought
Thanks
this thing is bothering me for a while so I intend to ask
it at a place where I sure that I would get a correct answer .
I have a* redis List *called "*money_payout*" Where a list of all the
money that need to payed are stored
Now I connecting the redis using ruby redis client the list is quite vast
so In a process of faster paying out of money running multiple redis
client which are polling the same list.
Now the thing that bothering me is that
Consider a time when more than one redis client ping the redis for *pop* or
*BLPOP* request from the lists ("money_payout")
Let say the list currently contain
[500,100,290,900, ...] all in USD
so will there be ever be a chance that the two *pop request i.e
(LPOP/BLPOP) * sent to redis would return result to the two clients that
500 USD,500 USD instead of 500 USD and 100 USD
I want to know what happen in such situation I know such situation is
pretty rare to achieve but this one thing is boiling my head
I assuming that redis is smart enough to understand that an act accordingly
but that is just assumption
Guys in redis group your thought
Thanks
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/Bv9nk2BpcwMJ.
To post to this group, send email to redis-db-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to redis-db+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/Bv9nk2BpcwMJ.
To post to this group, send email to redis-db-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to redis-db+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.