zerorpc-node | zerorpc for node.js - zerorpc for node | Runtime Evironment library
kandi X-RAY | zerorpc-node Summary
kandi X-RAY | zerorpc-node Summary
ZeroRPC is a communication layer for distributed systems. zerorpc-node is a port of the original [ZeroRPC] for node.js. We have full client and server support for version 3 of the protocol, and clients/servers written in the Python version can communicate transparently with those written in node.js. This project is in alpha.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of zerorpc-node
zerorpc-node Key Features
zerorpc-node Examples and Code Snippets
Community Discussions
Trending Discussions on zerorpc-node
QUESTION
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.
...ANSWER
Answered 2019-Jul-18 at 17:07I ended up using gipc
to spin up processes. The cancellation mechanism relies on the fact that when a gipc
process is terminated, the pipe closes. The entire API is complicated, this is what I ended up with:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install zerorpc-node
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page