I am looking for ideal solution to execute code in parallel in spring framework.
Scenario – I have an input request Object which might have 100 events in it. My ask is that we have to call an api for each of this event and process the result.
WHile processing in parallel is there a way to pass which event(ie 50th or 90th event) we are processing on a thread.
Please suggest the way to best implement this solution.
I am using Springframework – 5.3.27
Springbootstarter version – 2.7.12
Regards,
Obula
I am looking for best possible solutions and design to approach this scenario.
Obula Polisetty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.