Building messages

Use the Sybase RAP Publisher API to create messages to the first data processing stage. The following parameter, defined in the configuration file publisher.xml, affects performance.

Parameter

Description

NumMessageBuffers

A message buffer is an in memory storage area used by the publisher API to store the information for a message that is in the process of being built.

One message buffer is required for each message that is being simultaneously built. Multi-threaded custom applications require this value to be set at least as large as the number of threads that are concurrently creating messages.

Application designers should be aware that the definition of many message buffers can result in CPU contention, and should limit the number of threads building messages concurrently accordingly. Since the message buffers are an in memory storage area, the number of message buffers that can be created will be bound by available system memory.