Disappointing results using RestContinuation.async

24 views
Skip to first unread message

Andreas Joseph Krogh

unread,
Apr 9, 2022, 1:57:37 PM4/9/22
to lif...@googlegroups.com

Hi, I'm testing a stateless REST-services where I use RestHelper (with stateless dispatch) and I'm using curl like this to fire 10k requests:

$ for i in $(seq 10000); do curl -v -X POST -H "Accept: application/json" -H "Content-Type: application/json" --data-binary '{"userName": "andreak"}' "http://localhost:9090/internal/user/verify" & done* Mark bundle as not supporting multiuse

I have a Thread.sleep(1000) in my REST-service just to simulate expensiveOperation().

 

Without RestContinuation.async this takes 52s, but with RestContinuation.async it takes more than 10 minutes.

 

Are others experiencing this?

 

--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
Reply all
Reply to author
Forward
0 new messages