Skip to main content

New answers tagged

0 votes

Multithreaded processing of single REST requests

By now virtual threads are available. Assuming the other service can handle the traffic and you clarified that a bulk request endpoint is not possible / won't be added on the lower level service then ...
Frank Hopkins's user avatar
2 votes

Multithreaded processing of single REST requests

It feels wrong two spin up additional threads for each incoming request. Yes, it is wrong. Not only inefficient, but also a security concern: you open your server to hard DOS attacks. And it doesn't ...
freakish's user avatar
  • 1,926
0 votes

Multithreaded processing of single REST requests

You can use parallel stream.Simple yet efficient approach for the use case. However,you need to have rough estimates of how many max users you are expecting.If they are huge, opt for completablefuture ...
Mansi's user avatar
  • 1

Top 50 recent answers are included