If you want a standard protocol with less overhead,
fastCGI might be a good choice (purely as protocol
between your client and your server, without a webserver
involved)
Comment on Re: Integrating Perl into language independent networked applications