We need to read a large amount of data (a few millions of records), do some business logic on it and write the results once.
E.g.
Input
Ringo, Elephant, London Zoo
Zooshu, Horse, In the Wild
Domo, Panda, Singapore Farm Animal Sanctuary
Sasha, Elephant, Bombai zoological garden
Output
- 2 animals in Asia
- 3 unique species
- 3 animals in captivity
- ...
We are wondering if Spring Batch can be a good platform for this because as we understand it, every ItemReader flows eventually to an Item Writer and we only need to write once.