Redis queue, is a program put in and taken out immediately? Or should one program put it in and another program take it out? ? ? ?
Redis is single-threaded. Is it possible to have two programs put it in and get it at the same time? Is it possible to queue up the two programs so that only one program can get it instantly
Will multiple programs that are operated at the same time be automatically queued?
Reply content:Redis is single-threaded. Is it possible to have two programs put it in and get it at the same time? Is it possible to queue up the two programs so that only one program can get it instantly
Will multiple programs that are operated at the same time be automatically queued?
If you are fetching data and processing data with multiple threads, don’t consider the execution issue. The order will definitely be messed up