Joe Hanson
Senior Content Strategist, PubNub
IN THIS ARTICLE

    Subscribe to Our Newsletter

    Stay updated with the latest on web, mobile, and IoT, delivered weekly.
    Thanks for subscribing!

    Thanks for subscribing!

    Get ready for some great content.

    PubNub Data Streams allows you to establish and maintain persistent socket connections to any device (mobile, browser, desktop, and server), and push data to global audiences in less than a 1/4 second. PubNub utilizes the Publish/Subscribe model for real-time data streaming and device signaling, supporting all the capabilities of WebSockets, SignalR, Socket.IO, WebRTC Data Channel and other streaming protocols.

    Below are five ways to use PubNub Data Streams:

    1. Stream financial data, inventory and price updates

    Stream financial data, inventory and price updates

    Whether you’re tracking stock prices, keeping tabs on inventory, or bidding on a camera in an online auction, you need updated prices and logistics as they happen. When it comes to streaming data, especially if the data is vital to your business or user experience, speed and reliability are paramount. You need up to the millisecond, accurate data streams. PubNub Data Stream enables you to create and maintain a persistent network connection to all devices, remaining opening and delivering data in under a ¼ second. For example, when somebody bids on an item in a live auction, the price update is reflected on every other users screen the millisecond that user clicks the bid button.

    Resources

    2. Stream location data for live updating maps

    Stream location data for live updating maps

    The realtime updating map has become a staple feature in taxi and ridesharing apps. Users now expect to be able to see their driver’s location and progress on a map. To ensure a smooth and accurate live updating map, you need to build location tracking functionality on top of a data stream network. With PubNub Data Stream, you can publish location data by the millisecond, rather than every 5-10 seconds (which is the speed of some alternative options).

    “In real-time, the passenger can see where the driver is. That was something that we couldn’t do before with polling. And that works really well. It really brings the app to life. When it was all on a polling system, it would feel kind of clunky, and for example, your taxi driver might move through a building or across a river. It works fantastically,” says Chris Moore of Roam Creative, who built Zoomy. 

    Resources

    3. Create a firehose with your data

    Create a firehose with your data

    What if you had the ability to deliver a constant, massive stream of data in realtime, pushing out a stream of events as they happen to a client? Allow your users to drink from the firehose, a giant reliable, consumable spigot of data. PubNub can handle massive amounts of data and enables you to deliver this data in realtime to any number of subscribers. Users can subscribe to certain channels of the firehose, and as an admin, you’re able to grant and revoke access as well. For example, the data firehose can stream all stock prices of every publicly traded company on Earth, and users can subscribe and unsubscribe from whatever companies they want.

    4. Turn a smartphone into a remote control

    Mote.io from Ian Jennings on Vimeo.

    Standard TV remotes can suck. There always seems to be something blocking the receiver, or it’s running out of batteries, or you can’t even find your remote in the first place. Today, over half the U.S. has a smartphone, and a quarter of the U.S. owns a tablet, so why not replace a standard remote with a fully featured mobile soft remote, all controlled from your smartphone? But TVs aren’t the only thing that can be controlled with soft remotes. PubNub Data Stream enables you to signal any smart device from anywhere in the world, including thermostats, kitchen appliances and lights. With a smartphone, you can make your devices smart.

    In the video above, take a look at how Mote.io turns your smartphone into a remote control for Youtube, Pandora, Grooveshark, SoundCloud, Google Play, Vimeo, and more.

    Resources

    5. Consistent lockstepping for multiplayer games

    Consistent lockstepping for multiplayer games

    As a gamer, nothing is worse than being at the climax of a battle, freeze/lag, and five seconds later you’re dead. Consistent lockstepping is essential for a smooth, fluid, multiplayer gaming experience for thousands of users simultaneously. To ensure consistent lockstepping, you need a data stream network for fast and reliable delivery of events, keeping all gamers in sync. With PubNub Data Stream, all actions and commands within a multiplayer game are delivered in under a quarter of a second, allowing you to deploy multiplayer games to hundreds of thousands of users at a given time.

    Resources

    Additional Resources

    Resources
    Resources
    Building a HIPAA-compliant App
    Everything You Need to Know About Developing and Scaling a HIPAA-compliant App
    Download Now
    Building a HIPAA-compliant App

    More From PubNub