J
J
JaxxDexx2017-05-12 14:08:48
Python
JaxxDexx, 2017-05-12 14:08:48

Is twisted suitable for inter-process communication between python scripts?

There are two scripts - cli and srv. They run on one local machine, but the cli script can be run in multiple instances. I need to organize the interaction between the cli scripts and the srv script, taking into account the following requirements:
1. Srv must be able to simultaneously process requests from several cli scripts;
2. Data exchange must be resistant to high loads;
3. In the execution results, I would like to transfer unhandled exceptions from srv to cli. (Although not mandatory here, but desirable)
In general, I'm wondering if twisted is suitable for such tasks? And if so, how much better is it than using Rpyc or Pyro? And if it does not fit, what library can you recommend me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qlkvg, 2017-05-12
@JaxxDexx

It is quite suitable, like almost any web framework in python. Screw, for example, txJSON-RPC on one side and jsonrpclib on the other.
1. Can do it out of the box. Asynchrony, that's all.
2. It depends on how high the load is.
3. Also no problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question