folkwaysDocs
Console

Segments

Create and configure a segment, its environment, transports, who may connect, limits, rate presets and monthly caps.

A segment is one app in one environment, with its own keys, topic rules and topics. Create it from Segments → New segment, as in Get started. This page covers its Settings tab; owners and admins can change them.

General

SettingMeaning
Name, descriptionFor your team
EnvironmentProduction, Staging or Development. Clients see it when they connect; it changes no limits
ActiveOff refuses every client of the segment with Suspended, and closes open connections

Transports

TransportTurn off when
WebSocket (apps and browsers)The segment only takes server-side publishes
HTTP publish and long-poll (backends)You want every client on WebSockets

The JavaScript SDK falls back from WebSocket to long-polling where WebSockets are blocked, so leave HTTP on for browser apps. See Transports.

Who can connect

SettingDefaultMeaning
Allow anonymous connectionsOffAccept anonymous tokens, which publishable keys issue
Anonymous connections at onceEmptyA cap on anonymous connections. Empty: only the segment's connection limit applies
Connections per userEmptyHow many connections one identity may hold, one per device or tab. Empty: no limit
When a user is at the limitClose the oldestClose the oldest closes their oldest connection with Replaced, so a device that dropped off never locks its user out. Refuse the new one answers QuotaExceeded

Limits

A segment can set its own limits, lower than the package's but never higher. Leave a limit empty to use the package's.

LimitMeaning
ConnectionsConnections the segment holds at once; a hard cap
Payload sizeLargest event payload, at most 60 KiB on every package
TopicsTopics the segment holds at once
Publish ratePublishes per second per connection

Rate preset

The preset says what the segment is for, and shapes its rate limits to match. Segment-wide limits scale with the connections the package allows.

PresetShaped for
GeneralMost apps; the default
AI streamingA high publish rate into few topics
ChatMany topics, each with a low rate
Live dashboardMany subscribers per topic and high outbound traffic
IoTA low rate per connection over very many connections

You can lower any of the preset's limits (publishes per second per connection, per topic and per segment, bytes per second in and out, subscribers per topic, subscribes, topic creations and new connections per minute). Clients learn the limits in force when they connect. The presets' values are published at GET /api/v1/rate-profiles.

Monthly caps

Cap a segment's share of the workspace's monthly messages and data transfer, so one app can't use up the allowance for the others.

At the capThen
Stop (default)The segment's new publishes are refused until the next period
ContinueYou're notified; nothing is refused
Continue with extraIt carries on for an extra percentage of the cap, then stops

Caps limit; they don't reserve. Several segments' caps can add up to more than the allowance, and the workspace's own limit still applies.

Deleting a segment

Deleting a segment removes it with its keys and topic rules, and its clients can no longer connect. It can't be undone.

On this page