is there any order in which redis process commands

13 views
Skip to first unread message

Tuco

unread,
Apr 4, 2017, 8:49:36 AM4/4/17
to Redis DB
Hi, 

wanted to know how does redis process commands. One after the other in the order in which they arrived? Lets say some slow queries are running because of a rogue client and some commands are queued up to be executed. Will redis execute and return the result in which it was asked?

Thanks
Tuco

Jan-Erik Rediger

unread,
Apr 4, 2017, 8:58:28 AM4/4/17
to redi...@googlegroups.com
Redis is single-threaded and will thus work on commands one-by-one in
the order they arrived at the server.
Slow queries (such as `KEYS *` or certain set operations on huge sets)
will cause blocking other clients.
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages