You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gilboy <jo...@gmail.com> on 2015/05/06 13:35:33 UTC
Handling duplicate messages with aggreator
Hi
I have the following use case. I receive in Order objects which all have an
OrderId, ProductionId and ProductionCount.
Hence, the productionId is my correlationExpression and the ProductionCount
is the completionSize.
This all works well. However, I may receive the same order twice(same
OrderId twice). Hence, before adding anything to the AggregationRepository I
would like to first check to see for the given
correlationExpression(ProductionId) does the Order(OrderId) already exist.
Is there support for this use case with the Aggregator?
Thanks
Joe
--
View this message in context: http://camel.465427.n5.nabble.com/Handling-duplicate-messages-with-aggreator-tp5766756.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Handling duplicate messages with aggreator
Posted by Andrew Block <an...@gmail.com>.
If you are concerned about receiving duplicate messages, you can look to implement an idempotent consumer [1] to filter out the duplicate messages prior to aggregation.
- Andy
[1] - http://camel.apache.org/idempotent-consumer.html
--
Andrew Block
On May 6, 2015 at 6:37:31 AM, gilboy (josephotoole@gmail.com) wrote:
Hi
I have the following use case. I receive in Order objects which all have an
OrderId, ProductionId and ProductionCount.
Hence, the productionId is my correlationExpression and the ProductionCount
is the completionSize.
This all works well. However, I may receive the same order twice(same
OrderId twice). Hence, before adding anything to the AggregationRepository I
would like to first check to see for the given
correlationExpression(ProductionId) does the Order(OrderId) already exist.
Is there support for this use case with the Aggregator?
Thanks
Joe
--
View this message in context: http://camel.465427.n5.nabble.com/Handling-duplicate-messages-with-aggreator-tp5766756.html
Sent from the Camel - Users mailing list archive at Nabble.com.