This is probably a question less about Rust and more about process communication. Even a point to the right wikipedia article would be helpful.
I have a multi threaded rust application that I finally got working (thanks to the help from the forum), and I am understanding what’s happening (I wrote a stdlib version, a crossbeam version, a version that used channels, and a version that shared state via Mutex). The Book was very helpful.
My question is “how can I extend the sharing of state beyond threads and into processes.”
More specifically, I want to have a rust application (A) that streams binary data to another application (B) on the same machine. I know that I can use a Tcp or Udp socket and have application B constantly query application A, but it seems like there would be a simpler way to write to a shared buffer or something.
Both applications are rust, though Application B is actually a Rust library that exposes a C api and is imported as a library into a running C application. I can have running threads in that application to process the data.
The ultimate goal, really, is to have the fastest and lowest cpu intensive method of sending simple binary data from one running application to another. Message ordering isn’t super important, though retaining mostly in order would be appreciated.
I would really appreciate a step in the right direction.