Favicon of AnyCable

AnyCable

Add reliable two-way realtime communication to your backend using WebSockets and SSE. Scale your applications efficiently with a robust, open-source server.

Integrate robust, two-way realtime communication into your existing backend architecture. This open-source server handles the heavy lifting of persistent connections, allowing your application to scale efficiently without compromising performance. By offloading connection management, you can focus on building core features while maintaining high reliability for your users.

Key benefits include:

  • Multi-protocol support: Connect seamlessly using WebSockets and Server-Sent Events (SSE) for versatile realtime capabilities.
  • Backend agnostic: Designed to work with any backend framework, giving you the flexibility to use your preferred technology stack.
  • High scalability: Efficiently manage thousands of concurrent connections with minimal resource consumption.

Whether you are building live chat applications, collaborative tools, or real-time dashboards, this server provides the necessary infrastructure to deliver instant updates and maintain reliable two-way data flow.

Directory Structure

anycable
redis-data
.env
docker-compose.yml

docker-compose.yml

services:
  anycable:
    image: anycable/anycable-go:latest
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      ANYCABLE_HOST: "0.0.0.0"
      ANYCABLE_PORT: "8080"
      ANYCABLE_RPC_HOST: ${ANYCABLE_RPC_HOST}
      ANYCABLE_REDIS_URL: ${ANYCABLE_REDIS_URL}
      ANYCABLE_DEBUG: "true"
    depends_on:
      - redis
    networks:
      - anycable_net

  redis:
    image: redis:7-alpine
    restart: unless-stopped
    volumes:
      - ./redis-data:/data
    networks:
      - anycable_net

networks:
  anycable_net:

.env

# The gRPC server address of your backend application (e.g., rails-app:50051)
# Use host.docker.internal:50051 if running the app on the host machine
ANYCABLE_RPC_HOST=host.docker.internal:50051

# Redis connection URL
ANYCABLE_REDIS_URL=redis://redis:6379/0

Share:

Ad
Favicon

 

  
 

Similar to AnyCable

Favicon

 

  
  
Favicon

 

  
  
Favicon