'Use Elastic Search to store data values sent by IOT devices in a period of time

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?



Solution 1:[1]

IMO, Elasticsearch seems to be a better choice due to below reason, I don't know if same is available in mongoDB.

  1. 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.
  2. You can also visualise your data stored in Elasticsearch using Kibana.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Amit