Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Interprocess communication designby shemp (Deacon) |
on Sep 16, 2005 at 17:17 UTC ( [id://492683]=perlquestion: print w/replies, xml ) | Need Help?? |
shemp has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, I'm writing my first real socket driven interprocess communication suite. In a nutshell, this will be used to do something similar to what AUTO_INCREMENT columns do in mysql, but for a variety of reasons, i need something a bit different. This is actually an upgrade to a system that uses AUTO_INCREMENT for various values, but over the years i've identified a number of shortcomings of the existing system. Basically, there will be one server process that listens for requests for information. A base request will supply about 10 values, passed all at once and expect about 20 values returned all at once. Then the connection will be ended. I was thinking of using XML::Simple to format data passed between the server and clients. I dont want a lot of overhead, but i cant just use positional params or something like that because not all requests will provide exactly the same amount of info, or return the same amount of info. So if i keep the tag names short, i dont think i'll incur too much overhead. The server cannot be forking, because the result of one response will affect subsequent responses, so the server will need to fulfill requests one at a time. And, most requests to the server will be coming from a different machine than the server is running on.
So i guess this boils down to 2 questions:
I use the most powerful debugger available: print!
Back to
Seekers of Perl Wisdom
|
|