TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

RCP 11 – Stream data type proposal for Redis

125 pointsby neo2001almost 9 years ago

5 comments

judofyralmost 9 years ago
Yes, please. I&#x27;ve never understood why someone wants to do pub&#x2F;sub and only base the reliability on TCP&#x2F;WebSockets. The concept of &quot;fire and hope everyone who wants the message still has a connection open&quot; always seemed fragile to me.<p>This has been the reason I&#x27;ve recommended implementing long-polling instead of WebSockets for real-time applications. And every time I see a real-time solution which <i>only</i> uses WebSockets I try to steer away from it. Once you have a reliable data model (which includes log position, retrieving old messages etc.) it&#x27;s just as simple to implement long-polling as WebSockets. With WebSockets-only solution I can&#x27;t help but think they base all the message delivery reliability on TCP.<p>This proposal looks like a clean (very Redis-like) solution, and I immediately see use cases for it.
评论 #11840988 未加载
评论 #11841801 未加载
评论 #11841770 未加载
dunkelheitalmost 9 years ago
That&#x27;s cool. In case you haven&#x27;t seen this blog post [1], it provides an extended discussion of the uses of this abstraction.<p>One comment about the groups API is that while it is very convenient, it seems a bit fragile - if a consumer is nuked immediately after it gets a fresh batch from redis then this batch is lost forever.<p>[1] <a href="https:&#x2F;&#x2F;engineering.linkedin.com&#x2F;distributed-systems&#x2F;log-what-every-software-engineer-should-know-about-real-time-datas-unifying" rel="nofollow">https:&#x2F;&#x2F;engineering.linkedin.com&#x2F;distributed-systems&#x2F;log-wha...</a>.
sintaxialmost 9 years ago
Salvatore is a machine. Since 2012 Redis has been a main tool in my preverbal belt and it has always seemed to have forward momentum.
评论 #11841002 未加载
thesorrowalmost 9 years ago
Apache Kafka is a beast. Would be awesome to have a light alternative !
评论 #11845123 未加载
louthyalmost 9 years ago
This looks very interesting. I use Redis as a backend for an actor-system [1] as part of a larger functional framework for C# [2]. I use RPUSH to add messages to an actor&#x27;s queue along with PUBLISH for saying &#x27;new message&#x27; to the actor that should check its inbox, this is then followed by LINDEX 0 to peek at the item at the head of the queue, before calling LPOP when the message has been successfully processed. If I&#x27;m understanding this correctly, that process could be wrapped up in a single stream?<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;louthy&#x2F;language-ext&#x2F;tree&#x2F;master&#x2F;LanguageExt.Process" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;louthy&#x2F;language-ext&#x2F;tree&#x2F;master&#x2F;LanguageE...</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;louthy&#x2F;language-ext" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;louthy&#x2F;language-ext</a>
评论 #11844244 未加载