Message Events
This page discusses the various event tags for Message events available in NCache.
Configure Message Event Tags
NCache provides configurable settings to optimize server-side message event management. These settings include controls for message processing iterations, polling limits, and options to override pending event messages for improved efficiency. You can use the following tags to manage and control the message events available in NCache.
MessagesToProcessPerIteration
This tag specifies the maximum number of message events to process per iteration of Message Processor - a server-side thread that checks messages published against a topic and assigns them to the respective subscribers. The default value is 2000.
<add key="NCacheServer.MessagesToProcessPerIteration" value="2000"/>
MaxMessagesPerPoll
This tag specifies the maximum number of messages that can be fetched in a single poll request. The default value is 3000.
<add key="NCacheServer.MaxMessagesPerPoll" value="3000"/>
StoreSingleEventMessagePerKey
This tag specifies whether to store the latest event message for a given key. When enabled, a new event message will override a previous pending event message of the same key. The default value is false
.
<add key="NCacheServer.StoreSingleEventMessagePerKey" value="false"/>
StoreSingleCQEventMessagePerKey
This tag indicates whether to store only the most recent Continuous Query (CQ) event message for a specific key. When enabled, a new CQ event message replaces any previously pending message for the same key. The default value is false
.
<add key="NCacheServer.StoreSingleCQEventMessagePerKey" value="false"/>