JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server Message Queue 4.5 Developer's Guide for C Clients
search filter icon
search icon

Document Information

Preface

1.  Introduction

2.  Using the C API

3.  Client Design Issues

Producers and Consumers

Using Selectors Efficiently

Determining Message Order and Priority

Managing Threads

Message Queue C Runtime Thread Model

Concurrent Use of Handles

Single-Threaded Session Control

Connection Exceptions

Managing Physical Destination Limits

Managing the Dead Message Queue

Factors Affecting Performance

Delivery Mode (Persistent/Non-persistent)

Use of Transactions

Acknowledgement Mode

Durable and Non-Durable Subscriptions

Use of Selectors (Message Filtering)

Message Size

Message Type

4.  Reference

A.  Message Queue C API Error Codes

Index

Using Selectors Efficiently

The use of selectors can have a significant impact on the performance of your application. It’s difficult to put an exact cost on the expense of using selectors since it varies with the complexity of the selector expression, but the more you can do to eliminate or simplify selectors the better.

One way to eliminate (or simplify) selectors is to use multiple destinations to sort messages. This has the additional benefit of spreading the message load over more than one producer, which can improve the scalability of your application. For those cases when it is not possible to do that, here are some techniques that you can use to improve the performance of your application when using selectors: