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 ready 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?
↧