erlang-beanstalk

An Erlang client library for beanstalkd.

Howto get it

Download a tarball, or git clone git://github.com/tim/erlang-beanstalk.git.

Howto use it

Quick start (producing jobs):

{ok, Socket} = beanstalk:connect(_Host="0.0.0.0", _Port=3000),
Job = beanstalk_job:new("hey there"),
beanstalk:put(Job, Socket).

Quick start (processing jobs):

{reserved, Job} = beanstalk:reserve(Socket),
io:format("~p~n", [beanstalk_job:body(Job)]),
deleted = beanstalk:delete(Job, Socket).

See the included README.txt for a bit more detail.

27th April 2008