I like the first diagram. It fits on the page better and there won't be lock contention for the database between the Python and Java code.Amraresh wrote: ↑Sun Apr 08, 2018 2:26 pmI am a beginner. To send or receive data between pi and web, should we need to interface python code ( in pi ) with java node js or python code ( in pi ) with data base of web . Please find the images for much clarity. Let me know which one is feasible and better between them.
Scratch "Earth" and run it all on "Mars".Heater wrote: ↑Mon Apr 09, 2018 6:31 pmI like the first diagram as well.
Except:
Scratch Java. Make life simple and use "Middle ware Node.js" Where the "Node Middle ware" is your web server and anything else it needs to do.
Scratch Angular. Make life simple and use React. Or even nothing. Vanilla JS with CSS is fine for many things.
Scratch "Python" from the "Raspberry Pi Python Code" box. Keep life simple and replace with node.js and Javascript.
Your plan should work just fine.
Nah, the latency would seriously degrade the user experienceScratch "Earth" and run it all on "Mars".
The location of the OP User has not yet been defined. From your suggestions I was fairly certain your User was not Earthed in reality.