Using recno as a queue; alternative for consume()? -
02-01-2005
, 07:38 PM
Hi gang,
I'm putting together an application which queues messages in the
case of a communications failure/delay. I want that queue to be
reliable in the case of failure (machine reboot, process crash,
etc) so I've been playing with Berkeley DB.
Ideally I'd use a Queue, but the messages are of variable length.
So, I've been using a Recno. Is there a better alternative?
Specifically, I want consume(). Is there a best practice to
simultaneously read (in insertion order) and delete a record from
a Recno db?
This will be a multi-treaded app (in Python, whee).
Thanks!
--
__________________________________________________ _____________________
Marco E. Nicosia | http://www.escape.org/~marco/ | marco (AT) escape (DOT) org |