Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: AQ vs. PL/SQL for implementing a messaging queue
Hi Steve:
If you can, you might want to re-think your design so that instead of having both database transactions and messages, you only have a message. The message itself when received will cause/trigger the database transaction.
If that design change is not workable, then, yes, by all means use AQ. The second approach of simulating a queue without actually having one has all sorts of potential to not be at all scalable and even if you get it working, break down in the future when other application changes come along.
Looping in the application code in a NOWAIT until it succeeds is not where you want to go.
John Received on Sun Oct 17 2004 - 12:13:55 CDT