Skip to content

Configure pools and connections

Two small records decide how a delivery behaves. A dispatch pool limits how fast the platform delivers: its concurrency and its rate. A connection decides who signs the delivery and lets you pause a destination. Both are under Messaging in the console. This guide is the how-to; for why they exist, read Dispatch pools and back-pressure and Subscriptions and connections.

Applications can also declare their pools and connections in code, which the platform keeps in step with definition sync. Create them by hand in the console for records that no application owns, or when you want to adjust a limit in production without a deploy.

Open Messaging → Dispatch Pools (/ui/dispatch-pools; platform:messaging:dispatch-pool:view).

Choose Create Pool (platform:messaging:dispatch-pool:create) and fill in the dialog:

Field Notes
Code Unique per client. Lower case, starting with a letter, then letters, digits, hyphens and underscores; refused if it exists (CODE_EXISTS) or is malformed (INVALID_CODE_FORMAT). Fixed after creation.
Name, Description Display text.
Concurrency The most deliveries in progress at once. The form’s help text is “Maximum concurrent dispatches”.
Rate Limit (per minute) Optional. Blank means the pool is limited by concurrency alone.
Client Optional: “this pool will only be used for jobs scoped to this client”. Needs permission to view clients to choose.
Anchor-level pool (not client-scoped) Tick for a platform-level pool shared across clients.
  • Concurrency is the lever for a consumer that can only take a few requests at once. Set it to what the consumer can handle, not to the platform’s capacity.
  • Rate limit is a token bucket whose burst is one minute’s worth. A pool at 60 per minute delivers up to 60 at once after a quiet spell, then one a second. At 6 per minute it bursts 6 and then waits ten seconds per delivery. If jobs look stuck while a rate-limited pool is idle, this is the likely cause; see the rate-limit wait you cannot see.
  • Give each consumer that might be slow or fragile its own pool. One slow consumer then fills only its own pool, and the router defers its messages instead of blocking the others.
  • Every client also has an automatic DEFAULT-POOL (concurrency 20, no rate limit) for subscriptions that name no pool. You do not create it.

The router reads the pool list every 30 seconds and applies a changed limit in place, without a restart. Expect a new limit to take effect within about a minute.

Open the row menu (or the drawer):

Action Permission Effect
Suspend… platform:messaging:dispatch-pool:update The scheduler stops claiming the pool’s jobs and any already queued return to PENDING without spending an attempt. They wait.
Activate… …:dispatch-pool:update Resumes the pool; held jobs are released in order.
Delete… …:dispatch-pool:delete Removes the pool. Before you delete one, move every subscription that names it to another pool; the console does not do that for you.
Archive Not offered in the console. An ARCHIVED pool is read-only here (“Archived pools cannot be edited.”), takes no new jobs or subscriptions (409 POOL_ARCHIVED), and its existing jobs wait.

Jobs held by a suspended pool still age. A job that reaches its maxAgeSeconds (24 hours by default) while the pool is suspended becomes EXPIRED instead of being delivered, so do not leave a pool suspended for a day without a plan. To hold only one consumer’s deliveries, pause its connection instead.

On Messaging → Subscriptions, set the subscription’s Dispatch Pool. A subscription may name a pool in any status except ARCHIVED.

A connection has no URL. It holds the service account whose bearer token and HMAC signing secret go on every delivery that passes through it. Many subscriptions can share one.

Open Messaging → Connections (/ui/connections; platform:messaging:connection:view).

Choose Create Connection (platform:messaging:connection:create):

Field Notes
Code, Name, Description Identity. The code is unique within its application and client.
Service Account Required: “the service account used for authentication when delivering events”. Choosing one needs platform:iam:service-account:view.
Client Leave empty for an anchor-level connection, or select a client.
External ID Optional reference to the connection in another system.

The consumer is configured with that service account’s webhook secret, so create the account first (see Users, roles and delegation) and share its token and signing secret with the consumer, as described for receivers. If you later regenerate the account’s token or secret, update the consumer at the same moment.

A connection named by id must be global or of the same client as the subscription using it. A mismatch is refused with CONNECTION_SCOPE_MISMATCH.

Pause… (platform:messaging:connection:update) stops delivery through the connection. Jobs are still created, but the scheduler holds them PENDING; when you Activate… the connection again (picked up within about a minute) they are delivered in order. This is the safe way to protect a consumer that is down or being deployed. Pausing a subscription is different: events that happen while it is paused are not delivered later.

The service account’s drawer lists its connections with the same Pause and Activate actions.

Delete… needs platform:messaging:connection:delete. Check which subscriptions use the connection first; the Subscriptions page can filter by connection.

Pools and connections both have Export JSON in the drawer and Import from JSON on the create form. See Copy definitions between environments. References such as the connection’s service account travel by code, so create the account in the target environment first.