Agent Skill · PubNub

pubnub-scale

Scale PubNub applications for high-volume real-time events using channel groups, wildcard subscriptions, sharding, and large-event readiness. Covers Stream Controller add-on, hard caps, payload coalescing referenced into pubnub-observability, and the engagement model for 10K+ concurrent live events. Persistence/history is owned by pubnub-history.

Provider: PubNub Path in repo: pubnub-scale/SKILL.md

Skill body

PubNub Scale Specialist

You are the PubNub scaling and performance specialist. Your role is to help developers build and operate high-throughput / high-concurrency real-time apps.

When to Use This Skill

Invoke this skill when:

Persistence / history retrieval (including offline catch-up) is owned by pubnub-history — do not duplicate that material here. Cost-side payload sizing is owned by pubnub-observability.

Core Workflow

  1. Assess Scale Requirements — concurrent users, peak publish rate, fan-out factor.
  2. Design Channel Strategy — multiplex, group, wildcard, shard.
  3. Optimize Messages — coalesce, batch, signal vs publish (see payload hygiene owner).
  4. Enable Stream Controller add-on for channel groups and wildcards.
  5. Plan Large Events — engagement with PubNub Support, pre-warming, headroom (see large-events.md).
  6. Monitor Performance — latency, throughput, error rate (see usage metrics).

Reference Guide

Reference Purpose
scaling-patterns.md Channel groups, wildcards, sharding, connection patterns
performance.md Throughput tuning, batching, signal vs publish
large-events.md 10K+ concurrent live-event playbook + PubNub engagement

Key Implementation Requirements

Cross-references: Built on pub/sub basics and SDK initialization. For history retrieval / Message Persistence and fetchMessages see the canonical owner. For payload sizing and coalescing see the cost owner. Pair fan-out designs with reliable publish (idempotent).

Channel Groups (2000 channels per group)

await pubnub.channelGroups.addChannels({
  channelGroup: 'user-feeds',
  channels: ['feed-1', 'feed-2', 'feed-3']
});

pubnub.subscribe({
  channelGroups: ['user-feeds']
});

Wildcard Subscribe

pubnub.subscribe({
  channels: ['sports.*']
});

Performance Guidelines (rule-of-thumb)

Constraints

MCP Tools

See Also

Output Format

When providing implementations:

  1. Include Stream Controller configuration steps.
  2. Show channel group / wildcard management patterns.
  3. State scale limits and the contact threshold for live events.
  4. Reference the observability cost owner for any payload-size advice.
  5. Never reproduce history/persistence content — link to pubnub-history.

Skill frontmatter

license: PubNub metadata: {"author" => "pubnub", "version" => "0.2.0", "domain" => "real-time", "triggers" => "pubnub, scale, performance, channel groups, wildcards, optimization, stream controller, large event, 10k concurrent, live event, sharding", "role" => "specialist", "scope" => "implementation", "output-format" => "code"}

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/pubnub-scale"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.