Troubleshooting And Improving HTTPS/TLS Connection Performance
source link: https://blog.jakubholy.net/2015/11/27/troubleshooting-and-improving-httpstls-connection-performance/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Troubleshooting And Improving HTTPS/TLS Connection Performance
We have just decreased that time to median of 80ms by making sure to keep the connections alive and reusing them, which in Node.js can be achieved via using an https.agent and setting its keepAlive: true (see the Node TLS documentation).
PayPal has a couple of additional useful tips in their 4/2014 post Outbound SSL Performance in Node.js, mainly:
- Disable expensive SSL ciphers (if you don't need their strength)
- Enable SSL session resume, if supported by the server, for shorter handshakes - the StrongLoop post "How-to Improve Node.js HTTPS Server Performance" explains how to enable SSL session resume
- Keep Alive
See also IsTlsFastYet.com for a lot of valuable information, benchmarks etc.
Tools
(See the articles linked to above for examples)Are you benefitting from my writing? Consider buying me a coffee or supporting my work via GitHub Sponsors. Thank you! You can also book me for a mentoring / pair-programming session via Codementor or (cheaper) email.
Allow me to write to you!
Let's get in touch! I will occasionally send you a short email with a few links to interesting stuff I found and with summaries of my new blog posts. Max 1-2 emails per month. I read and answer to all replies.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK