1. [Phix] Three Apps Sharing Data
- Posted by euphoric (admin) Nov 12, 2021
- 625 views
OK, here's the basic setup:
I've got three apps--two children and a parent.
Maybe two satellites and a controller.
Use whatever paradigm terms you'd like.
The children are connected to outside data sources. They bring the data in from a websocket, and they need to send that data--or otherwise make it available, like inside a local database (?)--to the parent app.
So, two satellite apps providing data to a primary, controller app.
What is the best, most fastest way to accomplish getting that data to the parent?
Probably a local socket... eh? I'm using Phix, so I guess I should check the docs. Pete? Sockets? MQTT?
But if anybody has ideas in this regard, please discuss with me.
Thank you!
2. Re: [Phix] Three Apps Sharing Data
- Posted by petelomax Nov 12, 2021
- 627 views
Just recently I did https://rosettacode.org/wiki/IPC_via_named_pipe#Phix and that achieved 400K/s without me even trying.
There are more ways to do this than you can shake a stick at. The above is (currently) windows-only - is that an issue or not?
If I hadn't just done the above I'd be thinking of builtins/ipc.e and locking files to synchronise things.
From the sound of things you are safely past the sockets stage (icbw).
PS: I just realised I haven't actually published 1.0.1 yet!
3. Re: [Phix] Three Apps Sharing Data
- Posted by euphoric (admin) Nov 12, 2021
- 626 views
Just recently I did https://rosettacode.org/wiki/IPC_via_named_pipe#Phix and that achieved 400K/s without me even trying.
There are more ways to do this than you can shake a stick at. The above is (currently) windows-only - is that an issue or not?
Windows-only is fine, and if the above is your suggestion, I will use it.
From the sound of things you are safely past the sockets stage (icbw).
You mean with regard to the three apps communicating? It will be bi-directional...
The controller app could be a server, and the satellites could be clients... right?
PS: I just realised I haven't actually published 1.0.1 yet!
Well what are you waiting for?!
What sort of deliciousness is inside?
Let us know when you do.
4. Re: [Phix] Three Apps Sharing Data
- Posted by euphoric (admin) Nov 12, 2021
- 626 views
Just recently I did https://rosettacode.org/wiki/IPC_via_named_pipe#Phix and that achieved 400K/s without me even trying.
I'm not able to run that example. It gives me an error.
I guess this is what 1.0.1 is for.
Forked into: [Phix] When is 1.0.1 Coming Out?