Let's say I have a Redis instance running and I have two clients A and B connected to it. I execute a read only operations LUA script from one of them and from the other a read only hash operation by using the Redis template in Java. Since all operations in Redis are blocking I assume that if the LUA script is issued first, the other client has to wait until the Lua script operation is finished. In the same way, if the hash operation is issued first, the Lua script operation has to wait until the hash operation is finished. Is this a valid statement? how does Redis handle calls from multiple sources if it's single threaded?
Asked
Active
Viewed 566 times
-1
-
3Does this answer your question? [Redis is single-threaded, then how does it do concurrent I/O?](https://stackoverflow.com/questions/10489298/redis-is-single-threaded-then-how-does-it-do-concurrent-i-o) – sazzad Dec 28 '20 at 08:34
1 Answers
0
Redis has an internal Even Loop that runs a single event on the main thread each time for more details see:

Guy Korland
- 9,139
- 14
- 59
- 106