Replies: 2 comments 1 reply
-
As someone who has written kTLS code for Linux: it isn't noticeably faster than openssl unless the kernel can offload encryption to dedicated hardware. In fact, without hardware support openssl probably has a small edge over the kernel. |
Beta Was this translation helpful? Give feedback.
-
#47970 reminded me of the one use case where kTLS does have a clear edge over openssl: sending large files over TLS. That's not a common use case for node however (people normally hand off file serving to a reverse proxy like nginx) and, as the pull request shows, we're not even close to doing it well over HTTP, let alone HTTPS. Having said that, openssl supports this specific use case through its Long story short, if you or anyone else want to investigate, you know where to start now =) |
Beta Was this translation helpful? Give feedback.
-
I've read of kTLS (kernel TLS), which puts some of the processing of a TLS handshake right into the kernel (Linux, FreeBSD), which speeds up the handshake.
Since TLS is one of the slowest parts of some Node Webservers (the first handshake before session resumption) and since a team was built up especially for upgrading Node.js performance, this could be a project to do so.
Beta Was this translation helpful? Give feedback.
All reactions