📡
Soketi
0.x
0.x
  • 📡soketi
  • 🏆Benchmarks
  • 🎉Support
  • 🤝Contributing
  • 😢Known Limitations
  • Getting started
    • 🚀Installation
      • CLI Installation
      • Docker
      • Helm Charts
      • Laravel Sail (Docker)
    • 💿Configuring the server
    • 🔐SSL Configuration
    • 🎨Client Configuration
      • Pusher SDK
      • Laravel Echo
    • 💻Backend Configuration
      • Pusher SDK
      • Laravel Broadcasting
      • Nginx Configuration
    • 🧠Redis Configuration
  • App Management
    • 🎟️Introduction
    • 🧬Array Driver
    • 🛢️SQL Drivers
      • 🐬MySQL
      • 🐘PostgreSQL
      • ⛲Database Pooling
    • 👾DynamoDB
  • Rate Limiting & Limits
    • ⛔Broadcast Rate Limiting
    • 👥Events & Channels Limits
  • Advanced Usage
    • ↔️Horizontal Scaling
      • 🤖Running Modes
      • 🧠Redis Configuration
      • 🧙‍♂️🧙♂ 🧙♂ 🧙♂ NATS Configuration
      • 🗃️Private Network Configuration
      • 😑Ok, what to choose?
    • 🛑Graceful Shutdowns & Real-time monitoring
    • 📈Prometheus Metrics
    • 🔗HTTP Webhooks
      • 📐AWS Lambda trigger
    • 🕛Queues
      • ⛓️AWS SQS FIFO
      • 🧠Redis
  • Network Watcher
    • 🚀Installation
    • 💿Environment Variables
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Advanced Usage
  2. Horizontal Scaling

🧙♂ 🧙♂ 🧙♂ NATS Configuration

PreviousRedis ConfigurationNextPrivate Network Configuration

Last updated 3 years ago

Was this helpful?

Alternative to Redis, you may use to communicate between node instances of soketi.

These environment variables work only when ADAPTER_DRIVER is set to nats.

Environment Variables

Name
Default
Possible values
Description

ADAPTER_NATS_PREFIX

''

Any string

The NATS adapter prefix.

ADAPTER_NATS_SERVERS

['127.0.0.1:4222']

Array in JSON-formatted string

The list of servers to connect to for NATS.

ADAPTER_NATS_USER

null

Any string

The user used to authenticate NATS requests.

ADAPTER_NATS_PASSWORD

null

Any string

The password used to authenticate NATS requests.

ADAPTER_NATS_TOKEN

null

Any string

The JWT token used to authenticate NATS requests (as alternative to user and password).

ADAPTER_NATS_TIMEOUT

10000

Any number (milliseconds).

The connection timeout for NATS.

ADAPTER_NATS_REQUESTS_TIMEOUT

5000

Any number (milliseconds).

The time to wait for cross-node requests. .

↔️
🧙‍♂️
NATS
See ADAPTER_CLUSTER_REQUESTS_TIMEOUT