M mmanso Active Member Licensed User Longtime User Jul 16, 2019 #1 Hi all, I’m analysing an app that needs to run of different android devices and the database should be shared among all the devices. The app will work mainly offline (no internet) and the devices might share the same local network. I’ve seen solutions that allow to replicate data through clients (mongodb for example) but all require a server on the internet (or on the local network). I would like that one of the android devices could act like the server. I though in creating some kind of api on the master device and all of the devices would use that same api. This has the advantage that the api would be only one used for all. Would this be a good approach for b4a? On top of SQLite? Would it be performant? Any suggestions will be appreciated. Thanks.
Hi all, I’m analysing an app that needs to run of different android devices and the database should be shared among all the devices. The app will work mainly offline (no internet) and the devices might share the same local network. I’ve seen solutions that allow to replicate data through clients (mongodb for example) but all require a server on the internet (or on the local network). I would like that one of the android devices could act like the server. I though in creating some kind of api on the master device and all of the devices would use that same api. This has the advantage that the api would be only one used for all. Would this be a good approach for b4a? On top of SQLite? Would it be performant? Any suggestions will be appreciated. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Jul 17, 2019 #2 Check CloudKVS: [B4X] CloudKVS - synchronized key / value store It is built for such use cases where the devices are sometimes online. You can use a PC or Raspberry Pi for the server. Upvote 0
Check CloudKVS: [B4X] CloudKVS - synchronized key / value store It is built for such use cases where the devices are sometimes online. You can use a PC or Raspberry Pi for the server.
M mmanso Active Member Licensed User Longtime User Jul 18, 2019 #3 Erel said: Check CloudKVS: [B4X] CloudKVS - synchronized key / value store It is built for such use cases where the devices are sometimes online. You can use a PC or Raspberry Pi for the server. Click to expand... Hi Erel, Wouldn’t be nice if one of the android devices could be the “master” avoiding one more piece of hardware (the rasp or the pc)? Does CloudKVS runs as a service on Android? Thanks. Upvote 0
Erel said: Check CloudKVS: [B4X] CloudKVS - synchronized key / value store It is built for such use cases where the devices are sometimes online. You can use a PC or Raspberry Pi for the server. Click to expand... Hi Erel, Wouldn’t be nice if one of the android devices could be the “master” avoiding one more piece of hardware (the rasp or the pc)? Does CloudKVS runs as a service on Android? Thanks.
Erel B4X founder Staff member Licensed User Longtime User Jul 18, 2019 #4 mmanso said: Does CloudKVS runs as a service on Android? Click to expand... No. CloudKVS is built as a real and powerful web server. It is a B4J jServer solution. Upvote 0
mmanso said: Does CloudKVS runs as a service on Android? Click to expand... No. CloudKVS is built as a real and powerful web server. It is a B4J jServer solution.
M mmanso Active Member Licensed User Longtime User Jul 18, 2019 #5 I understand that (and makes sense on the perspective you present it). But don't you think that when you don't need a powerful web server and since B4X (idea) is being multiplatform, would be nice to have a "lite" version to use on a android machine (you've quad and octa core android machines) and could avoid mantaining another equipment (being the rasp or the pc). This is just a though... in internal apps sometimes you don't need all the power you mentioned that CouldKVS is actually designed for. Its concept could be very nice and used in lower environments. Upvote 0
I understand that (and makes sense on the perspective you present it). But don't you think that when you don't need a powerful web server and since B4X (idea) is being multiplatform, would be nice to have a "lite" version to use on a android machine (you've quad and octa core android machines) and could avoid mantaining another equipment (being the rasp or the pc). This is just a though... in internal apps sometimes you don't need all the power you mentioned that CouldKVS is actually designed for. Its concept could be very nice and used in lower environments.
Erel B4X founder Staff member Licensed User Longtime User Jul 18, 2019 #6 You can implement a custom solution based on MQTT. You can run the broker on an Android device. Upvote 0