Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
Published By From Node.js News · 1 min read
CodeMaking Node.js Downloads Reliable
Last year, we shared the details behind Node.js's brand new website . Today we're back, talking about the new infrastructure serving Node.js' release assets.
This blog post goes into what Node.js' web infrastructure looks like, its history, and where it stands today. We're also going to be covering what exactly we had in mind and were prioritizing with this infrastructure overhaul.
At the start of the project in 2009, Node.js release assets (binaries and documentation) were stored on a publicly accessible S3 bucket. This was later changed around May of 2010 to a VPS, which also hosted the Node.js website.
When the io.js fork happened in 2014, they also had used a VPS to host the website and release assets.…
This is an excerpt. The full article is published by Node.js News.
Answers to common questions regarding this article's topic, architecture, and practical applications.
Nowadays, the nodejs.org domain sees over 2.4 billion requests and 3+ petabytes of traffic per month, with a majority of that going towards release assets. This averages to about 925 requests per second and an average bandwidth of 1.2 gb per second. The origin server does not have enough resources for this, and it struggled to keep up with the demand.
The nodejs.org website was moved off of the origin server as part of the redesign which did help
General
At the start of the project in 2009, Node.js release assets (binaries and documentation) were stored on a publicly accessible S3 bucket.
This was later changed around May of 2010 to a VPS, which also hosted the Node.js website. When the io.js fork happened in 2014, they also had used a VPS to host the website and release assets.
After the Node.js and io.js merge in 2015, io.js' VPS (which will be referred to as the origin server from hereon) was
General
Last year, we shared the details behind Node.js's brand new website. Today we're back, talking about the new infrastructure serving Node.js' release assets.
Definition / Understanding
When a mainline release is ready to be released, the releaser triggers a release CI job.
These jobs build the Node.js binaries for all supported platforms and generate the documentation files. Upon a release CI job completing successfully, its assets are uploaded to the origin server in a staging directory.
When all of the release CI jobs finish, the releaser then manually "promotes" the assets to the production directory, making the release publ
General
All of these issues combined created for scenarios where the origin server wasn't touched unless necessary, including a period in which it had over 3 years of uptime.
These factors also contributed to incidents such as the one that occurred from March 15th, 2023 to March 17th, 2023, where the Node.js release assets were unavailable for 2 days due to the origin server being overloaded and improper caching rules.
Between incidents like this and the