RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Cabby: A Rust real-time server for Rails (Action Cable & AnyCable compatible)

Cabby is an MIT-licensed real-time server written in Rust that takes over WebSockets from Action Cable while keeping your existing Rails channels, Turbo Streams, broadcasts, and JavaScript clients unchanged (drop-in compatible with anycable-rails-core and AnyCable).

Built tests-first against all 923 upstream compatibility cases, it also supports SSE, durable streams, presence, history/recovery, signed streams, and Pusher v7.

From the external benchmark suite (same machine, 2 server cores, every message reconciled by ID): - Memory: 109 MB for 10,000 idle clients (~9.7 KB/connection) vs 390 MB for Action Cable and 288 MB for AnyCable - Throughput: sustains 150,000 deliveries/s with 0 lost or out-of-order messages (Action Cable topped out at ~25k/s on 1 core) - Pusher mode: beats single-core Soketi and Laravel Reverb on multi-core fan-out throughput and p99 latency

Site & interactive cable-flow demo: https://cabbyhq.com Docs: https://docs.cabbyhq.com Source (MIT): https://github.com/DaniG2k/cabby

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in