Skip to content
cabby

Migrating from AnyCable

Cabby replaces the server binary and nothing else. Your Rails or Laravel integration, channels and JavaScript client stay the same.

Why not just use AnyCable's server?

You can, and it works well. Cabby is for when memory and tail latency matter. In the same benchmark (same machine, same load, 5 rounds), against the open-source anycable-go 1.6:

Measure anycable-go Cabby
Memory per extra connection 26.6 KB 9.7 KB
Memory with 10,000 idle connections 288 MB 109 MB
p99 latency, 1,000 clients at 150,000 msg/s 11.9 ms 7.7 ms
p99 latency, one 5,000-client room at 100,000 msg/s 65.8 ms 51.6 ms

Both delivered every message at every rate we tested. If you need the commercial edition's features, stay with AnyCable.

Swap the binary

Install Cabby. Then, wherever you start anycable-go, start cabby with the same arguments:

# before
anycable-go --rpc_host=http://localhost:3000/_anycable
# after
cabby --rpc_host=http://localhost:3000/_anycable

All flags, ANYCABLE_* environment variables and your anycable.toml carry over unchanged. Configuration lists the flags most setups need.

What's different

  • cabby --version prints cabby 0.1.0 (AnyCable 1.6.21 compatible) instead of 1.6.21, and cabby --help names the program cabby. Update any deploy script that parses either.
  • No telemetry. Cabby doesn't send usage telemetry.
  • mruby scripting (for custom metrics formatting) isn't included in the prebuilt binaries or the Docker image. It's an optional build feature.
  • Embedded NATS runs the official nats-server binary as a child process instead of in the same process. The downloads don't include it. Put nats-server next to cabby or on your PATH, or set CABBY_NATS_SERVER to its location.
  • Commercial-edition features of the original server aren't included.

Cabby is an independent project, not affiliated with AnyCable or Evil Martians.