pubnub-scale

Optimize PubNub real-time applications for high-concurrency scale and performance.

6|Updated May 26, 2026
One-click install
npx skills add https://github.com/pubnub/skills --skill pubnub-scale
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pubnub-scale
Source: https://github.com/pubnub/skills/tree/main/pubnub-scale
Command: npx skills add https://github.com/pubnub/skills --skill pubnub-scale

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Scale-focused guidance to design and operate PubNub real-time apps under high concurrency, reducing subscription overhead and latency.

Core Features & Use Cases

  • Channel Groups for efficient subscriptions across many users
  • Wildcard subscriptions for hierarchical data without exploding channel lists
  • Payload optimization and batching to maximize throughput
  • Monitoring patterns, Stream Controller usage, and persistence considerations for scale

Quick Start

Configure channel groups, wildcard subscriptions, and performance patterns to scale PubNub apps.

Frequently Asked Questions about pubnub-scale

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scale PubNub real-time apps for high concurrency without increasing latency?

To scale PubNub real-time apps, you use channel groups and wildcard subscriptions to reduce subscription overhead, alongside payload optimization and batching to maximize throughput and maintain sub-100ms delivery latency.

What is the best way to manage many PubNub subscriptions across large user bases?

The best way to manage many PubNub subscriptions is using channel groups, which allow clients to subscribe to thousands of channels through a single connection, significantly reducing connection overhead and improving operational scale.

How do wildcard subscriptions work for hierarchical data streams in PubNub?

Wildcard subscriptions in PubNub work by matching channel name patterns, allowing you to receive hierarchical data streams without explicitly subscribing to exploding channel lists, provided the Stream Controller feature is enabled.

Do I need to enable Stream Controller to use wildcard subscriptions and channel groups?

Yes, you must enable the Stream Controller add-on to use wildcard subscriptions and channel groups in PubNub, as it enforces the necessary requirements for managing large data streams and achieving sub-100ms delivery targets.

How do I optimize payload sizing and batching to maximize PubNub throughput?

You optimize PubNub throughput by minimizing payload sizes and grouping messages into batches, which reduces network overhead and ensures high-volume data streams achieve reliable sub-100ms delivery performance.

What monitoring patterns should I use for high-volume PubNub applications?

Monitoring patterns for high-volume PubNub applications involve tracking delivery latency, subscription overhead, and persistence considerations to ensure reliable performance and sub-100ms data delivery targets under high concurrency.