# \[ANN\] async-observer rails plugin

**URL:** <https://www.ruby-forum.com/t/ann-async-observer-rails-plugin/123111>\
**Category:** Rails\
**Created:** [December 14, 2007, 3:27am UTC](https://www.ruby-forum.com/t/ann-async-observer-rails-plugin/123111 "2007-12-14T03:27:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/839c29/32.png) [@krat](https://www.ruby-forum.com/u/krat)\
**Post date:** [December 14, 2007, 3:27am UTC](https://www.ruby-forum.com/t/ann-async-observer-rails-plugin/123111/1 "2007-12-14T03:27:57Z")

</div>

I’m pleased to announce the existence of async-observer.

This is the very first public release. In the future I’ll confine  
announcements to the beanstalk-talk mailing list.

## WHAT IS ASYNC OBSERVER?

Async Observer is a Rails plugin that provides deep integration with  
Beanstalk.

beanstalkd is a fast, distributed, in-memory work-queue service. Its  
interface  
is generic, but is intended for use in reducing the latency of page  
views in  
high-volume web applications by running most time-consuming tasks  
asynchronously.

## OUR FEW URLS

Download the code and learn all about async-observer:  
[http://async-observer.rubyforge.org/](http://async-observer.rubyforge.org/)

Talk about async-observer development or use on the beanstalk mailing  
list at:  
[http://groups.google.com/group/beanstalk-talk](http://groups.google.com/group/beanstalk-talk)

## HOW TO USE IT

Here’s some example code. Want to call a method asynchronously?

obj.async\_send(:method\_name, arg1, arg2)

Want to define an asynchronous after\_create hook?

class Person  
async\_after\_create do |person|  
logger.info “created a person: #{person.id}”  
end  
end

It’s that easy! For all the gory configuration details, see the web  
site.

## DEPENDENCY

Async Observer requires beanstalkd and the beanstalk-client gem. You can  
find  
them at:

[http://xph.us/software/beanstalkd/](http://xph.us/software/beanstalkd/)  
[http://beanstalk.rubyforge.org/](http://beanstalk.rubyforge.org/)

## KNOWN BUGS

- This plugin was extracted from in-house functionality and has many  
design  
warts.

kr
