Spring placement writer question

Asked 1 years ago, Updated 1 years ago, 198 views

Hello, I'd like to ask you a question about spring placement!

Reader -> processor -> writer

Readers and processors read and process the case. I know that they collect these and write them in a chunk unit.

Is it possible to read 5 cases in the reader, make 3 cases by combining them with a specific key in the processor, and then write 3 cases in the writer?


2023-02-19 04:18

1 Answers

Yes, you can configure the Reader, Processor, and Writer as desired in the spring layout.

It is also possible to read 5 cases in the Reader, process 3 cases in the Processor, and write them in the Writer. This ensures that the three combined records from the Processor are delivered to the Writer, regardless of the ChunkSize.

However, it is recommended that you adjust the ChunkSize as appropriate, as this may slow down the processing of records. Additionally, the processors can handle the merging of records. You can do the necessary work on the Processor and then forward it to the Writer.


2023-02-20 05:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.