From: Robert Klemme Date: 2010-03-28T16:45:06+09:00 Subject: Re: non-blocking calls to external APIs On 03/28/2010 07:29 AM, David Collier wrote: > i need to send some logging information off to another system, via > rest/http. > in a rails app we're currently using delayedJob, which stores the events > to the DB, and another process sends them. this is a pretty heavy > process. > Are there any ways to use the net/http library to "fire and forget" a > call? > or perhaps a simple implementation using threads, that will be less > resource intensive than "curl &" The simplest that comes to mind: stuff your operations in a queue and have one or more threads process them. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/