Reputation: 158
I am using Redis server version 7.0.0 with Django-Redis. I have multiple workers in production and plan to use Django Redis's get_redis_connection.sadd to add values to a Set() in Redis. When multiple workers do that in Production, will data be lost due to two workers executing simultaneously?
I read that Redis's I/O is single-threaded before version 6.0; since I am using 7.0 (I/O multi-threaded), can concurrency issues/race conditions exist?
Upvotes: 0
Views: 504
Reputation: 6267
When multiple workers do that in Production, will data be lost due to two workers executing simultaneously?
No.
since I am using 7.0 (I/O multi-threaded), can concurrency issues/race conditions exist?
No.
Upvotes: 1