r/Backend • • 19d ago

Java 25 (with virtual threads) for a startup

Are you working in a startup company that chose Java 25 as a backend language?

What is your impression regarding developer experience, performance and easiness build things fast?

39 Upvotes

37 comments sorted by

View all comments

Show parent comment

10

u/za3faran_tea 19d ago edited 19d ago

Real-time applications where a garbage collector would negatively impact timing

Unless its hard real-time, you may very well be able to use ZGC as it gives you sub-ms pause times. Even then, Java has been used for real time systems before ZGC (but it generally uses a different paradigm of programming than traditional backend systems).

3

u/vips7L 19d ago

You'll likely get the same length pauses from OS kernel traps as ZGC. It's effectively pauseless.

1

u/macabre_brotherhood 19d ago

Yeah I mean "each clock cycle matters" level of real-time. All I'm saying is use the right tool for the job. But yes you're also right about ZGC.

1

u/aoeudhtns 18d ago

I'm using generational ZGC for a near-realtime service and it's working exceptionally well.

0

u/petros211 18d ago

Mfkers will do anything to not use a real systems language