Home > Software engineering >  Multiple processes deal with the problem of concurrent with redis
Multiple processes deal with the problem of concurrent with redis

Time:11-18

There is a problem with a day still no solution, trouble gang help think it over,
description:
I use redis for multi-process concurrent processing, that is, a server at the same time on different equipment (computer, the same local area network) is open, for each user of a lock processing instruction, namely one received instructions according to the user ID to create a KEY - VAL tag values, if the user instruction processed, generating a K - V is the actual value, whether or not treatment success at the same time, will remove the tag value, so even if a user logs in other processes, also can according to read the tag value, actual value exists for filtering,
problems:
Did not reach the effect of filtering, clearly already produce tag values and actual values, but not intercept processing,

CodePudding user response:

Each process is the same redis connection
  • Related