AnyCable
Realtime server for reliable two-way communication over WebSockets, Server-sent events, etc.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Overview
AnyCable is a real-time (WebSocket) server developed by Vladimir Dementyev and the Evil Martians team. It has been in production use since 2017, and its website says more than 50 companies use it, including Doximity, CoinGecko, Jobber, and Circle. It runs as a standalone server alongside your application. Rails and Laravel have native SDKs, and backends in other languages can broadcast messages through the HTTP pub/sub API. The website positions it as an alternative to Action Cable, Pusher, and Socket.io.
Key Features
- Guaranteed message delivery: After brief disconnections, such as riding the subway or switching networks, clients automatically recover any messages they missed.
- Zero-disconnect deploys: When your application restarts or a new version is released, WebSocket connections stay open and users don't notice.
- Presence: Clients can join a channel's presence set and receive presence change events.
- Message ordering: Built-in guarantees for message order.
- High performance: Written in Go, with very low memory overhead for long-lived connections. A single server can handle more than 10,000 connections.
- Multiple backends supported: Works with Rails, Laravel, Node.js/TypeScript, Python/FastAPI, and any HTTP backend, and is compatible out of the box with Hotwire, Turbo Streams, and various JavaScript frameworks.
- No extra infrastructure required: Runs and scales using just the HTTP API and the embedded NATS pub/sub server, and can also connect to an existing Redis or NATS.
- Security: Supports JWT authentication and signed streams.
Editions and Pricing
- Open source edition: Free, MIT license. You can self-host it on Render, Railway, Heroku, Fly, AWS, GCP, or any environment that supports Docker or Kubernetes.
- Managed edition: 1 instance is free, handling about 2,000 connections, with no SLA.
- Pro edition (self-hosted, commercial EULA):
- Memory per connection is about 18 KB, compared with about 34 KB for the open source edition.
- Additional features: cluster mode consistency (shared stream history via Redis), adaptive scaling, slow draining on shutdown, binary message format, long polling fallback, Apollo GraphQL protocol, OCPP (the electric vehicle charging station protocol), and dedicated Slack support.
- Pricing: the Startup plan covers up to 5 production instances at $149/month; the Business plan covers up to 20 instances at $490/month; Scale and Enterprise plans are also available.
- A 2-month free trial is offered with no credit card required; staging and development instances are not charged; there is no metering and no telemetry.
- Consulting: $200/hour, to help with installation, deployment, and load testing.
Switching between the Managed, Pro, and open source editions requires no code changes.
Target Users and Use Cases
Suited to web application teams that need reliable real-time capabilities, especially Rails and Laravel projects. Industry use cases listed on the website include:
- Healthcare: With on-premises deployment, data never leaves your own infrastructure; the website states it meets HIPAA and SOC2 requirements.
- Fintech: Real-time market data and trade notifications.
- Field service and IoT: GPS tracking, dispatching, and charging station communication.
- Community platforms: Chat, live events, and presence.
- Other: Streaming AI responses, and more.
Deployment
You can deploy it with Docker, Kubernetes, Heroku, or Fly.io, or run it as a standalone binary. The source code is on GitHub (anycable/anycable), the Ruby gem is on RubyGems, and the images are on DockerHub. The documentation is at docs.anycable.io and includes integration guides for Rails, Laravel, JavaScript, and Hotwire.
Discover more
Artalk
Comment system built in Golang, providing a lightweight and highly customizable solution for adding comments to your website.
Centrifugo
Language-agnostic real-time messaging (Websocket or SockJS) server.
Ergo
Modern IRCv3 server written in Go, combining the features of an ircd, a services framework, and a bouncer.
Gotify
Notification server with Android and CLI clients (alternative to PushBullet).
plugNmeet
Scalable, High Performance, Open source web conferencing system.
remark42
A lightweight and simple comment engine, which doesn't spy on users. It can be embedded into blogs, articles or any other place where readers add comments.