I have an electron app frontend (zerorpc-node) communicating with a python backend (zerorpc-python) that needs to:
a) be able to send requests to the backend [standard zerorpc call]
b) be able to run multiple backend processes simultaneously [followed the architecture in https://github.com/0rpc/zerorpc-node/issues/96)
c) be able to cancel a backend process at will [not sure how to do this with current architecture]
Any guidance on how to architecture a solution to (c) would be great. If necessary I am willing to switch away from zerorpc if it is limiting, but if the solution involves using zerorpc that's fantastic.
I ended up using
gipcto spin up processes. The cancellation mechanism relies on the fact that when agipcprocess is terminated, the pipe closes. The entire API is complicated, this is what I ended up with: