[typo] Slow spam checking makes Baby Jesus cry

Josh Susser josh at hasmanythrough.com
Sun Aug 20 16:09:21 EDT 2006


On Aug 20, 2006, at 1:02 PM, Piers Cawley wrote:
> The catch is, IPSocket.getaddress, which is what we use for DNS
> lookups, appears to be be a blocking call, which with the nature of
> Ruby threads, means it'll *still* hold up processing during the
> lookup.
>
> Thoughts?

What about using BackgrounDRb to do the spam processing  
asynchronously? Toss the comments to be processed into a queue in the  
DB, fire up a BDRb worker, and walk away.

--
Josh Susser
http://blog.hasmanythrough.com




More information about the Typo-list mailing list