Redis list and concurrency

Hi,

After reading documentation about Redis Lists data type (Lists in Redis - Redis) , in ‘Best Practices’ section states that ‘Redis Lists are atomic, but be cautious when multiple Redis clients are interacting with the same list.’. I’m in doubt what cautions should be done.

My scenario is a producer that add items to the list, and 4 consumers consuming from that list. What is the behavior of Redis if two consumers pops an element a very same time? Do they run in some race condition? Will they get the same element (duplicated)?

Thanks