I am working on remote partitioning using spring batch.. I have multiple instances of spring batch application running. As part of use case I need to process all records present in database. So I am assigning instances to every records.. So each instance of batch application can process instance specific records.
e.g.
Records1 -: instance1
Records2 -: instance1
Records3 -: instance2
Records4 -: instance2
.... so on
I know we can use Kafka or JMS instead of partitioning explicitly. In my use case I don't want to use any messaging middleware. So after assigning instances to each records. I want to invoke both instances. How can I invoke both instances ?