Menu

1 / 2

Your TLS Stack Is Lying to You About Zero-Copy

DEV Community·Arkadiusz Przychocki·6 months ago
#1YAT94dC
#java#architecture#heap#memory#exeris
Reading 0:00
15s threshold

The "No Waste Compute" Constraint

When I started designing the Exeris Kernel, I set one non-negotiable rule very early: no waste compute. That rule sounds like a performance slogan until it starts killing otherwise normal design decisions.

I had already banned ThreadLocal , moved context propagation to Scoped Values, and pushed more of the runtime into explicit off-heap ownership. The idea was simple: if the hot path is supposed to stay outside GC pressure, then memory shape and lifetime cannot be treated as incidental details.

Then I reached TLS.

Constraint upfront: this is not a universal argument against SSLEngine . For a normal Java service it is still a perfectly reasonable choice — battle-tested and deeply integrated into the ecosystem.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.