O'Reilly logo

Redis Essentials by Hugo Lopes Tavares, Maxwell Dayvson Da Silva

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Commands (Where the Wild Things Are)

This chapter gives an overview of many different Redis commands and features, from techniques to reduce network latency to extending Redis with Lua scripting.

The previous chapters briefly mentioned how to optimize data types, and at the end of this chapter, we will explain these optimizations further.

Pub/Sub

Pub/Sub stands for Publish-Subscribe, which is a pattern where messages are not sent directly to specific receivers. Publishers send messages to channels, and subscribers receive these messages if they are listening to a given channel.

Redis supports the Pub/Sub pattern and provides commands to publish messages and subscribe to channels.

Here are some examples of Pub/Sub applications:

  • News and weather ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required