Posted 2 years ago
Mongo Vs Redis, the Increment Battle
I was having a friendly dispute with a co-worker the other day, we were talking about what technology to use to count the number of impressions viewed in a certain time period. I was of the opinion that MongoDB could handle the load just fine, and he was of the mind that Redis was the solution to go with. I decided to put it to the test and here are my results.
I wrote the following quick ruby class and ran it on my MacBook Pro:
here are the results:
REDIS: 10723.352221581272 increments per second
MONGO: 14809.955155994303 increments per second
WOW, MongoDB is almost a full 40% faster at incrementing than Redis. I’m curious to hear of other people’s results, @devdazed
Replies
Likes
-
wenziwenzi reblogged this from devdazed
-
stanjenkins1128 likes this
-
streamates likes this
-
eignerchris likes this
-
kurokikaze likes this
-
pierskarsenbarg reblogged this from devdazed
-
devdazed posted this