So, does the request that the client sends in get re-sent via Spread and then the client sits and wiats for the response? If that's the case, Net::Server::Multiplex seems like a bad fit.

The client connections will be long lived. They will not be for a single request like say a HTTP request. The logic of the system is a state machine that changes based on input from the clients. When the state changes more than just the client who's input caused the change will be notified.

There will be many state machines in both instances and logic (eg groups of clients). I was going to allow them to be running process and have one network interface process to keep the client-server interface simple (also clean for firewalls).

Spread::Queue::Worker looks like it would be great for single requests but it still replies to the Spread system. (Reading a message from Spread blocks and the process should be able to deal with input from clients even if no Spread messages are ready. That's why it was going to poll Spread for messages while using the mutiplexing net I/O.)

In reply to Re^2: Using Net::Server::Multiplex and polling Spread by superfrink
in thread Using Net::Server::Multiplex and polling Spread by superfrink

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.