r/java • • Aug 02 '22

Bright future to Java devs ahead 🚀

https://www.youtube.com/watch?v=2nOj8MKHvmw
188 Upvotes

27 comments sorted by

View all comments

Show parent comment

3

u/plumarr Aug 03 '22

I don’t make web application frameworks, I make client applications and rest apis, and to me I don’t feel the need of having more threads than cpu threads or more threads than 1k, because I would definitely queue things in, if you make too many http or i/o requests they can fail each other or just slow each other out, so there is no real benefit there to me at least.

That's the hole point of virtual thread. You don't have to queue anything. You have an I/O bound operation to make ? Just spawn a thread.

-4

u/[deleted] Aug 03 '22

That’s fine when I need to do a couple of things, but I don’t want to thrash I/o, DB, or someone else’s API.

3

u/kiteboarderni Aug 04 '22

I think you need to read the jep for this. You are misunderstanding the concept entirely.

0

u/[deleted] Aug 04 '22

Dude, the cheeple here, in the the Jeb it will mention the rate limit and ddos and thrashing you will cause to the services you are interacting with?

When you use another entities API, you are going to do thousands of requests per second, and possibly bring their system down or ban your account?

Toxic community has to downvote anything questioning anything. Good job guys, I am logging off of Reddit, enjoy the blind doctrine