# Pub/Sub Messaging

> What is Redis Pub/Sub, how does it work, and when should you not use it?

Canonical: https://www.internhack.in/learn/interview/redis-caching/redis-pub-sub
Last updated: 2026-11-28

Difficulty: Beginner

## Question

What is Redis Pub/Sub, how does it work, and when should you not use it?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

PUBLISH, SUBSCRIBE, PSUBSCRIBE, Sharded Pub/Sub, At-most-once Delivery

Previous: [Transactions & Atomicity](https://www.internhack.in/learn/interview/redis-caching/redis-transactions-multi) · Next: [Sentinel vs. Cluster](https://www.internhack.in/learn/interview/redis-caching/redis-sentinel-vs-cluster) · [All of Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)

## More Redis & Caching questions

- [Penetration, Breakdown, & Snowslide](https://www.internhack.in/learn/interview/redis-caching/redis-cache-pen-break-snow)
- [Distributed Locking (Redlock)](https://www.internhack.in/learn/interview/redis-caching/redis-distributed-locking-redlock)
- [Pipelining](https://www.internhack.in/learn/interview/redis-caching/redis-pipelining)
- [Redis Streams](https://www.internhack.in/learn/interview/redis-caching/redis-streams-vs-kafka)
- [LRU vs LFU in depth](https://www.internhack.in/learn/interview/redis-caching/redis-eviction-lru-vs-lfu)
- [Lua Scripting](https://www.internhack.in/learn/interview/redis-caching/redis-lua-scripting)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)
