camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From basis42 <>
Subject AmazonSQSBufferedAsyncClient doesn't batch messages
Date Mon, 10 Jul 2017 12:58:52 GMT
Hello List,

I'm trying to use the AmazonSQSBufferedAsyncClient to send out batched
messages to the queue.

My Config of the Client:
    <bean name="sqsBufferedConfig"
        <property name="maxBatchOpenMs" value="5000"/>
    <bean name="sqsBufferedClient"
        <constructor-arg ref="sqsClient"/>
        <constructor-arg ref="sqsBufferedConfig"/>

and the context I'm using the client in:
uri="aws-sqs://my_queue?amazonSQSClient=#sqsBufferedClient" />

My expectation is that the client batches all requests coming in within 5
seconds and sending them in one batch then. What acually happens ist that
the client receives the first message, waits 5 seconds(waiting for more
messages to come, which obviously don't come in) and sends out the batch
then with the size of 1.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message