This avoids spinning
extra cycles with no operation. In the class diagram (Figure 9) below, SampleBlocking-
Figure 7. Dynamic LDAP cache Web administration
Approaches to Bu ld ng H gh Performance Web Appl cat ons
Copyright ?© 2007, Idea Group Inc. Copying or distributing in print or electronic forms without written permission
of Idea Group Inc. is prohibited.
Figure 8. BluePages Web administration view of last ten searches
Figure 9. Blocking queue class diagram
0 Goodman, Inampud , & Doran
Copyright ?© 2007, Idea Group Inc. Copying or distributing in print or electronic forms without written permission
of Idea Group Inc. is prohibited.
QueueClient is a client/component exploiter of QueueManager. QueueManager manages
the thread and message brokering. QueueManager is initialized with a QueueEventHandler
and uses that interface to interact with other implementations of handling the queue. For
example, some queues need to be priority-sorted or dequeued based on some other criteria.
The GenericQueueItem happens to be the object being enqueued and dequeued. It is a very
simple and effective design pattern.
An example from BluePages illustrates the real-world use further. BluePages provides a
keyword search to employee profiles.
Pages:
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322