Posted by & filed under JavaScript, Node.js.

This week I refactored a Node project of mine from the traditional Node callback pattern to the recently available Async/Await pattern. This pattern is available without transpiling code as of Node v8.3. In this post I’ll walk you through a small example of this conversion. This particular project is by no means large; it consists… Read more »

Posted by & filed under Uncategorized.

Here’s a bookmarklet I created for selecting a random attendee of a Meetup. I use it for giving away copies of my book after giving a talk. To use it, click and drag the below link onto your toolbar. Once you’re on a meetup event page you can click the link in your bookmark bar… Read more »

Posted by & filed under Travel.

I look at the watch securely strapped to my wrist and see that it’s 4am, which means I haven’t slept in about 48 hours. The heat in the hostel room is palpable and the open window doesn’t so much provide a breeze as it provides a constant stream of drunken German conversation and the sound… Read more »

Posted by & filed under Node.js, NoSQL.

This is the final part in this series on using Redis with Node.js. The content of these posts is partially adapted from my book, Advanced Microservices. There is also a companion presentation, Node, Redis, and You!, which I’ve given at several meetups and a conference. The nice thing about the MULTI / EXEC commands is that they… Read more »

Posted by & filed under Node.js, NoSQL.

This is part three of a four part series on using Redis with Node.js. The content of these posts is partially adapted from my book, Advanced Microservices. There is also a companion presentation, Node, Redis, and You!, which I’ve given at several meetups and a conference. Issuing single commands in Redis are atomic, which means they’re self… Read more »

Posted by & filed under Node.js, NoSQL.

This is part two of a four part series on using Redis with Node.js. If you’re wondering how we got here take a look at Redis and Node Part 1: The Basics. The content of these posts is partially adapted from my book, Advanced Microservices. There is also a companion presentation, Node, Redis, and You!, which I’ve… Read more »

Posted by & filed under Node.js, NoSQL.

This is part one of a four part series on using Redis with Node.js. The content of these posts is partially adapted from my book, Advanced Microservices. There is also a companion presentation, Node, Redis, and You!, which I’ve given at several meetups and a conference. Introduction to Redis At its heart, Redis is an… Read more »

Posted by & filed under Travel.

This is a guide based on my trips to Ireland, London, Japan, and Germany. I won’t talk about the specific trips here but will more specifically talk about inventory / packing. I’ll write some separate post about other aspects of traveling. The main theme of this guide is reducing mass, volume, and redundancy. This guide… Read more »

Posted by & filed under APIs.

This is the last of four articles on HTTP API Design. These articles are based on content from my recent book Advanced Microservices. This post is about standards for designing an API. Simple Envelope This first format is mostly a hypothetical one. When providing responses to a client it’s pretty easy to reply with either… Read more »

Posted by & filed under APIs.

This is the third of four articles on HTTP API Design. These articles are based on content from my recent book Advanced Microservices. This article looks at the formatting of request and response bodies. JSON (JavaScript Object Notation) JSON is the preferred serialization format for most popular HTTP based APIs today. The specification for JSON… Read more »