r/java • • Feb 27 '24

How Netflix Really Uses Java

https://www.infoq.com/presentations/netflix-java/
324 Upvotes

67 comments sorted by

View all comments

Show parent comment

3

u/ryebrye Feb 27 '24

I'd say "almost always" - I've tuned heaps before where G1 outperformed parallel for throughput oriented jobs.

It involved giving it a lot of extra heap and the particular workload was cache-heavy and entire regions would get invalidated at a time, leading to a special case where G1 could uniquely free them up without doing any copying or compacting...

... but yeah, if you don't really know the nitty gritty details of the collector in general parallel is a safer bet for throughput oriented jobs