-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add remote chunking sample #603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add remote chunking sample #603
Conversation
dfe13ea
to
d559a92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit picks I can fix on merge if you're ok with them.
*/ | ||
|
||
@Bean | ||
public ItemWriter<Integer> itemWriter() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should, at a minimum, return ItemStreamWriter
since the ChunkMessageChannelItemWriter
does implement ItemStream
. That being said, for components like this, I actually usually recommend returning the concrete type so that Spring can see all interfaces implemented.
/* | ||
* Configure inbound flow (requests coming from the master) | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Odd space
/* | ||
* Configure outbound flow (replies going to the master) | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Odd space
d559a92
to
1ed5fa3
Compare
Hi Michael, Thank you for the review. I removed the extra spaces and made Kr, |
This PR leaves a |
This commit adds a self contained remote chunking sample that uses an embedded JMS broker (for simplicity). Even though the broker is embedded, communication between the master and workers is still done through JMS queues and Spring Integration channels and messages are sent over the wire through a TCP port. This commit also fixes a few typos in the documentation section about remote chunking. Resolves BATCH-2721
1ed5fa3
to
8aad392
Compare
Rebased and merged as 026bbe0. |
This PR resolves BATCH-2721. It adds a self contained remote chunking sample that uses an embedded JMS broker (for simplicity). Even though the broker is embedded, communication between the master and workers is still done through JMS queues and Spring Integration channels and messages are sent over the wire through a TCP port.
The sample in this PR will not only enrich the current collection of samples, but also serve as a basis to show the added value of the feature we are trying to implement in BATCH-2686.
This PR also fixes a few typos in the documentation section about remote chunking.