Push Notification –



Push Notification –

0 2


Faye_Presentation

Presentation I gave on Faye to the Flatiron School on 4/12/13

On Github jmburges / Faye_Presentation

Push Notification

Created by Joe Burgess

Who Am I

So What Is Push?

It's the final frontier of AJAX.

Why Not Just Poll

  • Peformance
  • Usability
  • Scalability

How Does It Work?

  • Browser keeps an open connection to a server
  • Used to be non standardized and hard

Intorducing....

WebSockets

WebSockets

Standarized way for bi-directional realtime communication between servers

Tools Available

Faye

  • Node.JS server
  • Clients for Node.JS and Rails

Start The Server

Install the Faye and Thin Gems Create a rack file Run It!

The Client

  • JS Client
  • Ruby Client

Pub/Sub

The pusher publishes a message on a channel. The subscriber subscribes to a channel.

Let's See It Work

Any MASSIVE GLARING Problems?

Yup

Security! Anyone can post to faye right now. Let's write a Faye Extension

Any Other Problems

Yup

Order of messages is not guaranteed.

Performance

  • Open Connection for every subscriber
  • Pushing Data vs. Pushing Notification

References

THE END