Making Amara services available over Beanstalkd
Getting started
"Setting Up Beanstalkd on Ubuntu for Python" -- a nice recipe
"Beanstalkd / Python Basic Tutorial" -- a nice tutorial
- See also:
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
