@@ -38,25 +38,32 @@ The following table shows how [Pub/Sub](/docs/pub-sub) operations contribute to
3838
3939| Operation | Messages counted |
4040| --- | --- |
41- | [ Publish] ( /docs/channels/messages#publish ) | 1 inbound message |
41+ | [ Messages] ( /docs/channels/messages ) ||
42+ | Publish | 1 inbound message |
4243| Message delivery | 1 outbound message per subscriber |
43- | [ Presence] ( /docs/presence-occupancy/presence ) enter | 1 inbound message |
44+ | [ Presence] ( /docs/presence-occupancy/presence ) ||
45+ | Presence enter | 1 inbound message |
4446| Presence leave | 1 inbound message |
4547| Presence update | 1 inbound message |
4648| Presence event delivery | 1 outbound message per presence subscriber |
47- | [ Persistence] ( /docs/storage-history/storage ) storage | 1 additional message per stored message |
48- | [ History] ( /docs/storage-history/history ) retrieval | 1 message per retrieved message |
49- | [ Integration] ( /docs/platform/integrations ) delivery | 1 outbound message per integration target |
50- | Inbound [ integration] ( /docs/platform/integrations#inbound ) publish | 1 inbound message |
49+ | Presence REST query | 1 message per member returned |
50+ | Batch presence request | 1 message per member across all queried channels |
51+ | [ Storage and history] ( /docs/storage-history/storage ) ||
52+ | Persistence storage | 1 additional message per stored message |
53+ | History retrieval | 1 message per retrieved message |
5154| [ Rewind] ( /docs/channels/options/rewind ) on attach | 1 message per rewound message (up to 100) |
52- | [ Push notification] ( /docs/push ) delivery | 1 message per delivered notification |
53- | [ Presence REST] ( /docs/presence-occupancy/presence ) query | 1 message per member returned |
54- | [ Batch presence] ( /docs/presence-occupancy/presence ) request | 1 message per member across all queried channels |
55- | [ Annotation] ( /docs/messages/annotations ) publish | 1 inbound message |
55+ | [ Integrations] ( /docs/platform/integrations ) ||
56+ | Integration delivery | 1 outbound message per integration target |
57+ | [ Inbound integration publish] ( /docs/platform/integrations#inbound ) | 1 inbound message |
58+ | [ Push notifications] ( /docs/push ) ||
59+ | Push notification delivery | 1 message per delivered notification |
60+ | [ Annotations] ( /docs/messages/annotations ) ||
61+ | Annotation publish | 1 inbound message |
5662| Annotation delete | 1 inbound message |
57- | [ Annotation summary] ( /docs/messages/annotations#annotation-summaries ) delivery | 1 outbound message per subscriber; multiple annotations may be rolled up into a single summary |
58- | [ Lifecycle event] ( /docs/metadata-stats/metadata ) (` [meta]connection.lifecycle ` , ` [meta]channel.lifecycle ` ) | 1 message per event |
59- | [ ` [meta]stats:minute ` ] ( /docs/metadata-stats/metadata ) event | 1 message per event |
63+ | [ Annotation summary delivery] ( /docs/messages/annotations#annotation-summaries ) | 1 outbound message per subscriber; multiple annotations may be rolled up into a single summary |
64+ | [ Metadata and stats] ( /docs/metadata-stats/metadata ) ||
65+ | Lifecycle event (` [meta]connection.lifecycle ` , ` [meta]channel.lifecycle ` ) | 1 message per event |
66+ | ` [meta]stats:minute ` event | 1 message per event |
6067| ` [meta]log ` subscription | Not counted |
6168
6269For Pub/Sub-specific cost optimization strategies, see [ Pub/Sub pricing] ( /docs/pub-sub/pricing ) .
@@ -67,28 +74,36 @@ The [Chat SDK](/docs/chat) is built on top of [Pub/Sub](/docs/pub-sub). All Chat
6774
6875| Operation | Messages counted |
6976| --- | --- |
70- | [ Send message] ( /docs/chat/rooms/messages ) | 1 inbound message |
77+ | [ Messages] ( /docs/chat/rooms/messages ) ||
78+ | Send message | 1 inbound message |
7179| Message delivery | 1 outbound message per subscriber |
72- | [ Update message] ( /docs/chat/rooms/messages#update ) | 1 inbound message |
80+ | Update message | 1 inbound message |
7381| Message update delivery | 1 outbound message per subscriber |
74- | [ Delete message] ( /docs/chat/rooms/messages#delete ) | 1 inbound message |
82+ | Delete message | 1 inbound message |
7583| Message deletion delivery | 1 outbound message per subscriber |
76- | [ History] ( /docs/chat/rooms/history ) retrieval | 1 message per retrieved message |
77- | [ Typing indicator] ( /docs/chat/rooms/typing ) keystroke | 1 inbound message; repeats every heartbeat interval (default 10s) |
78- | Typing indicator delivery | 1 outbound message per subscriber per heartbeat |
79- | Typing indicator stop | 1 inbound message |
84+ | [ History] ( /docs/chat/rooms/history ) ||
85+ | History retrieval | 1 message per retrieved message |
86+ | [ Typing indicators] ( /docs/chat/rooms/typing ) ||
87+ | Typing keystroke | 1 inbound message; repeats every heartbeat interval (default 10s) |
88+ | Typing keystroke delivery | 1 outbound message per subscriber per heartbeat |
89+ | Typing stop | 1 inbound message |
8090| Typing stop delivery | 1 outbound message per subscriber |
81- | [ Room reaction] ( /docs/chat/rooms/reactions ) | 1 inbound message |
91+ | [ Room reactions] ( /docs/chat/rooms/reactions ) ||
92+ | Room reaction | 1 inbound message |
8293| Room reaction delivery | 1 outbound message per subscriber |
83- | [ Message reaction] ( /docs/chat/rooms/message-reactions ) send | 1 inbound message |
94+ | [ Message reactions] ( /docs/chat/rooms/message-reactions ) ||
95+ | Message reaction send | 1 inbound message |
8496| Message reaction delete | 1 inbound message |
8597| Message reaction summary delivery | 1 outbound message per subscriber; multiple reactions may be rolled up into a single summary |
86- | [ Presence] ( /docs/chat/rooms/presence ) enter | 1 inbound message |
98+ | [ Presence] ( /docs/chat/rooms/presence ) ||
99+ | Presence enter | 1 inbound message |
87100| Presence leave | 1 inbound message |
88101| Presence update | 1 inbound message |
89102| Presence event delivery | 1 outbound message per presence subscriber |
90- | [ Occupancy] ( /docs/chat/rooms/occupancy ) event | 1 outbound message per subscriber (generated on membership changes, debounced up to 15s) |
91- | [ Moderation] ( /docs/chat/moderation ) action | 1 inbound message; triggers a message update or delete which follows standard delivery |
103+ | [ Occupancy] ( /docs/chat/rooms/occupancy ) ||
104+ | Occupancy event | 1 outbound message per subscriber (generated on membership changes, debounced up to 15s) |
105+ | [ Moderation] ( /docs/chat/moderation ) ||
106+ | Moderation action | 1 inbound message; triggers a message update or delete which follows standard delivery |
92107
93108For Chat-specific cost optimization strategies, see [ Chat pricing] ( /docs/chat/pricing ) .
94109
@@ -98,9 +113,11 @@ For Chat-specific cost optimization strategies, see [Chat pricing](/docs/chat/pr
98113
99114| Operation | Messages counted |
100115| --- | --- |
101- | [ LiveMap] ( /docs/liveobjects/map ) set or remove | 1 inbound message per operation |
116+ | [ LiveMap] ( /docs/liveobjects/map ) ||
117+ | LiveMap set or remove | 1 inbound message per operation |
102118| LiveMap create (shallow) | 2 inbound messages (create + assign) |
103- | [ LiveCounter] ( /docs/liveobjects/counter ) increment or decrement | 1 inbound message |
119+ | [ LiveCounter] ( /docs/liveobjects/counter ) ||
120+ | LiveCounter increment or decrement | 1 inbound message |
104121| LiveCounter create | 2 inbound messages (create + assign) |
105122| ObjectMessage delivery | 1 outbound message per connected client |
106123| [ Synchronization] ( /docs/liveobjects/pricing#synchronization ) | 1 message per object synchronized |
@@ -117,16 +134,20 @@ The [Spaces SDK](/docs/spaces) is built on top of [Pub/Sub](/docs/pub-sub) chann
117134
118135| Operation | Messages counted |
119136| --- | --- |
120- | [ Enter] ( /docs/spaces/space#enter ) space | 1 inbound message |
121- | [ Leave] ( /docs/spaces/space#leave ) space | 1 inbound message |
122- | [ Update profile] ( /docs/spaces/space#update-profile ) | 1 inbound message |
137+ | [ Members] ( /docs/spaces/space ) ||
138+ | Enter space | 1 inbound message |
139+ | Leave space | 1 inbound message |
140+ | Update profile | 1 inbound message |
123141| Space event delivery | 1 outbound message per subscriber |
124- | [ Set location] ( /docs/spaces/locations#set ) | 1 inbound message |
142+ | [ Locations] ( /docs/spaces/locations ) ||
143+ | Set location | 1 inbound message |
125144| Location event delivery | 1 outbound message per subscriber |
126- | [ Set cursor] ( /docs/spaces/cursors#set ) position | 1 inbound message per batch (default batch interval 25ms) |
145+ | [ Cursors] ( /docs/spaces/cursors ) ||
146+ | Set cursor position | 1 inbound message per batch (default batch interval 25ms) |
127147| Cursor event delivery | 1 outbound message per subscriber |
128- | [ Acquire lock] ( /docs/spaces/locking#acquire ) | 1 inbound message |
129- | [ Release lock] ( /docs/spaces/locking#release ) | 1 inbound message |
148+ | [ Locking] ( /docs/spaces/locking ) ||
149+ | Acquire lock | 1 inbound message |
150+ | Release lock | 1 inbound message |
130151| Lock event delivery | 1 outbound message per subscriber |
131152
132153Live cursors use a [ separate channel] ( /docs/spaces/cursors#foundations ) from other space features due to their high update frequency. Registering multiple subscription listeners for the same event does not increase your message count, as these are [ client-side filtered events] ( /docs/spaces/space#subscribe ) .
0 commit comments