The server accepts JSON Array of 200 objects. so I could send 200 items each time. But still I need to split the list each time and send that part to server.
I have a method for this which makes the http post request. and I want to use spring boot options (if available) to call the method with different threads and get the response back and merge them into one.
I did it using java CompletableFuture class without any springboot tags. but you Could use @async for your method too. sample code :
after the code is executed you will have a map of done and undone futures.