|
1 | 1 | --- |
2 | 2 | title: "Message counting" |
3 | | -meta_description: "Understand which operations across all Ably products count as messages, including Pub/Sub, Chat, LiveObjects, Spaces, AI Transport, and LiveSync." |
4 | | -meta_keywords: "message counting, pricing, Pub/Sub messages, Chat messages, LiveObjects messages, Spaces messages, AI Transport messages, LiveSync messages" |
| 3 | +meta_description: "Understand which operations across all Ably products count as messages, including Pub/Sub, Chat, LiveObjects, Spaces, and LiveSync." |
| 4 | +meta_keywords: "message counting, pricing, Pub/Sub messages, Chat messages, LiveObjects messages, Spaces messages, LiveSync messages" |
5 | 5 | intro: "Messages are the primary unit of consumption that Ably charges for. Understanding which operations count as messages helps you estimate and manage costs." |
6 | 6 | --- |
7 | 7 |
|
@@ -154,19 +154,6 @@ Live cursors use a [separate channel](/docs/spaces/cursors#foundations) from oth |
154 | 154 |
|
155 | 155 | For Spaces-specific cost optimization strategies, see [Spaces pricing](/docs/spaces/pricing). |
156 | 156 |
|
157 | | -## AI Transport operations <a id="ai-transport-operations"/> |
158 | | - |
159 | | -[AI Transport](/docs/ai-transport) uses standard Pub/Sub messaging. Each token or message published to Ably counts as an inbound message, and each delivery to a subscriber counts as an outbound message. |
160 | | - |
161 | | -| Operation | Messages counted | |
162 | | -| --- | --- | |
163 | | -| Token append | 1 inbound message per token appended | |
164 | | -| Token append with [rollup](/docs/ai-transport/features/token-streaming#rollup) | Multiple appends conflated into fewer inbound messages | |
165 | | -| Token delivery | 1 outbound message per subscriber | |
166 | | -| [Persistence](/docs/storage-history/storage) storage | 1 additional message per stored message | |
167 | | - |
168 | | -AI Transport streams a response by [appending](/docs/ai-transport/features/token-streaming) each token to a single message. By default, [append rollup](/docs/ai-transport/features/token-streaming#rollup) conflates the appends received within a rollup window into fewer published inbound messages, reducing cost. Tune this with the `appendRollupWindow` transport parameter. |
169 | | - |
170 | 157 | ## LiveSync operations <a id="livesync-operations"/> |
171 | 158 |
|
172 | 159 | [LiveSync](/docs/livesync) publishes database changes as Pub/Sub messages. Each update follows the standard inbound/outbound counting pattern. |
|
0 commit comments