I need Help with Java Concurrent

Job ID: 30635982

Budget: $30 – $250 USD

Hi, I need some help with a java method it's a list that has 10.000 items and make some feign calls, when I use list.stream.foreach take almost 90 minutes, I tried to use list.stream.parallel I receive the following stacktrace

Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.

I pay 50 USD for this help.