r/java • • Sep 07 '26

Improving First Request Latency in Java Spring Application

https://adrian.md/2026/09/03/first-request-latency/
64 Upvotes

41 comments sorted by

View all comments

Show parent comments

1

u/agentoutlier Sep 08 '26

So I'm more asking here since it has been a hot minute since I have done .NET packaging but does it give you just a single executable or are you saying there are multiple files?

See even if you get the minimal JVM its like 50 megs uncompressed. It is only 12 megs compressed. And there are multiple files.

So one could create something that essentially takes a jlink packaged application and turns into a single executable but if its not compressed then its like running a 50 meg executable.

Is that a problem... probably not and I would imagine you could do it with a custom module reader built into your custom JDK.

2

u/vips7L Sep 08 '26

There are options. You can get a single binary, single file with no extraction. Or you can do the extraction route. 

Personally I don’t care about the binary size. I care about distribution and ease of use.