Using epoll for blocking operations other than file I/O?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Perlbal > Using epoll for blocking operations other than file I/O?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Using epoll for blocking operations other than file I/O?  
EKC


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-13-07 06:11 AM

Hello,

I am currently using both Memcached and Perlbal as part of a Perl/C
internal web application. I have also written my own non-blocking
single-process web server in PERL using epoll via  Sys::Syscall.

I would like to allow my epoll web server to send emails via SMTP.
Naturally I want to do this in a manner than is non-blocking.

What is the best way for a Sys::Syscall epoll PERL script to
asynchronously send emails via SMTP? I'm not religious about SMTP
servers.

Perhaps I can open a socket to some sort of SMTP proxy server and
register epoll read/write callbacks to queue an email message? Does
anyone know of such a TCP/IP SMTP queueing proxy server?

Sorry about being off-topic, but I couldn't find a better list for
discussing Sys::Syscall.

P.S., I just noticed 'Gearman' on danga.com. Should I be using Gearman
to address this problem?

Thanks!






[ Post a follow-up to this message ]



    Re: Using epoll for blocking operations other than file I/O?  
Ask Bjørn Hansen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-13-07 12:11 PM


On May 12, 2007, at 10:09 PM, EKC wrote:

> P.S., I just noticed 'Gearman' on danga.com. Should I be using Gearman
> to address this problem?

That'd be an easy way to do it.   Depending on the work load, queue
and reliability requirements you might want to just have the gearman
worker insert the email into a database queue (or qmail/postfix/
sendmail queue if there's very little or no processing work involved).


- ask

--
http://develooper.com/ - http://askask.com/








[ Post a follow-up to this message ]



    Re: Using epoll for blocking operations other than file I/O?  
Brad Fitzpatrick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-14-07 06:11 AM

Yeah, I'd totally use gearman... in particular, Gearman::Client::Async
works wonderfully from Danga::Socket (epoll) loops, which perlbal uses.


On Sat, 12 May 2007, EKC wrote:

> Hello,
>
> I am currently using both Memcached and Perlbal as part of a Perl/C
> internal web application. I have also written my own non-blocking
> single-process web server in PERL using epoll via  Sys::Syscall.
>
> I would like to allow my epoll web server to send emails via SMTP.
> Naturally I want to do this in a manner than is non-blocking.
>
> What is the best way for a Sys::Syscall epoll PERL script to
> asynchronously send emails via SMTP? I'm not religious about SMTP
> servers.
>
> Perhaps I can open a socket to some sort of SMTP proxy server and
> register epoll read/write callbacks to queue an email message? Does
> anyone know of such a TCP/IP SMTP queueing proxy server?
>
> Sorry about being off-topic, but I couldn't find a better list for
> discussing Sys::Syscall.
>
> P.S., I just noticed 'Gearman' on danga.com. Should I be using Gearman
> to address this problem?
>
> Thanks!
>
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:28 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register