Making Amara services available over Beanstalkd

Getting started

Recipe for Ubuntu Hoary

export DL=$HOME/dl
export SRC=$HOME/src

sudo apt-get install libevent1 libevent-dev #(just 1.3e for now, not latest 1.4.8)
cd $DL; wget http://xph.us/software/beanstalkd/rel/beanstalkd-1.0.tar.gz; cd $SRC
tar zxvf $DL/beanstalkd-*.tar.gz
cd beanstalkd*
make

easy_install PyYAML

# now you should be able to start the beanstalkd daemon
./beanstalkd -d -p 99988

# get the python beanstalkd client
# either get a package:
# cd $DL
# wget http://pybeanstalk.googlecode.com/files/pybeanstalk-0.11.1.tar.gz
# tar zxvf $DL/pybeanstalk-*.tar.gz
# cd $SRC
# 
cd $SRC
svn checkout http://pybeanstalk.googlecode.com/svn/trunk/ pybeanstalk-SVN
cd pybeanstalk-SVN
python setup.py install

# quick test
# open two different shells (or use screen) type the following in the two different shells:
cd examples
python simple_clients.py producer localhost 99988
python simple_clients.py consumer localhost 99988
#ctrl-c for each to exit

Serialize requests to Amara

Amara/Beanstalkd (last edited 2010-12-03 17:56:45 by LuisMiguel)