Redis and Node Part 4/4: Lua Scripting

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 »

Redis and Node Part 3/4: Atomicity with MULTI

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 »

Redis and Node Part 2/4: Shared State

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 »

Redis and Node Part 1/4: The Basics

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 »

PHP, Redis, and You!

Posted by & filed under NoSQL, PHP, Redis.

Here’s the code and notes for a presentation I’m giving this Saturday on PHP and Redis: github.com/tlhunter/php-and-redis-example Even if you’re not going to presentation, feel free to check it out and give it a try. Redis is pretty simple to use and quite powerful once you get the hang of it.

Unable to install RethinkDB 1.5.0 using Homebrew

Posted by & filed under NoSQL.

$ brew install rethinkdb ==> Downloading http://download.rethinkdb.com/dist/rethinkdb-1.5.0.tgz Already downloaded: /Library/Caches/Homebrew/rethinkdb-1.5.0.tgz ==> ./configure –prefix=/usr/local/Cellar/rethinkdb/1.5.0 –fetch protobuf –fetch protoc ==> make make[1]: *** [build/release_clang_notcmalloc/rethinkdb_web_assets/js/reql_docs.json] Error 1 make[1]: *** Deleting file `build/release_clang_notcmalloc/rethinkdb_web_assets/js/reql_docs.json’ make[1]: *** Waiting for unfinished jobs…. make[1]: unlink: build/release_clang_notcmalloc/rethinkdb_web_assets/.: Invalid argument make: *** [make] Error 2 READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting The only thing Google brings up is… Read more »

Notes for PHP and MongoDB Talk

Posted by & filed under NoSQL.

These are my notes for the talk I’m giving today on PHP and MongoDB. Example PHP script for communicating with MongoDB: #!/usr/bin/env php <?php // Instantiate the Mongo client $m = new MongoClient(); // Connect to a database. If it doesn’t exist, it will be created $db = $m->example; // Point to a collection within… Read more »

MongoDB Node.js driver collection select doesn’t require callback

Posted by & filed under Node.js, NoSQL.

Here is the method I was using for the longest time for selecting collections (after following along with numerous tutorials). It seemed that there must be some IO involved with that operation, since they have a callback function. mongo.db.collection(‘users’, function(err, collection) { // No collection, so throw a 500 Server Error if (err) { console.log((‘[… Read more »

CouchDB and PHP Web Development

Posted by & filed under NoSQL, PHP, Reviews.

I recently got my hands on the book CouchDB and PHP Web Development: Beginner’s Guide, written by Tim Juravich and published by Packt. This book aims to provide the reader with enough information to build their own website powered by PHP and using the CouchDB, a NoSQL database. CouchDB and PHP Web Development Beginner’s Guide on Packt… Read more »