Dispatch TiddlyWeb jobs using beanstalkd
Project description
A TiddlyWeb plugin to dispatch tiddlers to asynchronous job queues.
This plugin uses beanstalkd to provide an in memory queing system
holding queues to external processes which will do something with
the information in the queue. The general goal is to allow processing
of tiddlers asynchronously: For example to do indexing, send mail,
etc.
The general model goes as follows:
* In init() of the plugin two things happen:
** a tiddler_written handler is registered, that handler has one job:
put a message in the default queue of beanstalkd
** N+1 external process are either forked or if launched by some other
mechanism, registered. The '1' processs listens on the default
queue and writes the tiddler ID into a queue named after each of
the N external processes (e.g. a tube named 'index')
* Each of the process listening on non-default tubes, processes
the tiddler, and then deletes it from the queue.
This is _highly_ experimental. You will need to be able to compile
beanstalkd in order to use this.
External requirements are:
client: http://github.com/earl/beanstalkc
server: http://github.com/kr/beanstalkd
Copyright 2010, Chris Dent <cdent@peermore.com>
BSD License
This plugin uses beanstalkd to provide an in memory queing system
holding queues to external processes which will do something with
the information in the queue. The general goal is to allow processing
of tiddlers asynchronously: For example to do indexing, send mail,
etc.
The general model goes as follows:
* In init() of the plugin two things happen:
** a tiddler_written handler is registered, that handler has one job:
put a message in the default queue of beanstalkd
** N+1 external process are either forked or if launched by some other
mechanism, registered. The '1' processs listens on the default
queue and writes the tiddler ID into a queue named after each of
the N external processes (e.g. a tube named 'index')
* Each of the process listening on non-default tubes, processes
the tiddler, and then deletes it from the queue.
This is _highly_ experimental. You will need to be able to compile
beanstalkd in order to use this.
External requirements are:
client: http://github.com/earl/beanstalkc
server: http://github.com/kr/beanstalkd
Copyright 2010, Chris Dent <cdent@peermore.com>
BSD License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for tiddlywebplugins.dispatcher-0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e568a2d2f7e2478aa6e7fea78dd1a5b7179c43185f67d01b00c7e7a99a400e |
|
MD5 | c43e0da92ede06b88f0335367560581e |
|
BLAKE2b-256 | 7dca37d8c40d392eb345fa65216053d6a9cd20b0cbd7c69380419b828334f7d5 |