#Redis #tooling

Install just redis-cli on Ubuntu, Debian, Jessie

As part of adding integration tests to an app on CircleCI I ran into the following issues: redis-cli’s API has changed from version 2 to 3 to 4 ie. this works in v4 redis-cli -u ${REDIS_URL} but doesn’t in v2 the “only way” to install redis-cli is through a redis-tools or redis-server install and I only need redis-cli not the server or any other tools What follows is how not to install redis-cli and then how to install redis-cli latest, properly. ...

  • Hugo Di Francesco
    Author
2 min read
#JavaScript #Node #Docker #redis

Bring Redux to your queue logic: an Express setup with ES6 and bull queue

There always comes a point in a web application’s life where an operation is best served in the background, this is where queues come in. There are a few queuing solutions in Node. None of them are ridiculously dominant, eg. Kue, RSMQ, Bee Queue, bull. The issue with Kue, RSMQ and Bee Queue was its use of a done callback as the recommended API. Bull https://github.com/OptimalBits/bull is a premium Queue package for handling jobs and messages in NodeJS. It’s backed by Redis and is pretty feature-rich. Most of all, it leverages a Promise-based processing API which means async/await. We’ll walk through an application that sends webhooks with a given payload to a set of URLs. ...

  • Hugo Di Francesco
    Author
11 min read
#JavaScript #Node #Docker #redis

A Docker/docker-compose setup with Redis and Node/Express

Redis and Express are tools that provide a simple and clean approach to their problem domains. What follows is a Docker/Docker Compose v2 setup. The repo is available at: https://github.com/HugoDF/express-redis-docker. The docker-compose.yml is available at: github.com/HugoDF/express-redis-docker/docker-compose.yml Redis is “an open source, in-memory data structure store, used as a database, cache and message broker”. It’s as simple and unopinionated as a database as it gets, it’s known for its performance and simplicity as a key-value store. ...

  • Hugo Di Francesco
    Author
4 min read