* Replicated and Edge Transactions are measured as payloads of 2KB or less. For payloads up to 32KB multiply number of Transactions by units of 2KB (e.g. an 8KB payload would incur 4 Transactions).
There are four categories of PubNub usage charges:
Replicated Transactions are API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP), such as publishing a message.
Edge Transactions are API calls that interact with a single PubNub PoP, such as receiving a published message via a Subscribe API call.
Functions Executions are counted for each execution of a PubNub Function. Learn more about Functions.
Data Persistence is charged per GB per month for API calls that store data into PubNub, such as Storage & Playback, the Key/Value store, and others. Read More.
To learn more about all Replicated and Edge Transactions, please visit the Transaction Classification Page.
The PubNub free plan includes 1M free transactions per month (comprised of any combination of Replicated, Edge, and Function Executions) and 1 GB free Data Persistence per month.
A chat application that serves 100,000 customers per month, each of whom on average use two ten-minute chat sessions, which include 20 messages, averaging 1KB in payload, in each direction between customer and operator.
For each session:
Taxi dispatch company with 500 cabs that can be hailed through a smartphone. When a user makes a request for a ride the backend will check which drivers are online by using the here_now() call. Once the user is matched with a driver, the cab location is published twice a minute to the user. On average, a ride lasts for 15 minutes.
For each session:
For each ride
Total cost per ride
Transactions are API requests that are made to the PubNub network. When you make an API call to PubNub, we count that as a transaction.
Each transaction can consist of up to a 2048 byte payload. Since payloads up to 32KB are supported, larger Transactions are counted as multiple Transactions, where the payload is divided into 2048 bytes buckets.
Transactions may be designated as either Replicated or Edge.
If you are using PubNub webhooks/callbacks to receive PubNub events on your backend, each webhook call is counted as an Edge Transaction. For instance, if PubNub makes 5 calls to your backend with Presence information, with payload sizes 2KB each, that is counted as 5 Edge calls towards your total Transaction volume.
This is irrespective of the type of webhook you have set - Presence, Delete from History or Push Notification Remove Device Webhooks.
There are two kinds of Data Persistence charges:
Cost per Write - In the month you store data, you pay for all the bytes written in that month.
Cost for Retention - All bytes written (and retained) from previous months are tallied and charged in aggregate each month. For customers using Storage TTL settings of 30 days or less for their data, there is no Cost for Retention charge applied.
Use Case Example:
Data Persistence usage with TTL=30 days - If you write 3GB in Month 1, you will be charged 3 GB* $8 = $24 after Month 1. In Month 2, you write 4 GB. After Month 2, you will be charged $32 (4GB * $8GB) for the data written in Month 2, but there is no charge for the data written in Month 1 since it had a TTL (auto-expiration) time set.
Data Persistence usage with no TTL (“forever storage”) - If you write 2GB in Month 1, you will be charged 2 GB* $8 = $16 after Month 1. In Month 2, you write 4 GB. After Month 2, you will be charged $48 (4GB * $8GB) for the data written in Month 2, and $16 for the persistence of the data written in Month 1.
Yes, we offer a free plan for trial and proof of concept purposes. The Free Plan provides you with up to a million Transactions. Our Free Plan also includes Basic Support. Click here to get started today.