News for hackers. Stuff that matters.
Re:StimulusReflex, or LiveView for Rails by rkangel on Friday January 15, 2021 @09:18AM (#25791181)
It's worth pointing out that the Phoenix Web Framework (which LiveView is built on) came into being because the creator Chris McCord tried to build something like LiveView in Ruby and eventually ran into fundamental limitations due to how concurrency was handled. He looked around, discovered Elixir and the rest is history.

I'm very interested to learn what has changed since then that made this possible, or made it work better. Or whether those problems are just being "lived with".

Re:StimulusReflex, or LiveView for Rails by bestinterest on Friday January 15, 2021 @09:26AM (#25791261)
There's a project called AnyCable which replaces ActionCable to give Rails the real-time performance equivalent of LiveView.

See this https://evilmartians.com/chronicles/anycable-actioncable-on-...

Looks like having 20,000 idle clients connected to a server sits at only 380MB and Erlang is at 737MB.

Re:StimulusReflex, or LiveView for Rails by jakswa on Friday January 15, 2021 @10:14AM (#25791846)
Thanks for posting this. I need to try it out. I'm specifically curious about how it performs when a certain amount of those 20k connections are busy and generating traffic. If I'm understanding, the anycable-go connection to ruby is over RPC? So individual websocket messages generate requests to ruby? I could see this performing better for idle connections, that's for sure.
Re:StimulusReflex, or LiveView for Rails by julianrubisch on Friday January 15, 2021 @12:29PM (#25793434)
I’m really excited for Ractors in this content and how/if they could improve the Ruby side
Re:StimulusReflex, or LiveView for Rails by deedubaya on Friday January 15, 2021 @11:23AM (#25792562)
I've had good success with AnyCable
Re:StimulusReflex, or LiveView for Rails by bpicolo on Friday January 15, 2021 @10:49AM (#25792189)
> Looks like having 20,000 idle clients connected to a server sits at only 380MB and Erlang is at 737MB.

That's with Go, versus with anycable itself. Anycable-go looks like 798?

Re:StimulusReflex, or LiveView for Rails by ksec on Friday January 15, 2021 @03:15PM (#25795757)
I remember there were still latency issues, with 99th percentile being well over 100ms.

Cant find the link to the article though.