New answers tagged rest
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
rest × 1567api × 419
api-design × 405
design × 146
http × 137
web-api × 127
architecture × 121
web-services × 117
java × 110
microservices × 78
json × 69
design-patterns × 63
web-applications × 63
authentication × 55
web-development × 49
security × 47
database × 42
http-request × 42
c# × 41
hateoas × 38
php × 35
domain-driven-design × 33
javascript × 31
soap × 27
mvc × 26