From 04ab9e197461c2313aecd6dc7573bb8460d21270 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 11 May 2021 17:38:43 -0400 Subject: [PATCH] INT-1828: Docs about filter & release strategy (#3564) * INT-1828: Docs about filter & release strategy JIRA: https://jira.spring.io/browse/INT-1828 Document a corner case when filter endpoint is involved in the flow logic before an aggregator with sequence size release strategy * Fix typos in the doc changes Co-authored-by: Gary Russell Co-authored-by: Gary Russell --- src/reference/asciidoc/aggregator.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/reference/asciidoc/aggregator.adoc b/src/reference/asciidoc/aggregator.adoc index e9527d5e8a..d81885d3e2 100644 --- a/src/reference/asciidoc/aggregator.adoc +++ b/src/reference/asciidoc/aggregator.adoc @@ -260,6 +260,10 @@ The following example shows how to configure an aggregator with the previous imp ---- ==== +NOTE: If the filter endpoint is involved in the flow upstream of an aggregator, the sequence size release strategy (fixed or based on the `sequenceSize` header) is not going to serve its purpose because some messages from a sequence may be discarded by the filter. +In this case it is recommended to choose another `ReleaseStrategy`, or use compensation messages sent from a discard sub-flow carrying some information in their content to be skipped in a custom complete group function. +See <<./filter.adoc#filter,Filter>> for more information. + ===== Correlation Strategy The `CorrelationStrategy` interface is defined as follows: