20.01.2015 Views

Performance Modeling and Benchmarking of Event-Based ... - DVS

Performance Modeling and Benchmarking of Event-Based ... - DVS

Performance Modeling and Benchmarking of Event-Based ... - DVS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.2. PERFORMANCE MODELING PATTERN 45<br />

Pattern 1: St<strong>and</strong>ard Queue<br />

1‘<strong>Event</strong> 1‘<strong>Event</strong> 1‘<strong>Event</strong> 1‘<strong>Event</strong><br />

Producer<br />

T1<br />

Queue<br />

T2<br />

Consumers<br />

Figure 4.7: St<strong>and</strong>ard Queue Pattern<br />

Characteristics<br />

• 1 : 1 communication<br />

• Push-based<br />

Example<br />

A customer sends an order message to a component for “incoming orders”. All incoming orders<br />

are first stored by a queue <strong>of</strong> a message-oriented middleware <strong>and</strong> afterwards delivered to the<br />

order-processing application.<br />

Description<br />

The st<strong>and</strong>ard queue pattern is a simple example for modeling asynchronous point-to-point messaging:<br />

An event is sent by its producer to the queue. After the queue processed the event, the<br />

event is forwarded (pushed 1 ) to exactly one consumer.<br />

QPN Definition<br />

Places:<br />

Place Type Description<br />

Producer S Publishes events.<br />

Queue Q Queue for incoming events.<br />

Consumer S Consumes events.<br />

Colors:<br />

Color<br />

<strong>Event</strong><br />

Description<br />

Represents the event notification.<br />

Transitions:<br />

Id Input Output FW Description<br />

T1 1 <strong>Event</strong> ( P roducer) 1 <strong>Event</strong> (Queue) 1 Prod. publishes event.<br />

T2 1 <strong>Event</strong> (Queue) 1 <strong>Event</strong> (Consumer) 1 Forwarding <strong>of</strong> events <strong>of</strong><br />

the Consumer.<br />

1 A support for push-based communication using queues is, e.g., part <strong>of</strong> the JMS specification.

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

Saved successfully!

Ooh no, something went wrong!