Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shall I use MongoDB or CouchDB or anything else?

I'm developing a monitoring system using node.js + Redis to read the HTTP response from a web page and decide if it's up or down. However, I'm doing this every minute and I need to store the results to show to the end user.

How and which database should I use to save the data and present it in almost real-time? Even if I have few urls beings monitored, given that I get a response once every minute, there will be tons of data to show.

Thanks

like image 492
donald Avatar asked Dec 29 '22 02:12

donald


2 Answers

Probably the fastest solution will be Redis which also offers very useful commands for storing statistical data. I asked similar question on Redis google groups and it seemed to be a good use case for this DB.

like image 93
yojimbo87 Avatar answered Jan 08 '23 04:01

yojimbo87


Redis.

You are already using it. It supports disk backing and replication. Go for it.

like image 23
JasonSmith Avatar answered Jan 08 '23 04:01

JasonSmith