Adventures in Nodeland logo

Adventures in Nodeland

Subscribe
Archives
August 23, 2021

Adventures in Nodeland - Issue #24

Hello Folks!

Welcome to Adventures in Nodeland, the newsletter where I cover my Open Source activity of the last week, as well as some interesting articles I stumble on Tech Twitter.

The first Pull Request I would like to highlight is the new error handling of Fastify@4 which will be released in the coming months. We will finally enable you to nest error handler in plugins and support throwing in them to break out of the encapsulation jail. The result is that you can handle your errors as close as possible to their throwing point.

Improve error handling by mcollina · Pull Request #3261 · fastify/fastify
New encapsulated error handling for Fastify
github.com

I have starting to prepare the release announcement blog post for pino@7, including the long-awaited transports. I have also done some good benchmarks showing that the new system is just a bit faster than using unix pipes and multi processes! I’m thrilled.

In the meanwhile I did a few fixed to pino, including a long-overdue fix on the async destinations, making them auto-flushing on exit in Node.js v14+.

Release v7.0.0-rc.3 · pinojs/pino · GitHub
Release v7.0.0-rc.3 · pinojs/pino · GitHub
🌲 super fast, all natural json logger 🌲. Contribute to pinojs/pino development by creating an account on GitHub.
github.com
Release v7.0.0-rc.3 · pinojs/pino · GitHub
Release v7.0.0-rc.3 · pinojs/pino · GitHub
🌲 super fast, all natural json logger 🌲. Contribute to pinojs/pino development by creating an account on GitHub.
github.com

Mercurius got a new release as well this week to fix a bad bug that prevented to use the same directive on multiple federated services. Thanks Jonny for the fix!

Release v8.1.3 · mercurius-js/mercurius · GitHub
Release v8.1.3 · mercurius-js/mercurius · GitHub
Implement GraphQL servers and gateways with Fastify - Release v8.1.3 · mercurius-js/mercurius
github.com
Release v8.1.3 · mercurius-js/mercurius · GitHub
Release v8.1.3 · mercurius-js/mercurius · GitHub
Implement GraphQL servers and gateways with Fastify - Release v8.1.3 · mercurius-js/mercurius
github.com

Interesting Articles: Database edition

This week I have been interested in storing data. The first article is from PlanetScale, one of the most interesting database startups out there. Recently they implemented a new feature that made it possible for them to handle the high connection count of serverless. Check it out:

Connect any MySQL client to PlanetScale using Connection Strings
Connect any MySQL client to PlanetScale using Connection Strings
Connect PlanetScale to any MySQL client with Connection Strings for a true serverless database experience.
planetscale.com

What is a data mesh? How would you structure your data for analytical workload?

The Last Thing I'll Ever Say About the Data Mesh
The Last Thing I'll Ever Say About the Data Mesh
Boy, it has been an interesting week. I’m still not sure what started it all, but a concept has been pervasive over data twitter later: The Data Mesh. It may not have started here, but this tweet from @sethrosen was early days in the discussion.
pedram.substack.com

Fauna is a transactional database wrapped in a GraphQL API. The following article covers out to use it with Fastify!

Getting started with Fauna and Node.js using Fastify
Getting started with Fauna and Node.js using Fastify
Pier Bover|Dec 10th, 2020 Today we’ll be building a small API to see a quick overview on how to use Fauna in Node.js.
fauna.com
Getting started with Fauna and Node.js using Fastify
Getting started with Fauna and Node.js using Fastify
Pier Bover|Dec 10th, 2020 Today we’ll be building a small API to see a quick overview on how to use Fauna in Node.js.
fauna.com

Something that really fascinated me from the time of WebSQL was the ability to run a full SQL database inside a web browser. James Long takes it SQLite in the browser to a completely new performance level by storing data in IndexedDB. Check it out:

A future for SQL on the web
I discovered something absurd recently and I’m very excited to tell you about it. The end result is absurd-sql, and it’s a persistent backend for SQLite on the web.
jlongster.com

AWS has finally shipped a version a Redis that supports durable storage - one of the main drawbacks of ElastiCache. I can’t wait to use it in my next architecture:

Introducing Amazon MemoryDB for Redis – A Redis-Compatible, Durable, In-Memory Database Service | Amazon Web Services
Introducing Amazon MemoryDB for Redis – A Redis-Compatible, Durable, In-Memory Database Service | Amazon Web Services
Interactive applications need to process requests and respond very quickly, and this requirement extends to all the components of their architecture. That is even more important when you adopt microservices and your architecture is composed of many small independent services that communicate with each other. For this reason, database performance is critical to the success […]
aws.amazon.com
Don't miss what's next. Subscribe to Adventures in Nodeland:
GitHub X YouTube LinkedIn