How PubNub Works

PubNub is the leading cloud service delivering real-time communications for mobile, web, and server. We’ve made PubNub simple to use and easy to learn. You can focus on your applications and content, get to market more quickly, all without learning to be a real-time communications expert.

PubNub is a cloud service so there is no operational expertise required and zero system management effort. Simply call into PubNub and we take care of the rest – monitoring and managing the servers, networks, security and administration. We ensure the scalability and reliability of the service and provide you with a guaranteed service level.

PubNub is amazingly fast, globally scalable, designed for devices to send and receive millions of messages in milliseconds without any excess overhead. PubNub developers have optimized the service to be the fastest real-time communications cloud available. Try it and see. Our distributed architecture is deployed worldwide in multiple datacenters to deliver local access speeds across the globe. Any device can publish or listen to any other device anywhere in the world with amazing performance.

Get Started Now

Ways to use PubNub

With PubNub you can communicate in real-time from server to client, server to server or client to client. This is often referred to as "Data Push", or "Push Notifications".

PubNub scales to millions of subscribers, making it an ideal solution for massive audiences often experienced with MMO games, Social Apps, Apps built around sporting events, and more. When multiple clients/servers/phones are subscribed to a single channel, each endpoint receives a published message simultaneously.

But PubNub also enables another kind of application, where each subscriber can also be a publisher.

PubNub provides message broadcasting from all devices. Send messages from any device and receive messages on all other subscribed devices. Send and receive messages using a Phone, TV, Car, Tablet, GPS Device, Game Console and Web. Anything can receive messages. Anything can send messages. Broadcast messages to multiple devices simultaneously. Or broadcast a message to one device at a time.

Get Started Now

PubNub Architecture

PubNub is publish/subscribe cloud service based on the standard HTTP 1.1 protocol. PubNub uses open-standards where possible, and is implemented in native C code. PubNub leveraging a BOSH model with JSON rather than XML.

In order to guarantee the maximum level of performance, the PubNub Cloud has been developed with the capability to support millions of concurrent connections from the ground up. With PubNub, you don’t have to count connections. We’ve adopted a distributed event-driven architecture instead of a thread-based one for maximum performance and scale. This makes it possible to separate the number of connections that the cloud can sustain from the number of threads. The PubNub Cloud scales extremely well over multiple CPUs and virtualized systems.

PubNub message processing speeds are measured in nanoseconds. Messages are stored redundantly across multiple servers and data centers. When a network connection drops (3G, WiFi, etc.) messages are queued and delivered automatically upon re-connect. This makes PubNub an ideal communications service for mobile device applications.

Any device, anywhere

On the client side, PubNub provides APIs so it’s very easy to build bidirectional data push apps or add “real-time” to your existing app. PubNub provides client libraries for all major programming languages and mobile platforms to make web data push development super easy. You’ll find just what you need, and if not, stay-tuned because we are releasing more every day.

Get Started Now