Adventures in Nodeland logo

Adventures in Nodeland

Subscribe
Archives
June 14, 2021

Matteo write TypeScript and other Adventures in Nodeland - Issue #14

Hi Everyone! What happened in Nodeland this week? Me writing some typescript, more videos and React 18!

I want to start this week by celebrating a pull request that I wrote for Undici. I was reading a bug related to our types…. and I knew how to fix it. It clicked, and I jumped into Vim straight away as I wanted to practice my TypeScript. After a couple of iterations, I landed on the Interceptable type. All that time spent helping and reviewing the TypeScript work by Ethan, Igor and many others helped a lot. Thank you, folks.

If you are interested in the PR, here it is:

Added an Interceptable type by mcollina · Pull Request #826 · nodejs/undici · GitHub
Added an Interceptable type by mcollina · Pull Request #826 · nodejs/undici · GitHub
Fixes #824
github.com

I would also like to celebrate the work my friend James Sumners did in Knock recently: https://github.com/knockaway/sqsiphon. It’s great to see a company starting to publish their tools as Open Source. I plan to use this library soon.

Another one of my 7-year-old modules came back!

GitHub - mcollina/tinysonic: a quick syntax for JSON object
GitHub - mcollina/tinysonic: a quick syntax for JSON object
a quick syntax for JSON object. Contribute to mcollina/tinysonic development by creating an account on GitHub.
github.com

OpenJS World Videos!

All OpenJS World videos are available on the Foundation youtube channel at https://youtube.com/c/OpenJSFoundation! Here are the videos of me talking about Fastify and Undici:

A "fast" Introduction to Fastify - Matteo Collina, NearForm
A "fast" Introduction to Fastify - Matteo Collina, NearForm
Can we Double the Node.js HTTP Client Throughput? - Matteo Collina, NearForm
Can we Double the Node.js HTTP Client Throughput? - Matteo Collina, NearForm

NearForm

James Snell and I have a motto: “If you are using promises, you are using them wrong”. James recently wrote a long article summarizing all the knowledge we presented in the “Broken Promises” workshop series. It’s a must-read if you are using Node.js:

Optimise Node.js performance by avoiding broken promises - NearForm
Optimise Node.js performance by avoiding broken promises - NearForm
An in-depth look at promises, the Node.js event loop and developing successful strategies for building highly performant Node.js applications.
www.nearform.com

We have been recently featured on the AWS blog for our work on the COVID-19 contact tracing app that we did last year, and how serverless technologies helped us deliver quickly.

We used a mixed approach with Fargate+ECS and Lambdas, building on top of Fastify and PostgreSQL. Read up:

How open source on AWS helped NearForm quickly build and scale its Covid-19 contact tracing app | Amazon Web Services
How open source on AWS helped NearForm quickly build and scale its Covid-19 contact tracing app | Amazon Web Services
This post was contributed by Colm Harte, Technical Director, NearForm. At NearForm, we use small cross-functional teams to rapidly build high-performance, highly scalable digital products using open source software (OSS) and a cloud-first approach.
aws.amazon.com

If you are interested in working on this stack, we are growing fast and we are recruiting for all possible roles: https://www.nearform.com/careers/.

Fastify Workshop Tickets
On the 16th of June, I’m going to deliver a workshop on Fastify. There are still tickets available, join up (all proceeds go to charity).
ti.to

Noteworthy releases

I’m really impressed by the initial release of React 18 because of its new Suspense-based Server-Side-Rendering implementation. It promises to yield significant latency and throughput improvements and I can’t wait to test it out!

New Suspense SSR Architecture in React 18 · Discussion #37 · reactwg/react-18 · GitHub
New Suspense SSR Architecture in React 18 · Discussion #37 · reactwg/react-18 · GitHub
New Suspense SSR Architecture in React 18
github.com

Thanks

As usual, I would like to thank every single one of you for keeping up with my rumbles! Thanks!

Don't miss what's next. Subscribe to Adventures in Nodeland:
GitHub X YouTube LinkedIn