What is PubNub?
PubNub is a new kind of instantaneous Web Data Push Service
for Mobile Phones, TVs, HTML5 Web Browsers, Tablets and Game Consoles.
We believe in unified broadcasting and mass communication.
Develop once and push everywhere.
PubNub is a Global Web Data Push
Service for Broadcasting Bidirectional Messages
to Mobile, TV, Web, Tablet and Console
PubNub is considered a Web Push Engine able to push
(or stream) any textual data
in real-time data push to any types of clients across the Internet.
PubNub solves all the complexity of pushing data in a scalable,
secure, efficient, reliable and portable way.
On the client side, APIs are provided so that it is very easy to build
Bidirectional Data Push Apps (transforming your
existing client or creating a new one from scratch).
A powerful HTML5 library makes it possible to push data updates to
Mobile Phones, Tablets and Web Pages in real-time data push through
a zero-install client.
PubNub is also referred to as a web data push
service with Reverse AJAX
capabilities which allows you to send data to clients with
BOSH Comet technology.
This removes the need to constantly poll for new updates in the app.
Other associated terms are: browser push, websockets,
web data push, data push, real-time push and push notifications.
and more are provided for
mobile phones and tablets such as Android and iPhone for Web Data Push.
Every web browser is supported for web browser push.
Basically, PubNub can be considered a publish/subscribe
middleware based on the standard HTTP 1.1 protocol.
Send messages from any device and receive messages on any device.
From any device to any device.
Send and receive messages using a Phone, TV, Car,
Tablet, GPS Device, Game Console and Web.
Send a message from one phone to another phone.
Anything can receive messages.
Anything can send messages.
Broadcast messages to multiple devices simultaneously.
Or broadcast a message to one device at a time.
PubNub provides client libraries for all major programming
languages and mobile platforms to make
web data push development as easy as pie.
PubNub is tuned for gaming performance
and will shine with any application.
Build web-scale Data Push communication applications such as
How Hard is PubNub to Use?
Universal Function Calls
The PubNub API couldn't be simpler.
There are two methods to know
for each programming interface:
Publish & Subscribe
Execute a Subscribe API call to begin listening for messages,
automatically keeping the connection open until
the application is closed.
Subscribe API Call needs to be issued once per client.
Publish a message to send data simultaneously to all subscribed clients.
Publish API Call needs to be issued only once.
What Can I Build with PubNub?
PubNub is useful for any application that requires
efficient delivery of real-time push data.
Examples of applications include:
mobile multiplayer games,
online betting and gaming,
distributed data message processing,
message routing and service implementation,
financial market data distribution (stock quotes, news),
integrating 2 or more applications or services,
Web-based monitoring consoles,
live bids for e-auctions,
online communities with live user interaction (messaging, chat, presence).
The Web requires more and more applications to be highly interactive
and based on real-time push data to connect users.
PubNub is a perfect use
How Can I Use PubNub?
PubNub is designed for massively distributed apps and games
running on any network enabled device.
We provide free client APIs to send and receive messages using
all popular programming languages and platforms.
There are many ways to write applications with PubNub:
Mobile Push APIs
PubNub supports iPhone and Android with
native APIs for our Web Data Push service.
the iPhone, WebOS, WindowsMobile and Android browsers.
it easy to add Web Data Push
interaction to any Ajax app in the browser
(we support all major browsers, even IE6!) including
Firefox, Chrome, Safari, Internet Explorer and Opera.
Build online interactive games and collaborative tools like
Apple iPad Push APIs
PubNub Push APIs extend onto all web enabled
tablet devices including Apple iPad.
Build games, stock tickers, social messaging apps with Twitter
Console Push APIs
PubNub Push APIs extends
to TV and Gaming Consoles
with Web Data Push interfaces available for
XBOX 360, PlayStation 3, PSP, Nintendo Wii and DS
when connected to the internet.
Server Push APIs
When applications require server-side Web Data Push
pub/sub, use PubNub's APIs for PHP,
Python, Java, Ruby, C# and more!
Facebook Push API
PubNub provides APIs for building Web Data Push Facebook
applications. Join hands with people online to play games and
collaborate with social activities.
How Fast and Scalable is PubNub?
PubNub is fast, stable, redundant, and secure.
Written in native C code, PubNub runs
within Amazon's EC2 and Rackspace's (YouTube) proven network
infrastructure and data centers, with remote monitoring
by Google App Engine.
PubNub is a real-time push (Web Data Push) system implemented
in native C code.
In order to guarantee the maximum level of performance,
the PubNub Cloud has been developed with millions of
concurrent connections from the ground up.
True push solutions need to maintain at least one open TCP
socket for each connected client.
Some web/application servers have been extended to act as
streaming engines, but their traditional architecture
based on the "one-thread-per-connection" model making scalability pretty
impossible to millions of users.
PubNub adopts a distributed event-driven architecture instead
of a thread-based one.
This makes it possible to separate the number
of connections that the cloud can sustain from the number of threads.
The PubNub Cloud scales well over multiple
CPUs and Virtualized Systems.
PubNub message delivery speeds are measured in nanoseconds;
the fastest message delivery performance.
Messages are stored redundantly across
multiple servers and data centers.
When a network connection drops (3G, WiFi, etc.)
messages are delivered automatically upon re-connect.
PubNub is suited for multiple classes of applications.
Learn how we've combined PubNub
Read the Hello World
Tutorial for developers.
Visit our code repository on
API - GitHub.
How many concurrent users can the PubNub Cloud support?
PubNub's scaling model is linear, allowing
a new server to be added as load increases.
Currently, PubNub's cloud holds millions of concurrent
Our concurrency limit changes based on the number of active servers
running in the cloud.
Adding new servers increases limits linearly.
Can PubNub stream audio and video too?
For small streams of data like Voice Data, this is a great fit.
You must Base64 encode your binary data.
Base64 encoding transforms your binary data into text.
For large data streams, do not use PubNub.
PubNub vs. Azure ServiceBus & ESB
Azure ServiceBus and other Enterprise Service Buses (ESB)
provide messaging capabilities that enable
building distributed applications inside the cloud.
Basically, Azure ServiceBus and ESB allows you to
connect one Server to another Server.
PubNub allows you to securely connect mobile phones, tablets,
laptops, desktops and other clients outside of your cloud.
PubNub provides the connectivity from your cloud to push data
to end clients (phones, tablets, laptops and servers).
This is called Real-time Data Push, or Push Notifications.
PubNub removes the need for your client apps to
constantly poll your cloud for new updates.
So you can push data from a Server to a Client.
And also you may push data from one Server to another Server,
just like Azure ServiceBus ESB.
Another option is available for a Mobile Phone
to Push Data to another Mobile Phone or any endpoint.
With PubNub this becomes easy using the two
basic Publish/Subscribe APIs.
Additionally PubNub provides automatic Broadcasting.
When multiple clients/servers/phones are subscribed to a single channel,
each endpoint receives a published message simultaneously.
What Kinds of Devices and Programming Languages are supported?
Any endpoint can talk with any other endpoint.
Server-side development is not required
to use PubNub (though it is supported).
PubNub's cross domain JSONP technology enables
Web Data Push between any and all clients.
For example, an iPhone can send a message to Firefox.
Firefox can talk with IE, Google Chrome or Opera.
iPhones can talk with other iPhones and iPads.
Phones can talk with Web Browsers.
Conversations happen instantly across multiple devices and systems.
- iPad, iPhone, Android
- WebOS, Blackberry, Symbian, Windows Mobile
- Firefox, IE, Opera, Safari, Chrome, Flock, and more
- Flash, Mobile, Desktop
- PHP, Ruby, Python, Perl, Erlang, .NET, C#, Mono, Objective-C
- Apache, NginX, Lighttp and more
- XBOX 360, PlayStation 3 and PSP, Nintindo Wii and DS
- AnyEvent, EventMachine, Twisted and HTTP Environments
What Kind of Technology Architecture does PubNub Use?
PubNub is Web Data Push
BOSH Client-Server Technology.
PubNub provides Client-to-Client,
Server-to-Client and Server-to-Server connections and conversations.
PubNub is BOSH with JSON rather than XML.
Messages are received even when the connection to PubNub is closed.
The next connection checks if new messages have been
posted before the connection is left open.
SSL is supported for both publish and subscribe.
Learn about pricing with SSL messages.
does not require flash or a special plugin.
Why Should I Use PubNub?
How can we help you with Web Data Push?
- Free! For Small-Medium Traffic Sites.
- Cross Platform (Mobile + Browser + OS).
- Cross Browsers.
- Fast World Wide.
- High Throughput on Cloud Servers.
- High Redundancy on Cloud Servers.