Storing published events in a database

There are obviously zillions of ways to store events published to the Particle cloud via Particle.publish(), but I’m currently experimenting with RethinkDB, a general purpose, real-time JSON database that could be useful for far more than just collecting sensor data. I chose it because it was easy to set up, had a nice interactive query UI, and because of its focus on JSON data.

If you think you’d find this particular approach useful, please check out the project page here for how to get it up and running:

In addition to an event stream handler, there’s also a server that captures arbitrary JSON data (logs, in this case) that can be posted from a Photon without having to go through the Particle cloud.

5 Likes