<div class="gmail_quote">On Mon, Feb 7, 2011 at 07:19, Martin Gencur <span dir="ltr"><<a href="mailto:mgencur@redhat.com">mgencur@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
OK,<br>
I'll start working on it ASAP.<br></blockquote><div><br></div><div>Excellent.</div><div><br></div><div>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).</div>
<div><br></div><div>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.</div>
<div><br></div><div>-Dan</div><div><br></div></div>-- <br><div>Dan Allen</div>Principal Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><div><a href="http://www.google.com/profiles/dan.j.allen#about" target="_blank">http://www.google.com/profiles/dan.j.allen#about</a><br>
<a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br></div><br>