I am trying to reimplement redis in C++. When the client gets the query, should it simply serialize the query and send it or check the correctness on the client side itself and then send the query, if it is correct? It is not that clear from the documentation here.
Asked
Active
Viewed 121 times
0
-
It's up to the client developer. most clients allow free-style queries without any parsing and validation at all – Not_a_Golfer Mar 08 '16 at 14:44
-
@Not_a_Golfer How is the server supposed to handle queries? – Ayush Gupta Mar 08 '16 at 19:19
-
Do you mean you are rewriting Redis in c++ or just a client library? – The Real Bill Mar 08 '16 at 22:36
-
@TheRealBill rewriting Redis. – Ayush Gupta Mar 09 '16 at 18:05