Mongodb vs Redis in Meteor

Dominus
Dominus
Dec 20, 2014 · 1 min read

Write, read and delete 1,000 times.

On the client.

redis set: 228ms
redis get: 18
redis del: 189
redis total: 435
mongo insert: 365
mongo findOne: 3533
mongo remove: 131
mongo total: 4129

On the server.

redis set: 303
redis get: 128
redis del: 156
redis total: 587
mongo insert: 842
mongo findOne: 890
mongo remove: 615
mongo total: 2347

Write, read and delete 10,000 times.

On the client.

redis set: 2656
redis get: 169
redis del: 1197
redis total: 4022
mongo insert: 5512
mongo findOne: 1346615
mongo remove: 8227
mongo total: 1360354

On the server.

redis set: 1626
redis get: 1362
redis del: 1810
redis total: 4798
mongo insert: 6744
mongo findOne: 18407
mongo remove: 20832
mongo total: 45983

Conclusion

Redis is fast! Especially at reading. FindOne with Minimongo on the client is slow.

    Dominus

    Written by

    Dominus

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade