P Pitag Member Licensed User Longtime User Feb 15, 2023 #1 Hi to all, i was wondering which is the best way to exchange data between apps. My scenario is: - a B4J application that runs on my home system (not on a remote server like a VPS) - a B4A app that send some data to the b4j app (maybe settings or, anyway, a small amount of text data) which is the smartest way for the two to communicate in your opinion? In a local network i find mqtt very useful for example, but over the internet? Consider that i do not want to expose my system on the Internet (no port forwarding).
Hi to all, i was wondering which is the best way to exchange data between apps. My scenario is: - a B4J application that runs on my home system (not on a remote server like a VPS) - a B4A app that send some data to the b4j app (maybe settings or, anyway, a small amount of text data) which is the smartest way for the two to communicate in your opinion? In a local network i find mqtt very useful for example, but over the internet? Consider that i do not want to expose my system on the Internet (no port forwarding).
EnriqueGonzalez Expert Licensed User Longtime User Feb 15, 2023 #2 Pitag said: which is the smartest way for the two to communicate in your opinion? Click to expand... You have either HTTP with Jserver or MQTT with JMqtt broker and Client Pitag said: n a local network i find mqtt very useful for example, but over the internet? Click to expand... If it isnt much information, mqtt is good even over the internet Pitag said: Consider that i do not want to expose my system on the Internet (no port forwarding). Click to expand... then, Mqtt with an external Broker is enough. Or you can install a descentrilced VPN like tailscale and do whatever protocol you prefer. Upvote 0
Pitag said: which is the smartest way for the two to communicate in your opinion? Click to expand... You have either HTTP with Jserver or MQTT with JMqtt broker and Client Pitag said: n a local network i find mqtt very useful for example, but over the internet? Click to expand... If it isnt much information, mqtt is good even over the internet Pitag said: Consider that i do not want to expose my system on the Internet (no port forwarding). Click to expand... then, Mqtt with an external Broker is enough. Or you can install a descentrilced VPN like tailscale and do whatever protocol you prefer.
P Pitag Member Licensed User Longtime User Feb 15, 2023 #3 EnriqueGonzalez said: You have either HTTP with Jserver or MQTT with JMqtt broker and Client If it isnt much information, mqtt is good even over the internet then, Mqtt with an external Broker is enough. Or you can install a descentrilced VPN like tailscale and do whatever protocol you prefer. Click to expand... @EnriqueGonzalez do you know an online mqtt service? (i remember CloudMqtt but as far as i know, has only payed plans) Firebase services can be a solution? I remember that worked well on Android, but on B4J? I know Tailscale and appreciate it, but i would prefer not to use it. I cannot leave it active on my phone, meaning that if i need to use the app, i have to remember to activate Tailscale first. Upvote 0
EnriqueGonzalez said: You have either HTTP with Jserver or MQTT with JMqtt broker and Client If it isnt much information, mqtt is good even over the internet then, Mqtt with an external Broker is enough. Or you can install a descentrilced VPN like tailscale and do whatever protocol you prefer. Click to expand... @EnriqueGonzalez do you know an online mqtt service? (i remember CloudMqtt but as far as i know, has only payed plans) Firebase services can be a solution? I remember that worked well on Android, but on B4J? I know Tailscale and appreciate it, but i would prefer not to use it. I cannot leave it active on my phone, meaning that if i need to use the app, i have to remember to activate Tailscale first.
EnriqueGonzalez Expert Licensed User Longtime User Feb 15, 2023 #4 Pitag said: @EnriqueGonzalez do you know an online mqtt service? Click to expand... The Free MQTT Broker & MQTT Client by HiveMQ - Check out our MQTT Demo Try our free online MQTT broker and MQTT Websocket Client from HiveMQ. Ideal for testing, debugging, and learning about MQTT. www.hivemq.com Pitag said: Firebase services can be a solution? Click to expand... to store information yes. you can pull information in other please, but there are no libraries for firebase on B4J for example Pitag said: I know Tailscale and appreciate it, but i would prefer not to use it. Click to expand... i see, it happens Upvote 0
Pitag said: @EnriqueGonzalez do you know an online mqtt service? Click to expand... The Free MQTT Broker & MQTT Client by HiveMQ - Check out our MQTT Demo Try our free online MQTT broker and MQTT Websocket Client from HiveMQ. Ideal for testing, debugging, and learning about MQTT. www.hivemq.com Pitag said: Firebase services can be a solution? Click to expand... to store information yes. you can pull information in other please, but there are no libraries for firebase on B4J for example Pitag said: I know Tailscale and appreciate it, but i would prefer not to use it. Click to expand... i see, it happens
P Pitag Member Licensed User Longtime User Feb 15, 2023 #5 EnriqueGonzalez said: The Free MQTT Broker & MQTT Client by HiveMQ - Check out our MQTT Demo Try our free online MQTT broker and MQTT Websocket Client from HiveMQ. Ideal for testing, debugging, and learning about MQTT. www.hivemq.com to store information yes. you can pull information in other please, but there are no libraries for firebase on B4J for example i see, it happens Click to expand... @EnriqueGonzalez thank you, i will give it a try Upvote 0
EnriqueGonzalez said: The Free MQTT Broker & MQTT Client by HiveMQ - Check out our MQTT Demo Try our free online MQTT broker and MQTT Websocket Client from HiveMQ. Ideal for testing, debugging, and learning about MQTT. www.hivemq.com to store information yes. you can pull information in other please, but there are no libraries for firebase on B4J for example i see, it happens Click to expand... @EnriqueGonzalez thank you, i will give it a try