为什么 Redis 具有 Pub/Sub 功能? [英] Why does Redis have Pub/Sub capabilities?

查看:60
本文介绍了为什么 Redis 具有 Pub/Sub 功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么数据存储区 RedisPub/Sub 功能?我的第一个想法是实现这样的事情是错误的层.但也许我需要跳出框框思考.

Why does Redis, a datastore, have Pub/Sub features? My first thought is that it's the wrong layer to implement such a thing. But maybe I need to think outside the box.

推荐答案

Redis 被定义为数据结构服务器.Redis 提供了多种功能,如 memcache、队列、pubsub 等.这对于云应用/网络堆栈非常有用,其中 3 个组件 RabbitMQ(queuing) + XMPP(pubsub) + Memcache 当前可以用 redis 替换.不过,排队功能不如 RabbitMQ 丰富.

Redis is defined as data structure server. Redis provides multiple functionality like memcache, queue, pubsub etc. This is very useful for a cloudapp/webstack where 3 components RabbitMQ(queuing) + XMPP(pubsub) + Memcache can be currently replaced with redis. Queuing is not as feature rich as RabbitMQ though.

这篇关于为什么 Redis 具有 Pub/Sub 功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆