I am trying to make a slack clone using node.js, redis, mongoDB and socket.io. I have read that slack is using redis in their app and i am wondering what's the reason behind this? I am struggling to understand the caching flow! Is this diagram correc...
Suppose we have a handful of places identified by their latitude and longitude. What I need to do is to run a circle function (x^2 + y^2 = z^2) and get all the places that are inside this circle. Is there any way to retrieve this data by running a ma...
Hello, I'm just learning about caching (Redis on top of Mongoose in Node) and am being impressed with the benefits of caching for faster data retrieval. My understanding is that using a cache will be faster than accessing the database because of a c...
My node.js server is really becoming laggy or can say slow cause of huge db(mongodb) operations. I know there are some way to make it smooth and fast like clustering the server or server side caching. It's there anything else including addition and ...
My approach is as follow: SETEX a key (with some expiry) and the value - response of an endpoint. DELETE the key when a new record is created. Pretty basic one, what are the other techniques involved? How to decide the time for expiry of cache? ...