I have a large file that contains a list of items.
I would like to create a batch of items, make an HTTP request with this batch (all of the items are needed as par
It could be easily done using Reactor:
Flux.fromStream(fileReader.lines().onClose(() -> safeClose(fileReader))) .map(line -> someProcessingOfSingleLine(line)) .buffer(BUFFER_SIZE) .subscribe(apiService::makeHttpRequest);