Reference Design Project: Implementing Long Polling - A Journey to Media Server Enlightenment

Reference Design Project: Implementing Long Polling - A Journey to Media Server Enlightenment

  • Comments 4
  • Likes

"There was something amazingly enticing about programming"

-Vint Cerf

Today we will be reviewing how long polling is used to deliver XMS REST events.  We will start with an overview of polling and long polling.  We will also continue the review Http classes used to implement the long polling in our simple “Hello world” XMS REST application.  While reviewing this class we will also touch upon how to use Java threads and Observers to generate out events on incoming REST message.      

Note: It is recommended to view in HD+fullscreen to make code more readable

YouTube Link: https://youtu.be/11bQxXRkd4o

Links referenced in the video:

I invite you to comment below with your thoughts on "What are you feeling on Long Poll or should there be alternatives?” 

-Dan

@Dan_Wolanski

Views: 162047
Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • @Dan, I am going through your excellent videos and getting lot of information on how to implement 3pcc. I am planning to use node.js instead of Java and websocket instead of long pooling. Is websocket supported by XMS? If yes, where can I get details?

    Regards,

    Pranav

  • Pranav,  First off, thanks for watching and commenting.  As far as your question goes, as of now the REST/eventing is only accessible via http (ie long polling).  If you wish to have a websocket to relay the events you would need to setup some relay service/server that will send from the http longpoll to the websocket.  There has been talks about exposing similar functionality via a Websocket and is something we are considering for future development, but for now is not available.