November 2019 – Edition #82

A Newsletter About Everything Redis

Edition #82
December 4th, 2019

Editor’s Notes

Dateline: Las Vegas, AWS re:Invent

I end up in Vegas at least a couple of times a year. I say ‘end up’ because it’s not really a place I desire to visit, but work commitments occasionally put me on a plane south from my (currently frozen) homebase. I’m not the demographic for this town—no judgement from me, but Vegas is built on gambling, drinking, and sensory overload, and I don’t gamble, I drink minimally, and I generally prefer less sensory input. This time I’m here for AWS Re:Invent (I’ll be at our booth, #2637 at the Sands, a ton, come say “hi!”) which is quite a nerdy spectacle in itself. Wearing a Redis shirt on makes you a celebrity and uttering the word “microservice” has near equal effect to saying “free poker chips.”

Happy Redising,

Kyle Davis

Redis Trivia: Redis Streams rely on a millisecond precision timestamp. Admittedly, this is a limitation, as it is only a 64-bit unsigned int and will eventually exceed this capacity… in 538 million years.

Stories

Call for Contributions: Move All Cache Keys From Memcache to Redis

Dev.to is betting the farm on caching with Redis. Molly, a long time friend of Redis, has recently landed as part of the core team working on the dev.to platform and they are moving from Memcached to Redis for their caching needs. Despite this call being open for a while, they are still in process and they’re looking for help, so go help make dev.to even more Redisy.

Learn to Cache your NodeJS Application with Redis in 6 Minutes!

Abdullah Amin takes you on a tutorial of how to cache an API call with Redis in Node.js. This is one of those sure-fire tricks to win—a little like counting cards in blackjack. However, unlike counting cards, this trick won’t earn you an unpleasant meeting in a backroom with the pit boss, just a high performance, no-fuss setup.

Asynchronous Tasks Using Flask, Redis, and Celery

When you go to Vegas, you see Wayne Newton. When you’re building a Python-based project and you need an asynchronous task queue, you use Celery with Redis. Two simple associations. So Robley Gori outlines a full-stack example of a Flask app with Celery to asynchronously send emails.

Redis—High Availability with Docker Swarm

I fell down a YouTube rabbit hole once staring at how to videos on getting upgrades and comps in Vegas. These videos are highly specific—down to pointing out where the people who can give out free stuff hang out and what their uniforms look like. So, I’m supposed to go the Northwest corner of the casino and look for someone with a name tag with a gold border. Except if it’s Thursday, they’re off on Thursday. Anyway, Emmanuel Hodonou writes a similarly detailed explanation on how to get Redis Sentinel up and running in Docker Swarm for High Availability—no detail is spared!

On Redis. Interview with Salvatore Sanfilippo

Thomas Hull was the first person to open a hotel/casino in Vegas: El Rancho Vegas in 1941. His little establishment changed everything. Salvatore Sanfilippo also changed everything when he started Redis in 2009. Go ahead and read a little about the future and direction of Redis 6 in this interview.

EMQ X Redis Data Persistence

MQTT is one of those things you only see in IoT and it is everywhere. Why? It just kinda stuck in that area and they like it. A little like smoking inside in Las Vegas. Why? It just kinda stuck in that area and… they like it? I find both a little weird. But if you’re an IoT person and you’re using EMQ X the article above describes how you can use Redis for a persistence layer behind MQTT.

Overview of Redisson: The Redis Java Client

A resort is like a superset of a hotel. Not only does a resort provide you a place to sleep and maybe a restaurant, but they also give you a spa, conference center, gambling, shopping, and attractions. If a client library for Redis is a hotel, then a library like Redisson is like a resort. Sure, it connects Java to Redis but it also does a lot more. Nikita gives a great overview of the resort Redisson and its capabilities. Check it out.

Introduction to Spring Cache with Redis

How to play blackjack: “Get as close to 21 without going over.” Does this leave out a ton about the game? Sure. Is it basically what you’re trying to do? Yes. Giau Ngo gives a similar level of detail about Spring Cache. If you’re looking for a bare bones, just-the-facts type of piece about the topic, look no further.

Node.js and Redis Tutorial: Caching With Node.js and Redis

Anastasios provides a great tutorial on how to implement caching with Node.js and Redis. This is not a repeat from the article above, people just love this topic so much it comes up all the time. Now, remember you need caching on your web apps, but it’s ok to sometimes lose your entire cache. In Vegas, of course, you want to make sure you don’t lose your cash. Subtle difference.

Watch

 
rediswatchimage2.png TFIR rounds up the Redis news, including Redis Day London and Redis 6. Think KTNV 13 Action News, but about Redis.

Redis Day London: Processing 60 Million Messages a Day Using Redis: Lessons from the Trenches

 
rediswatchimage.png The fine folks over at Wavy talk about how they use Redis to power sending messages (like SMS, WhatsApp, etc). Las Vegas gets 42 million visitors a year, these guys are processing more messages than that in a single day—and Redis is, of course, at the heart of it all.
 

Overheard

 
#CQRS in practice. Having one DB for both reads and writes often leads to a complex model that does neither well. Better separate model and DB for write and read. On pic, write model is scooter-to-location #Kafka topic, while read model is location-to-list #Redis map.
rediswatchimage3.png
 
Nearly 19 million SQL queries saved the last 7 days. Thanks, Redis. #savethesqlqueries
rediswatchimage4.png
 

Redis Labs

Despite the fact that a good portion of the Redis Labs team is currently in Sin City, don’t think we’re going to get distracted by mile-long buffets, one armed bandits, nor the roulette wheel. We’ve got too many things going on to spend too much time on those things! First, if you’re reading this newsletter, you’re probably an engineer who is ready to become a Redis Certified developer. If you’re the type of person who likes to look at your database with a nice UI, then check out the recently released RedisInsights. Early next year we’ve got two major events that we’d love to see you at – Redis Day Seattle on January 13-14th and Redis Day Bangalore on January 21- 22nd (may I suggest you submit a paper for Bangalore?). If you are a non-Redis Labs employee and are not presenting at the conferences and you come to both, I’ll recognize you personally as a Redis Superfan. See you there!

Questions? Feedback? Anything you want to share? Email or tweet me – I’m highly available 🙂

 

This newsletter was produced and distributed by Redis Labs, Inc.

© 2019 Redis Labs, Inc. 700 E El Camino Real, Suite 250, Mountain View, CA 94041

RepositoryArchive | Subscribe | Follow on Twitter