nowCLI program (now-cli) to better understand how the internals worked. I learned the deployment pipeline broadly consists of 3 steps:
now-clicollects all the hashes that are unique. This is important because large repositories can contain many duplicate files.
http2module in Node.js. Given that the Now codebase made extensive use of the fetch API with node-fetch, I thought substituting it with fetch-h2 seemed like a reasonable solution to quickly add HTTP/2 support.
POSTrequest per file, but reduce the overhead by just re-using the same socket for all requests. This seemed to make things a lot faster! To find out precisely just how fast, I ran some experiments.
nowand liking a tweet instead.