MessageGroupingStrategy

The connector, by default, creates documents that contain a single message. You can configure the connector to create documents that contain groups of messages.

This parameter specifies the strategy to use for grouping messages into documents:

  • None - Start a new document after every message.
  • MessageCount - Start a new document after a fixed number of messages, specified by MessageGroupingMessageCount.
  • Interval - Start a new document after processing messages sent within a fixed time duration, specified by MessageGroupingInterval.
  • QuietWindow - Start a new document when there is an interval between messages, greater than the MessageGroupingQuietWindow.
  • Hybrid - Group messages using all of the previous strategies (except None). The connector produces the smallest possible groups. For example, the connector might produce a document with fewer messages than specified by MessageGroupingMessageCount if the MessageGroupingInterval is reached first.
Type: String
Default: None
Required: No
Configuration Section: TaskName or FetchTasks
Example:

In the following example, the connector can produce documents that contain multiple messages. Each document will contain no more than 200 messages, and those messages will span a maximum of 1 hour. Finally, there will be no more than 5 minutes between each message.

MessageGroupingStrategy=Hybrid
MessageGroupingMessageCount=200
MessageGroupingInterval=1 hour
MessageGroupingQuietWindow=5 mins
See Also:

MessageGroupingMessageCount

MessageGroupingInterval

MessageGroupingQuietWindow