nats-best-practices

Community

Master NATS 2.10+ and JetStream best practices for scalable message handling.

Authordouglasdennys45
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexity of implementing scalable, robust message handling in NATS and JetStream, ensuring efficient messaging with exactly-once delivery, fault tolerance, and high throughput.

Core Features & Use Cases

  • NATS vs JetStream Decision: Offers guidance on choosing between Core NATS and JetStream based on use case.
  • Stream and Consumer Configuration: Best practices for setting up Streams and Consumers with focus on retention policies, storage, and message processing.
  • Publisher Patterns: Demonstrates robust publishing patterns with idempotency and deduplication strategies.
  • Worker Scalability: Best practices for scaling workers consuming from the same subject with JetStream Pull Consumers.
  • Dead Letter Queue (DLQ): Implementations and considerations for DLQ setup.
  • Graceful Shutdown: Best practices for handling graceful shutdown to avoid message loss.

Quick Start

Load this skill to get insights into best practices for designing NATS messaging architectures.

Dependency Matrix

Required Modules

natsnats.go

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nats-best-practices
Download link: https://github.com/douglasdennys45/skills/archive/main.zip#nats-best-practices

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.