Escenario:
- Many many devices
- Each devices sent values each few seconds
- Want to store the values sent
I can use mongo with time series collections (https://www.mongodb.com/docs/manual/core/timeseries-collections/), but this needs a big mongo database, as the objetive to store this values is only save an read, dont modify that values and use them like historic data, i have thought use Elastic Search, for example, take a VPS put Elastic on it with big disk space (dedicated mongo is expensive than this option).
Mongo vs Elastic in this scenario?
CodePudding user response:
IMO, Elasticsearch seems to be a better choice due to below reason, I don't know if same is available in mongoDB.
- As you have a timeseries data, you can easily rollover your indices using the index lifecycle management, that saves your cost as well, as after sometime(according to your use-case), you can move your data to cheaper storage or even delete them automatically.
- You can also visualise your data stored in Elasticsearch using Kibana.