I am working on home automation system and I my idea was this:
There will be client app, which will be running on classic HTTP server (on internet). It will communicate with firebase realtime (NoSQL) database. This app will also run on Raspberry Pi (Raspberry Pi will serve as local HTTP server).
Raspberry Pi will also listen to database changes and control ESP32 modules (according to entries in database). There is block diagram of my system:
My question is - is it bad idea to has there that remote database (firebase database)? Because this home automation system is actually my bachelor thesis and in my defense of that work one professor claimed, that this is bad architecture, that database should be on Raspberry Pi and no real project use this type of architecture (database in internet instead of local on RPi). That it is insecure and just - no body do that. Is he right?
NOTE: Reason why I have there "internet" database is to have ability to control system via internet and not only locally...It seemed for me as most simple solution of global control feature...
So who is right? And if professor, what then is most simple way to implement global (via internet) control? Any ideas?
Thanks!
question from:
https://stackoverflow.com/questions/66053193/is-using-remote-database-firebase-wrong-idea-for-home-automation-system 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…