Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

ASR-15: Add Aggregator application starter #1

Closed
wants to merge 3 commits into from

Conversation

artembilan
Copy link
Contributor

…lude`

* Add more properties classes from Spring Boot to the `spring-configuration-metadata-whitelist.properties`
Copy link
Contributor

@garyrussell garyrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever work!!

That's all - all minor - I can make the changes on merge if you agree.

//tag::ref-doc[]
= Aggregator Processor

Use the `aggregator` application to combine batches of message to single one based on the correlation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to combine multiple messages into one, based on some correlation mechanism.


//tag::configuration-properties[]
$$aggregator.correlation$$:: $$SpEL expression for correlation key$$ *($$String$$, default: `correlationId` header)*
$$aggregator.release$$:: $$SpEL expression for release strategy$$ *($$String$$, default: `sequenceSize` header)*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default: group size == sequenceSize header.

$$aggregator.correlation$$:: $$SpEL expression for correlation key$$ *($$String$$, default: `correlationId` header)*
$$aggregator.release$$:: $$SpEL expression for release strategy$$ *($$String$$, default: `sequenceSize` header)*
$$aggregator.aggregation$$:: $$SpEL expression for aggregation strategy$$ *($$String$$, default: collection of payloads)*
$$aggregator.groupTimeout$$:: $$SpEL expression for timeout to expiring uncompleted groups$$ *($$String$$, default: none)*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...for a timeout to expire uncompleted...

$$aggregator.messageStoreEntity$$:: $$Persistence message store entity: table prefix in RDBMS, collection name in MongoDb, etc$$ *($$String$$, default: none)*
//end::configuration-properties[]

By default `aggregator` processor uses:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the aggregator

import com.gemstone.gemfire.cache.Region;

/**
* @author Artem Bilan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

javadocs

@@ -0,0 +1,2 @@
org.springframework.boot.env.EnvironmentPostProcessor=\
org.springframework.cloud.stream.app.aggregator.ExcludeStoresAutoConfigurationEnvironmentPostProcessor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newline

@artembilan
Copy link
Contributor Author

Will address myself soon.
Thank you!

@garyrussell
Copy link
Contributor

mvnw is not executable - will fix on merge.

@garyrussell
Copy link
Contributor

No .mvn either - fixing.

@artembilan
Copy link
Contributor Author

Doh... I added it somehow to the .gitignore

@garyrussell
Copy link
Contributor

Merged as d7d0554

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants