PubNub Logo Docs
Support Contact Sales Login Try Our APIs

›Setup

Collapse all
Dark mode

Home

  • Home

First steps

  • Set up your account
  • Get the SDK
  • Initialize PubNub
  • Identify users and devices
  • Send messages
  • Receive messages
  • Retrieve old messages
  • Check user presence
  • Add custom metadata
  • Manage access
  • Add serverless business logic
  • Send push notifications

Setup

  • PubNub account
  • Application
  • Users & devices
  • Connection management
  • Data security
  • Data persistence
  • API limits

Chat

  • In-App Chat

SDKs

  • SDKs

Messages

  • Publish
  • Receive
  • Actions
  • Payload type conventions

Channels

  • Basics
  • Subscription
  • Naming conventions

User presence

  • Basics
  • Events
  • State
  • Webhooks

Metadata

  • Channel
  • User
  • Membership

Message Persistence

  • Message Persistence

File sharing

  • File sharing

Access management

  • Manage access

Push notifications

  • Basics
  • iOS
  • Android
  • Troubleshooting

Best practices

  • Architectural choices
  • Message aggregation
  • Friend list & status feed
  • Troubleshooting
  • Migration guides

Serverless processing

    EVENTS & ACTIONS

    • Basics
    • Configure Events & Actions

    FUNCTIONS

    • Basics
    • Development guidelines
    • Functions API
    • Custom integrations

Debug Console
Network Status

Data Persistence

Depending on enabled features and your app's keyset configuration in the Admin Portal, PubNub may store and charge you for persisting certain types of data.

Data replication

To provide low retrieval latencies, PubNub replicates all data on across different PubNub’s points of presence (POPs), except for Metadata and Files that are only stored in a single region.

Messages

PubNub may store message and message actions data.

ItemDescription
Price8$/GB/month
API calls that persist data
  • publish()
  • addMessageAction()
Data persistence configuration
  • Enable/disable message data persistence in Admin Portal
  • Change retention in Admin Portal (1, 7, 30 days or unlimited).
  • Call the deleteMessages() or removeMessageAction() methods.
  • Use the storeInHistory or ttl parameters of the publish() method.
  • Contact support@pubnub.com to remove old data or change existing keysets' retention period.

Permissions

PubNub Access Manager v2 stores the mapping of authorization keys with its permission sets. Access Manager v3 stores only the tokens that are revoked.

ItemDescription
Price8$/GB/month
API calls that persist data
  • v2 grant()
  • v3 revokeToken()
Data persistence configuration
  • Enable/disable Access Manager in Admin Portal
  • v3 - Enable/disable revoke for Access Manager v3 in Admin Portal
  • v2 - Remove permissions on a resource with the v2 grant() method.
  • Contact support@pubnub.com to remove your Access Manager data.
Access Manager v3 tokens

Active tokens obtained by the v3 grantToken() method aren't persisted.

Metadata

PubNub stores metadata about your application's users and channels, and their membership associations.

ItemDescription
Price8$/GB/month
API calls that persist data
  • setUserMetadata()
  • setChannelMetadata()
  • setChannelMemberships()
  • setChannelMembers()
Data persistence configuration
  • removeUserMetadata()
  • removeChannelMetadata()
  • removeChannelMemberships()
  • removeChannelMembers()

K/V store

PubNub stores Functions as key-value pairs.

ItemDescription
Price8$/GB/month
API calls that persist data
  • set()
  • setitem()
Data persistence configuration
  • Set TTL

Channel groups

PubNub stores channel groups as key-value pairs.

ItemDescription
Price8$/GB/month
API calls that persist data
  • addChannels()
Data persistence configuration
  • removeChannels()
  • deleteGroup()
  • Contact support@pubnub.com to remove all channel group data.

Push

PubNub stores the associations between mobile devices tokens and PubNub channel names.

ItemDescription
Price8$/GB/month
API calls that persist data
  • addChannels()
Data persistence configuration
  • removeChannels()
  • deleteDevice()
  • Contact support@pubnub.com to remove all registered devices.

Files

PubNub stores previously uploaded files.

ItemDescription
Price1.99$/GB/month
API calls that persist data
  • sendFile()
Data persistence configuration
  • deleteFile()
  • Contact support@pubnub.com to remove all files.
← Data securityAPI limits →
  • Messages
  • Permissions
  • Metadata
  • K/V store
  • Channel groups
  • Push
  • Files
© PubNub Inc. - Privacy Policy