背景
Redis Stream是一个作者已经谋划多年的feature,本质是一个消息队列,但是和kafka、RocketMq等消息中间件相比也有其独特之处。Redis Stream本来是计划放在4.0这个大版本中发布(原计划4.2),但是由于确实是个比较重磅的feature,对内核的改动也比较大,目前已经提升到Redis 5.0发布,根据作者Twitter的消息,不出意外,18年上半年我们可以看到5.0的稳定版。本文就根据作者发布的设计文档、博客及相关资料,对Redis Stream做一个简单的介绍,目前代码在unstable分支。
Redis Stream




















参考资料
- 博客文章:antirez.com/news/114
- Redis RCP(Redis Change Proposal) of Redis stream: github.com/redis/redis…
- antriez gist of Cgroup:gist.github.com/antirez/68e…
- redis stream consumer group final api: gist.github.com/antirez/4e7…
- antriez blog updated(2018-01-27):antirez.com/news/116
- Why streams have elements that are actually like hashes? gist.github.com/antirez/2f1…