ConnectedPlacesCatapult / SharingCitiesDashboard

Personalisable dashboard for Sharing Cities IoT data
Apache License 2.0
6 stars 5 forks source link

Analytics - Return Response - if successful - Data in range #22

Open arya-hemanshu opened 6 years ago

arya-hemanshu commented 6 years ago

i) Prediction array ii) Timestamp for the predictions iii) Request id iv) Timestamp of the response

arya-hemanshu commented 6 years ago

This needs more discussion as our current architecture states that data needs to go to database and from there backend will pick up the data and then serve it to user.

However when data is small enough that training and predicting wouldn't require much time, the response can be send directly to backend which can relay it to frontend, and simultaneously can be saved in database, which will increase response time