Skip to content
Self-Hosted OSS Cache & Queues

NATS (JetStream)

Ultra-lightweight Apache-2.0 Go messaging & JetStream persistence engine (~20-64 MB RAM).

Self-Hosted Blueprint

nats-io/nats-server ↗
Min RAM / CPU
64 MB · 1 vCPU
License
Apache-2.0
GitHub Stars
21k
Maintenance
Low
One-click templates on: coolify dokploy

Quickstart / Docker Compose

docker-compose.yml
services:
  nats:
    image: nats:2-alpine
    restart: unless-stopped
    command: ["-js", "-sd", "/data"]
    ports:
      - "4222:4222"
    volumes:
      - nats_data:/data
volumes:
  nats_data:

Gotchas & Hidden Limits

  • You MUST pass `-js` (`--jetstream`) to enable durable queues, streams, and KV — core NATS defaults to at-most-once memory pub/sub.
  • Ships as a minimal Go binary with CLI (`nats-cli`) monitoring rather than a built-in web admin console.
Best For: Low-footprint durable work queues, real-time pub/sub fan-out, and edge/IoT telemetry.
Crossover Point: Eliminates per-message SQS/Upstash fees cleanly inside ~64 MB RAM alongside any Go, Rust, or TypeScript stack.

Related Comparisons & Alternatives

Spot an outdated limit or pricing change?

Report Outdated Limit or Pricing Change

Flag changed quotas, pricing tiers, credit-card rules, or license shifts for manual verification.

Request Type
2–120 characters, e.g. Coolify or Neon.
⚠ Enter the tool name (at least 2 characters).
Include https:// (e.g. https://coolify.io/pricing).
⚠ Enter a valid URL starting with https:// or http://.
Deployment Model
Lowercase letters, numbers, and hyphens only (e.g. coolify).
Optional — only used if editors need clarification.
⚠ Enter a valid email address (e.g. name@domain.com).
Share key free allowances, credit-card gate, sleep rule, or min Docker RAM.
⚠ Enter at least 10 characters describing the correction.
Human Verification

Search StackTiers Infrastructure Index

↑↓ navigate · ↵ openFull Pagefind search →