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
# after
All flags, ANYCABLE_* environment variables and your anycable.toml carry over unchanged.
Configuration lists the flags most setups need.
What's different
cabby --versionprintscabby 0.1.0 (AnyCable 1.6.21 compatible)instead of1.6.21, andcabby --helpnames the programcabby. 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-serverbinary as a child process instead of in the same process. The downloads don't include it. Putnats-servernext tocabbyor on yourPATH, or setCABBY_NATS_SERVERto its location. - Commercial-edition features of the original server aren't included.
Cabby is an independent project, not affiliated with AnyCable or Evil Martians.