Pub/Sub (Publish/Subscribe) Redis का messaging pattern है जहाँ publishers channels को messages भेजते हैं और subscribers उन channels से messages प्राप्त करते हैं जिनकी उन्होंने subscribe किया है — बिना publishers और subscribers के एक-दूसरे के बारे में जाने। यह real-time messaging और services के बीच decoupled communication को संभव बनाता है।
Pub/Sub model
SUBSCRIBE news
PUBLISH news
PSUBSCRIBE news.*
