Why low-latency Java still requires discipline?

29 pointsposted 2 hours ago
by theanonymousone

8 Comments

pjmlp

a few seconds ago

Even C requires discipline to write low latency code, if you think otherwise, you never used a profiler.

motoboi

38 minutes ago

I found claude and GPT very helpful on this, because java have a very sofisticated monitoring harness. Just ask the agent to connect to the running application (on kubernetes or whatever) on prod and do a java flight recording then analyze allocations.

I managed to improve some applications of ours from several garbage collections per second to several minutes between collections. That _really_ improves p99.

chuckadams

33 minutes ago

I get that blog posts often advertise a company's products, but this one had absolutely zero content other than advertising.

dominicrose

an hour ago

page doesn't load "En attente de la réponse de chronicle.software."

PaulHoule

an hour ago

+ low latency anything requires discipline. if you lose 5ms you can't get it back.

opentokix

14 minutes ago

How about not using Java? Then you can have low latency.

Average go, rust, c++ and c will outperform amazing java programs, and the former will also be way way more easy to run, troubleshoot, interpret logs from.

Java is usch garbage in every stack.

motoboi

6 minutes ago

Rust? OK.

C++ or go? Then you'll have to take a very closer look, because the java JIT is wonderful. A masterpiece of several hands, actually.

cavoirom

7 minutes ago

yes, until you need debugging.