Best way for inter-process communication in Python

H

Hugo Ferreira

Hi everyone!

Here's the current scenario: I have a program in Python that computes
something very fast (<1s), but it takes a considerable amount of time
to read the startup data (>90s). Since the startup data is pretty
static, I want this program to be resident and ready in memory all the
time.

The client-side of this program is a function in PostgreSQL. For the
sake of simplicity, let's assume it is another program in Python that
will be asking the resident one for results on-demand. Let's also
assume that there will be dozens of concurrent requests.

My problem is: what is the fastest, easiest way to accomplish this
inter-process communication? The data between them will be very small:
1Kb max per request. I've thought about SOAP, sockets and named
pipes... But since I have no experience on any of them using Python, I
can't decide which way is better...

Just a few considerations: Python version is 2.4. PostgreSQL version
is 8.2RC1, OS version is Windows Server 2003.

Thanks in advance,

Hugo Ferreira
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top