Trigger Real-Time Business Logic

Create and execute business logic across connected experiences at scale - from language translation to moderation, IoT sensor data aggregation, geo-triggering and more.

What can you do with PubNub Functions?

Execute Functions on the edge to route, filter, transform, augment and aggregate real-time messages as they route through the PubNub network.

Utilize one-click secure REST endpoint functions to respond directly to HTTP requests and integrate 3rd party service without spinning up servers.

Employ sync and async trigger functions so processing can happen as data streams in or afterwards.

Why are PubNub Functions Different?

  • Low Latency Your logic is executed where your data is streaming in, and replicated across PubNub’s 15 Points of Presence. Your functions will trigger instantly, usually in < 10ms.

  • Enterprise Grade PubNub Functions maintain a global key/value store to keep the application state. They deploy and scale automatically, so you do not have to worry about operational issues.

  • Enterprise-grade security Comes built in, including:

    • AES message encryption

    • HIPAA Compliance, SOC 2 Compliant

    • Data Shield certified, and EU-only Data Storage options

    • Vault - a secure store for private information, such as passwords or API keys

  • Serverless You never have to worry about servers and infrastructure issues. PubNub Functions scales automatically as users and devices increase, and handles all the deployment of your code. 

  • Multiple ways to access Endpoints trigger an event handler and assigns a URL to your function to execute it with an HTTP request. You can also modify data with event-based triggers, before publishing and/or after publishing.

Where are PubNub Functions Used?


In IoT sensors, users can monitor a temperature data stream for anomalies.


During chat, users can mutatue messages in flight, like translating multi-language conversations.


For a finance company, users can redirect messages to a third party service, like sending stock data to a data analytics platform for analysis.

Ready to get started?