concurrency problems can be solved with locks, such as optimistic locks and pessimistic locks, but when you see many references to using redis queues, what is the whole process like?
whether it is like this: if you receive a request in the
API, push the task parameters to the redis queue, and then you need to execute the processing queue task. Does this operation keep querying the redis queue and execute it as soon as you find a task?
if 1000 requests are concurrently, Since it"s a queue, isn"t it a long time to wait for the last one to finish?