I am new to redis and I noticed that all the services online have different numbers of connections depending on price. I am also wondering about how much memory is necessary for a real time chat app where no chat data needs to be stored.
For example one service gives 25MB and 10 connections for free.
I am building a chat app and I am using nodejs/mongodb/socketio. I create the connection to the db when the app loads and thats it. Is there more than one connection there happening in the background? If two people connect to my app at the same time and invoke some function that requires a database connection does that mean that two connections are being used? This isn't something I have even considered before.
And more specifically seeing as my app is using socketio and I am thinking about using redis does the amount of redis connection correlate in anyway with the amount of websocket connections or are they completely separate things?
And regarding memory. I understand that data stored in redis can be set to expire and will auto delete once it has expired. How fast will it delete stuff? Even the smallest 25MB seems to be huge in terms of a real time app. Is it possible to say give data an expiry time of 1 or 2 minutes to keep the db size low?
It seems that for a live chat app 25MB is actually pretty big. Are lots of connections necessary? If so why don't any of the redis services offer small db size with large connection amounts?