News

Announcing PubNub Functions and Endpoints

2 min read PubNub Staff on Jun 19, 2017
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

We're pleased to announce PubNub Functions, serverless compute directly at the edge of the network, which executes business logic on messages in-flight as they are streamed through PubNub.

We have two announcements we’re excited to share with you!

BLOCKS is Now Functions

First, we’ve renamed PubNub BLOCKS to PubNub Functions. Our pre-built Functions and integrations will still be available in our branded BLOCKS Catalog.

As you may know, PubNub Functions is serverless compute directly at the edge of the network, which executes business logic on messages in-flight as they are streamed through PubNub.  With a single click, developers have access to the Functions they need to build and operate their real-time app – without worrying about deploying, maintaining, and scaling server infrastructure.

PubNub Functions is built specifically to enhance real-time apps running on the PubNub Data Stream Network:

  • Deploys functions in milliseconds to 15 points of presence worldwide
  • Scales automatically with usage
  • Requires no start-up time; your functions always run “hot”
  • Backed by 99.999% SLA’s
  • Adds minimal latency to low-latency data stream applications

Endpoints

Second, we are introducing webhook integration into PubNub Functions with Endpoints! Endpoints makes PubNub Functions available to anything capable of making an HTTP request, without the need to publish to a channel via one of our 70+ SDKs.

Creating a webhook is super easy. Simply select “On Request” as the event type when creating a new Function, and specify the desired URI path:

Creating a webhook

With the ability to deploy secure Functions and REST endpoints in the network through the click of a button, developers can quickly:

  • Transform, filter, aggregate, and re-route messages with custom business logic
  • Integrate 3rd party services for things like sentiment analysis, geolocation, and machine learning
  • Build massive-scale social apps, online multiplayer games, or IoT use cases
  • Store and retrieve stateful data for things like polls and vote aggregation using PubNub’s globally replicated Key/Value database
  • Implement authentication models such as OAUTH
  • Deliver advanced chat functionality such as @mentions and language translation in a few lines of code
  • Create chatbots for any real-time app or messaging platform

For further learning, check out the Functions and Endpoints documentation or our Facebook Messenger chatbot tutorial.

We’ll keep you posted as we release more Endpoints webinars and tutorials in the near future.

More from PubNub

Comparing Game Engines: Unity vs Unreal vs the Rest
Real-Time Gaming BlogSep 21, 20225 min read

Comparing Game Engines: Unity vs Unreal vs the Rest

Comparing the major game engines: Unity vs Unreal Engine vs Corona SDK vs GameMaker Studio, including the benefits and cons of...

PubNub Staff

PubNub Staff

Python Socket Programming: Client, Server and Peer Libraries
BuildSep 21, 20226 min read

Python Socket Programming: Client, Server and Peer Libraries

Sockets (aka socket programming) enable programs to send and receive data, bi-directionally, at any given moment. This tutorial...

PubNub Staff

PubNub Staff

Node.js WebSocket Programming Examples
BuildSep 21, 20226 min read

Node.js WebSocket Programming Examples

An overview and examples of basic socket and WebSocket programming with Node.js.

PubNub Staff

PubNub Staff