TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Render realtime RethinkDB results in React

99 点作者 g4k将近 10 年前

8 条评论

tinco将近 10 年前
I&#x27;ve got a toy RethinkDB+React stack too, here&#x27;s an example application: <a href="https:&#x2F;&#x2F;github.com&#x2F;tinco&#x2F;celluloid-rethinkdb-chat" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tinco&#x2F;celluloid-rethinkdb-chat</a><p>It&#x27;s Ruby+Celluloid doing subscriptions on RethinkDB, and it uses Meteor&#x27;s DDP protocol to talk to the React client side.<p>Was pretty easy to build. All the modern technologies fit really well together.<p>Unfortunately in the Ruby world live webservices like this haven&#x27;t really taken off much yet, so I had to write some low-ish level things myself (The DDP server implementation, which I think is the only non-Meteor DDP server implementation out there, and the celluloid-websocket implementation, which was easy because there&#x27;s a great ruby websocket library by the faye people)
评论 #9830395 未加载
imslavko将近 10 年前
I&#x27;ve built a RethinkDB-Meteor integration using ReQLite and Meteor&#x27;s stack: (<a href="https:&#x2F;&#x2F;github.com&#x2F;Slava&#x2F;meteor-rethinkdb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Slava&#x2F;meteor-rethinkdb</a>).<p>I see that your TODOs list has &quot;Optimistic UI updates&quot;, I worked in this direction and figured there are multiple things blocking such architecture in RethinkDB:<p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;rethinkdb&#x2F;rethinkdb&#x2F;issues&#x2F;4307" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rethinkdb&#x2F;rethinkdb&#x2F;issues&#x2F;4307</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;rethinkdb&#x2F;rethinkdb&#x2F;issues&#x2F;2727" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rethinkdb&#x2F;rethinkdb&#x2F;issues&#x2F;2727</a><p>Something you might want to consider when you decide to implement it.
评论 #9832558 未加载
escherize将近 10 年前
I am excited about rethink and I use react (via cljs + reagent [1]) every day. The FRP approach of reagent combined with subscribing to rethink for updates is very appealing.<p>[1] <a href="http:&#x2F;&#x2F;reagent-project.github.io" rel="nofollow">http:&#x2F;&#x2F;reagent-project.github.io</a>
评论 #9830138 未加载
评论 #9830230 未加载
curiousjorge将近 10 年前
&gt; This is similar to solutions like Meteor, Parse, and Firebase. Rather than writing database queries in the backend and exposing API endpoints to the frontend, these solutions allow the frontend to directly access the data layer (secured by a permission system) using the same query API that backend services have access to.<p>This is a Meteor.js killer right here folks!
评论 #9832411 未加载
crucialfelix将近 10 年前
Interesting approach.<p>I would still rather connect to RethinkDB with a frontend service and push those to stores and have the component watch the store.<p>Because while this might work for a small use case, a real world usage will quickly outgrow that and you will wish you hadn&#x27;t stuffed such functionality in a display component.<p>So this is probably most useful for quick sketches and debugging stuff.
评论 #9830510 未加载
jokull将近 10 年前
I guess this is intended for trusted clients?
评论 #9830104 未加载
applecore将近 10 年前
Looks like everyone&#x27;s hopping on the React bandwagon, trying to grab a piece of the hype.
评论 #9831531 未加载
评论 #9831384 未加载
评论 #9830267 未加载
评论 #9831722 未加载
评论 #9830593 未加载
评论 #9830078 未加载
brohipsterdev2将近 10 年前
Holy &quot;shiny new tech buzzword compliance&quot; batman! This is hipster dev certified!
评论 #9830364 未加载