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 <grussell@vmware.com>

Co-authored-by: Gary Russell <grussell@vmware.com>
This commit is contained in:
Artem Bilan
2021-05-11 17:38:43 -04:00
committed by GitHub
parent d00a3b9a2e
commit 04ab9e1974

View File

@@ -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: