barx Well-Known Member Licensed User Longtime User Apr 25, 2020 #1 Hi I have an old raspberry pi Gen1. Never really used it much, but trying to make use of it now in a project for my house. Currently running an MQTT broker on it. I also want to store the MQTT messages in a database (probably a local SQLite) and create web server API functionality to serve historic data from DB in JSON format and maybe serve web pages to graph the historic data. I was going to try do this in Python as I thought Java would give too much overhead for the old unit, but from reading a few article, Java appears to actually run faster. My questions are: Would Java (non-ui) run ok on my old Pi? Would it be faster than a python script? Which version of Java to install. I see a couple of tutorials for installing Java on Pis, not sure which would be best. Thanks
Hi I have an old raspberry pi Gen1. Never really used it much, but trying to make use of it now in a project for my house. Currently running an MQTT broker on it. I also want to store the MQTT messages in a database (probably a local SQLite) and create web server API functionality to serve historic data from DB in JSON format and maybe serve web pages to graph the historic data. I was going to try do this in Python as I thought Java would give too much overhead for the old unit, but from reading a few article, Java appears to actually run faster. My questions are: Would Java (non-ui) run ok on my old Pi? Would it be faster than a python script? Which version of Java to install. I see a couple of tutorials for installing Java on Pis, not sure which would be best. Thanks
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2020 #2 1. Yes. 2. This question cannot be answered. The algorithms you will use is more important than anything else. 3. B4J needs Java 8+. Upvote 0
1. Yes. 2. This question cannot be answered. The algorithms you will use is more important than anything else. 3. B4J needs Java 8+.