On Mon, 2011-02-07 at 16:22 -0500, Dan Allen wrote:
On Mon, Feb 7, 2011 at 07:19, Martin Gencur
<mgencur(a)redhat.com>
wrote:
OK,
I'll start working on it ASAP.
Excellent.
One example that has gotten a lot of press lately, and one that many
people will be able to relate to, is a status update (given the
frequent twitter outages). When you are posting a status update, you
want it accepted as quickly as possible, as someone might be doing it
from a phone or while their wife is calling. But you also want it to
be reliable. So drop it on a queue. Once it passes through the queue,
the observer can handle the task of pushing it into the data store
(which in a real app might involve updating the search index, etc).
Good idea ;-) I will go for it.
On a related note, you could have the clients themselves simply
observe topics which that observer publishes when it updates the data
store. That way, clients aren't pounding the heck out of the database.
I'll leave it up to you to decide what you want to implement.
-Dan
--
Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
http://www.google.com/profiles/dan.j.allen#about
http://mojavelinux.com
http://mojavelinux.com/seaminaction
--
Martin Gencur
Seam QA Associate