Ask questions and see you at June, 7th, 8.PM. CEST: https://youtu.be/Uz1nLi5APVw
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
Hi Adam,
I was just testing around mp fault tolerance bulkhead pattern. I have not much knowledge before for it.
In my example I created a simple restmethod that blocks (thread.sleep) and after that sleep I returned dummy String.
I set @bulkhead(1), I went and test from chrome to see if it allows more than one, I opened multipled tabs at same time and all tabs were waiting for result, no BulkheadException was thrown..
But if I opened another incognito instance of chrome, and hit the bulkhead at same time from both chromes (incognito and non-incognito) in one of them I get the BulkheadException immediately?
So I don't get it, does bulkhead checks for tcp connection number exceed or the thread number exceed,
Cause I know that Chrome for a specific http url, opens a tcp connections and keep-alive it until the chrome is closed, so if you open incognito chrome, that means that you have now two tcp connections?
So, does @bulkhead(1) allow only one tcp connection at a time, or thread at a time?
I printed in console currentThreadName, and even with thread.sleep(1000), if you open multiple tabs and hit url, all of them prints in console same thread number (in my case executor-thread-199, using quarkus)? Why does that happen, shouldn't it hit different thread each time it is called?
p.s. I'm still a student and maybe I confuse things and I confuse the way I ask my question, but I don't get it... 😄
Thank you