I m facing issues with redis in node.js. I am using socket.io with redis (without pub-sub model i.e single connection). My redis operations take lot of time to execute. Whenever my number of socket connections increases, time for redis commands increases exponentially. Sometime it went 10+ secs. I am struggling hard with this issue and am new to node.js.
How I come to know that Redis is taking time. I applied console logs before calling and after calling redis setex
method.
P.S. : we run the same test with python script and result is acceptable. I dont know why this problem persist for node.js.
Already tried: https://redislabs.com/blog/redis-running-slowly-heres-what-you-can-do-about-it/
any help is appreciated guys!
via iProgrammer
No comments:
Post a Comment