Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: RPC with Perl

by QuillMeantTen (Friar)
on Aug 27, 2015 at 07:12 UTC ( [id://1140162]=note: print w/replies, xml ) Need Help??


in reply to RPC with Perl

I'm currently trying to write up something approaching, you might want to have a look at those high level modules :

  • IO::Socket::UNIX allows you to specify the number of requests you might cache
  • Storable for data serialization, it allows you to serialize easily deeply nested structures into a network format and put that data directly into a file handle (nstore_fd, fd_retrieve)

About the rpc protocol since you want to use UNIX sockets and (correct me if I'm mistaken) I AM!those are half duplex you might want to go full duplex with two sets of sockets : one with a high listen parameters which will cache the request and a number of sockets which will receive the answers as fast as they are produced.

I guess (again correct me if I'm wrong) that you could serialize the reply socket filehandle in whatever object you are sending

Just my two cents, I find this topic very interesting :)

Replies are listed 'Best First'.
Re^2: RPC with Perl
by RonW (Parson) on Aug 27, 2015 at 16:17 UTC
    ... UNIX sockets and (correct me if I'm mistaken) those are half duplex ...

    Unix sockets are full duplex.

    Also, what you describe is actually called "simplex". "Half duplex" is 2-way, just only one side (or "party") may "talk" at any given time. Unix pipes are simplex - that is, one way.

      oops, my bad I'm going to correct that right away

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1140162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found