I am looking for a way to run a python program that listens to calls from other another python program. I tried it through the HTTP protocol, but it’s very slow when heavily used. Is it possible to listen to memory entries that another python program writes? Or another solution?
Sending and retrieving calls happens on the same machine.
Like I set up a while loop that never ends and every time looks into a file and reads it.
I guess database software like Google’s LevelDB and MongoDB use the same method.
Edit:
There can be several calls at once and the script is running all the time.
This is a super-vague question, but if you need two processes to talk to one another, maybe you can use sockets? You can send pickled objects through sockets or any other communication method you care to name, if that helps.