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 ...

Get Redis Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.