[dev] Command queue for Groo

Jan Schneider jan at horde.org
Tue May 30 01:27:40 PDT 2006


Zitat von Luciano Ramalho <ramalho at gmail.com>:

> Hi, all!
>
> This is the first of many messages from one of your SoC students, the
> one in charge of developing Groo, the Wandering Books application [1].
>
> Once a user types or scans the ISBNs of a bunch of books, if some of
> the numbers are not in our catalog, those ISBNs will be queued in a
> table and an asynchronous process will fetch the book metadata from an
> online source such as Amazon.com.
>
> If a book has no ISBN (happens with the older ones), another queue
> will be used to fetch book metadata given information such as title
> and author, if we can't find it locally.
>
> You probably already have several similar queues in Horde. Can you

No, not really.

> point me to some of the simplest implementations of queues to control
> asynchronous processes in your projects? Also, is there a canonical
> way of periodically firing up those asynchronous processes in Horde?

What comes to mind are the reminders for events (Kronolith) and  
tickets (Whups). These don't use event queues, but fetch the necessary  
data from the regular application tables. You could maybe do the same  
by retrieving all books that have an ISBN but not a title yet.
These reminders are called from a simple system cronjob, there are no  
cron facilities in Horde. There is also the Scheduler class that is  
used by Kronolith's reminder script.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list