129 points · by elierotenberg · 11y ago · 37 comments
* Stores contain Observables
* Components (or Views) contain Observers
* Actions are Proxies
So the article is basically saying the Observer pattern is scalable, but uses the buzz-phrase "Full Stack Flux" instead. To make it even worse it is only a theoretical application of this pattern.
I definitely don'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't see the upside.)
It'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.
As in every new and complicated design, i'm a bit skeptical of rules of thumb calculations. You never know what the wrong latency issue at the wrong place can do...
Obviously not. Some of his numbers are off by an order of magnitude.
E.g. he claims "10 million messages/sec" for a single redis instance.
In reality redis tops out at well under one million messages/sec; http://redis.io/topics/benchmarks
The design is almost comically bad (single source of truth for a "scalable" chat app?!). This is either an attempt at parody or this guy must be suffering from a rather severe case of second system effect...
Few remarks though:
- it's still way below the number of actions we're talking about here (~100k/s)
- since redis is only used as a generic MQ and not as a store, it can be sharded at the app level without the pain usually associated with redis clustering
- I've deployed a similar (but less performant) design for the player of a gaming website, which is in use in production for more than a year, and works like a charm (we're talking ~5-50k users per channel on a daily basis). This is definitely a "second-system" pattern, but I try to avoid the associated pitfalls :)
I'd be genuinely interested by your feedback!
How about just not making wild claims about byzantine fantasy designs that you never tested under any kind of load.
There has been a lot of research in messaging architectures, some of the best message brokers are free. As it happens, none of them have any resemblance to your proposed design.
RabbitMQ has been benchmarked[1] to 1 million messages/sec on 30 servers and works very well for many people.
Why not start with that?
[1] http://blog.pivotal.io/pivotal/products/rabbitmq-hits-one-mi...
Instead, it's some abstract theory. I believe everyone can dream of any architecture.
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.
I used to live in Perth and we'd sometimes hang out and mock the front page of HN.
Once that FD is active, you call the poll() method and your notify payload becomes available to you.
It's still not a particularly simple interface as you have to check for notifications after every single SQL command if I understand it correctly.
I wonder how would Meteor be better than this proposal given that both are node based.