Here’s a recording of my talk from the November SFNode Meetup. In this talk I discuss using Redis with Node.js, how to use it for sharing state between multiple Node.js processes, and how to perform atomic operations using MULTI/EXEC and EVAL/EVALSHA. You can also View the Presentation directly if you don’t want to hear me… Read more »
Posts Categorized: Node.js
This guide will teach you how to run your Node processes automatically on Debian (or even Ubuntu). This will mean that your processes can start when your server boots and that they will keep running in case of crashes. Two years ago I wrote “Running a Node.js process on Debian as an init.d Service“. A few things… Read more »
Check out a Guest Post I wrote on over on Code Planet: Node.js v5.4 vs luvit v2.8 Benchmark.
Here’s a post I wrote over at my friends collaborative blog site, Code Planet: The only bad thing about ES7 async/await. It adds some further insight into the async/await constructs given to us by ES7, particularly regarding an anti-pattern which I suspect will become very common amongst developers.
Ever have the need to keep track of players in a Node.js based game? Maybe you were building a turn-based game and you had a few servers running and you needed some distributed and atomic solution backed with Redis? Well, if this teeny tiny subset of developer need overlaps with yours then today is your… Read more »
At work I’ve been tasked with building real-time PvP systems (pushing data from server to client) as well as matchmaking systems for pairing players together (pretty similar stuff to what I’ve been doing since first learning Node.js two years ago). While building matchmaking systems, of course the ELO system used by Chess was brought up (As… Read more »
Normally when I host my Node.js-based applications, I’ll SSH into my server, open up a screen or tmux session, run node ./server.js, detach, and call it a day. Of course, if you’re reading this article, you’re fully aware that this is a horrible solution and are looking for an alternative. One thing that is going to… Read more »