[
https://issues.apache.org/jira/browse/CAMEL-21882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151665#comment-18151665
]
Claus Ibsen commented on CAMEL-21882:
-------------------------------------
As answered before, this can be done today with a custom `completionPredicate`
(or an aggregation strategy that tracks
the current size) on the Aggregate EIP. A generic byte size is hard to define,
as it depends on the payload type and
on how the target system counts headers. Closing.
_Claude Code on behalf of davsclaus_
> camel-core - Add support for Aggregate by byte size in Aggregate EIP
> --------------------------------------------------------------------
>
> Key: CAMEL-21882
> URL: https://issues.apache.org/jira/browse/CAMEL-21882
> Project: Camel
> Issue Type: Wish
> Components: came-core, eip
> Reporter: Chirag Sanghavi
> Priority: Minor
>
> *User Story: Batch Message Aggregation in Apache Camel*
> *Given* a Camel route that processes messages for an endpoint supporting
> batch consumption with a size limit (e.g., SQS with a 256KB limit),
> *When* messages are aggregated using the Camel aggregate function,
> *Then* messages should be grouped into batches without exceeding the size
> limit (factoring in headers and payload), assuming that each individual
> message is within the allowed limit.
> in place of putting logic in each endpoint, improving aggregate will help
> multiple endpoints.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)