I'm writting a server that will have many client connections. I was going to use
Net::Server::Multiplex but I also want to talk to a message queue (
Spread ). Spred requires polling. N:S:M will deal will all of my client-server I/O (and the listening socket) but not with polling the messages queue.
Any ideas where I should put the polling of Spread? I thought about putting it at the end of each I/O function in the Multiplex system (new connection, recieve data, etc). I also thought about using a timer and signal handler but I don't think it's desireable to have the signal handler get too long (polling, reading the message queue and, then dealing with the message.)
The idea is that the server's function is done by many daemons that poll the message queue system. I'm writting an interface to that system which will listen on a TCP socket and map requests over this network interface to request-messages on the Spread Message Queue. The responses will come back over the message queue and my program will send the results back over the network.
Thanks, Chad
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.