Hacker News new | ask | show | jobs
by dev360 3784 days ago
Mongodb sounds like a disaster for IoT backend. Sorry for hatred but just can't see that scaling well.
3 comments

It's IoT Scale!
I guess most people here will get your reference - piling on, you need even less framework if you just pipe your data to /dev/null.
THAT is an interesting setup for a nosql microservice.
Mongodb is used in a small section of the project and it's not used to store data. In that case I would use Cassandra, together with Spark.
Why is that bad? Mongodb is great for data ingestion.
MongoDB has a reputation for losing data. I'll try to find the reference. EDIT: http://www.mongodb-is-web-scale.com/ https://aphyr.com/posts/322-call-me-maybe-mongodb-stale-read...
In some IoT scenarios you could afford losing a little bit of data. For instance this component does it with MongoDB https://github.com/telefonicaid/fiware-orion
It kind of sucks especially for that since it forces you to do offline compaction which is hell on earth. I cant imagine they have fixed that, but it was a MAJOR ops headache because it would NEVER finish.

Never again mongo for anything with lots of writes.