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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Million User Webchat with Full Stack Flux, React, Redis and PostgreSQL

129 点作者 elierotenberg超过 10 年前

12 条评论

megaman821超过 10 年前
The Flux terminology is confusing to me. It looks like the Observer pattern to me.<p>* Stores contain Observables<p>* Components (or Views) contain Observers<p>* Actions are Proxies<p>So the article is basically saying the Observer pattern is scalable, but uses the buzz-phrase &quot;Full Stack Flux&quot; instead. To make it even worse it is only a theoretical application of this pattern.
评论 #9059149 未加载
remon超过 10 年前
I suppose there is some value to this as a thought experiment but pretty much every tier in that architecture has breaking flaws. The most relevant being that anything that has an audience of 1 million users cannot run on an architecture that has single points of failure.
评论 #9058474 未加载
评论 #9058410 未加载
gfodor超过 10 年前
AFAICT, Facebook engineered their client side code around Flux in order to eliminate two-way data binding in their user interface code, which leads to all sorts of issues. I don&#x27;t imagine they push the pattern into the server. Their relay stuff still relies upon a smart data tier which understands a query language called GraphQL.<p>I <i>definitely</i> don&#x27;t think they considered implementing a dumb dispatcher and store layer on the database server using stored procedures. (This seems terrifying to me, I don&#x27;t see the upside.)<p>It&#x27;s an interesting experiment but I think this might be an example of being too aggressive in trying to generally apply a design pattern that was motivated by a specific problem.
bsaul超过 10 年前
Great post, but has this design been implemented to <i>effectively</i> handle something close to a million users ( or even 100k and show that no part is overheating) ?<p>As in every new and complicated design, i&#x27;m a bit skeptical of rules of thumb calculations. You never know what the wrong latency issue at the wrong place can do...
评论 #9056259 未加载
评论 #9056322 未加载
jacques_chester超过 10 年前
GameRanger has six million users, tens of thousands to hundreds of thousands of whom will be active simultaneously. His chat problem involved has moderate fan-out.<p>Scott Kevill does it on a single machine (last time I checked) with hand-rolled C++ and close attention to the details of how the Linux networking stack works.
评论 #9057979 未加载
评论 #9057351 未加载
评论 #9057191 未加载
vonklaus超过 10 年前
Do you have anything like this up on github?
评论 #9056443 未加载
thomasfl超过 10 年前
This could be the inspiration for a great open source project, and become something that could easily be deployed to a cloud hosting platform. Basically it&#x27;s the same as firebase, but with some of the react and flux goodness like server side rendering. Or somebody could package this as a product.
评论 #9056147 未加载
fauigerzigerk超过 10 年前
One problem I have with using postgres listen&#x2F;notify as a general purpose message queue is that it requires polling (At least that was the case when I last looked at it). Of course you can use a blocking wrapper around the polling code but it still causes unnecessary roundtrips.
评论 #9056997 未加载
评论 #9056884 未加载
polskibus超过 10 年前
As far as I understand, this design is based on similar goals as the Meteor&#x2F;MongoDB project - instead of reading oplog, you listen for notifications.<p>I wonder how would Meteor be better than this proposal given that both are node based.
alxndr超过 10 年前
OT: as someone trying to learn my way around Erlang&#x27;s OTP framework, I&#x27;d be interested in a walkthrough of an OTP based system compared to this.
razzi超过 10 年前
Anybody know how to efficiently make smexy graphs like that? Did Adobe have a hand in their creation?
cha_os超过 10 年前
This is so interesting - keep up the good work!