09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Basic <strong>Queuing</strong><br />

Basic <strong>Queuing</strong> Illustrated<br />

Modeling Queue Entities<br />

Basic <strong>Queuing</strong> — One Producer, One Consumer<br />

At its most basic, one producer may enqueue different messages into one queue.<br />

Each message will be dequeued and processed once by one of the consumers. A<br />

message will stay in the queue until a consumer dequeues it or the message expires.<br />

A producer may stipulate a delay before the message is available to be consumed,<br />

and a time after which the message expires. Likewise, a consumer may wait when<br />

trying to dequeue a message if no message is available. Note that an agent program,<br />

or application, can act as both a producer and a consumer.<br />

Basic <strong>Queuing</strong> — Many Producers, One Consumer<br />

At a slightly higher level of complexity, many producers may enqueue messages<br />

into a queue, all of which are processed by one consumer.<br />

Basic <strong>Queuing</strong> — Many Producers, Many Consumers of Discrete Messages<br />

In this next stage, many producers may enqueue messages, each message being<br />

processed by a different consumer depending on type and correlation identifier. See<br />

Figure 7–2.<br />

Figure 7–2 portrays a queue table that contains one queue into which messages are<br />

being enqueued and from which messages are being dequeued.<br />

Modeling and Design 7-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!