Hi,
I have taken the redis-cli.c and modified it to work as a Loader tool.
I made two tools - one loader which will do INCR for a key - key123
and another tool Monitor which will do GET on key123
And the load I pump is around 5000 INCR/sec to Redis Server. No pipelining.
Both at Loader and Monitor tool I do frequent print of current time and latest value of key
What I have observed is that at time T1, the Loader print key value as 4000, but Monitor print key value as 4013.
How it can happen?
I know that Redis is single threaded and all operations are atomic.
My Loader and Monitor code is exactly same except one do INCR and other do GET.
Any specific reason for this?
rgds,
Prince