$49/mo min is prepay toward your usage.
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.
Transactions are API requests made to the PubNub network. This includes messages sent and received using Publish and Subscribe APIs.
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.