AnyCable

AnyCable

Polyglot, high-performance WebSocket server for Action Cable

2.2kstars
110forks
Last commit: 4d ago
Repo age: 10y old
AnyCable screenshot

AnyCable is a WebSocket server built for Ruby on Rails applications using Action Cable. It replaces the default Rails Action Cable server with a high-performance Go implementation while keeping the Rails channel code and APIs, enabling easier scaling and better concurrency.

Key Features:

  • Drop-in replacement for Rails Action Cable server (keeps existing channel code)
  • Go-based WebSocket server designed for high concurrency and lower memory usage
  • RPC bridge between the WebSocket server and Rails application for channel callbacks
  • Supports different broadcast adapters/brokers (commonly Redis; also supports other pub/sub backends via adapters)
  • JWT-based authentication support and flexible connection identifiers (via Rails integration)
  • Observability hooks/metrics and structured logging options (implementation-dependent)

Use Cases:

  • Scaling Rails real-time features (chat, notifications, live updates) beyond a single Action Cable process
  • Reducing memory/CPU footprint of WebSocket handling in production Rails deployments
  • Running real-time WebSocket infrastructure as a separate service while keeping Rails channel logic

Limitations and Considerations:

  • Requires deploying and operating an additional WebSocket server component alongside the Rails app
  • Full feature parity depends on the chosen broker/adapter and configuration (e.g., advanced setups beyond Redis)

AnyCable is a pragmatic choice for teams invested in Rails Action Cable who need better performance and horizontal scalability without rewriting real-time application code. It separates WebSocket handling from Rails while preserving the familiar Action Cable programming model.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

Rocket.Chat

Rocket.Chat

Secure team messaging with channels, DMs, and omnichannel support

44.3k
12.9k
Last commit: 1d ago

Self-hosted team chat platform with channels, DMs, voice/video, rich integrations, and omnichannel customer support features.

Alternative to:
Slack
Slack
+9
Mattermost

Mattermost

Secure team messaging for technical and operational teams

34.9k
8.3k
Last commit: 1d ago

Self-hostable team chat with channels, threads, calls, integrations, and enterprise-grade security controls for organizations that need full data control.

Alternative to:
Slack
Slack
+4
Jitsi Meet

Jitsi Meet

Open-source video meetings built on WebRTC

28.3k
7.7k
Last commit: 2d ago

Self-hostable video conferencing with browser-based meetings, screen sharing, chat, moderation tools, and optional end-to-end encryption.

Alternative to:
Zoom
Zoom
+9
Zulip

Zulip

Threaded team chat organized by topic streams

24.2k
9.3k
Last commit: 28d ago

Self-hostable team chat with topic-based threading, powerful search, and integrations for engineering and communities.

Alternative to:
Slack
Slack
+4
Gotify

Gotify

Self-hosted push notifications with apps and API

14.4k
800
Last commit: 1d ago

Gotify is a self-hosted push notification server with a web UI, Android client, and REST API for sending messages from scripts, services, and monitoring tools.

Alternative to:
Pushover
Pushover
+7
SimpleX Chat

SimpleX Chat

Private messaging without user IDs or phone numbers

10.2k
538
Last commit: 11d ago

Privacy-first messenger using SimpleX relays and end-to-end encryption, designed to avoid user identifiers, phone numbers, and centralized identity.

Alternative to:
Signal
Signal
+5