CSUFTitanRover / TitanRover2018

Titan Rover 2018 Edition: Calypso
http://titanrover.com/
Apache License 2.0
12 stars 10 forks source link

Test if mongoDB and deepstream works together #42

Open Weffe opened 6 years ago

Weffe commented 6 years ago

We need to make sure that deepstream record changes reflect inside mongoDB

Weffe commented 6 years ago

From playing with the mongoDB and deepstream's records, it looks like records are updated in mongoDB when updated in deepstream. However, for the testing, I am just overwriting a record's data and not appending to it as a list. Will need to test about pushing to a list and see if there might be performance issues with it.

Weffe commented 6 years ago

Also, if you would like to see what data is currently inside the database...

ssh in to the nvidia and in a terminal type: mongo

  1. use deepstream - switch to the deepstream table
  2. db.deepstream_records.find().pretty() - pretty print everything

Or you can do this locally for a local mongodb instance

Weffe commented 6 years ago

I have updated the test folder for the fake science sensors to use Lists in deepstream. I was not able to test it but it should work. (/rover/core/servers/deepstream)

@kiren-s Your goal is to try and make sure whatever is updating on deepstream is getting replicated into the mongo database. There is already a mongodb plugin written that I have tested that works. The only requirement for you is to install and setup mongodb on your computer. Then inside the /rover/core/servers/deepstream/ds-server/ folder you can npm install and npm start to start up the Deepstream server. Inside /deepstream/test-client-and-receiver/ you can do the same npm install and npm start to start spitting out fake data to the Deepstream server.

Refer to the README in the folders for any clues. Also, feel free to ask for clarifications from me. Kind of wrote this up in a rush 😅