0

I recently asked one question :- Handle Web Server with multiple clients

I have gone through the basic techniques to implement comet server like streamhub,Maven/Jetty etc. I have following questions for that :

  1. After that I found the issues like in case of Maven/Jetty internet connection is required for downloading certain files from net.So it it possible to implement it if no internet connection is there on machine where the web server is hosted ?

  2. Also I want the open source tools/technologies to achieve the thing mentioned in the above question. and I think stream hub is not a open source free version. Please help if you know any tool which is free/open source to use.

  3. Currently the web application is running on apache web server. so if I use comet server what changes I need to do in that ??

Please help... Thanks in advance...

Community
  • 1
  • 1
Ved
  • 8,577
  • 7
  • 36
  • 69

1 Answers1

1

For comet, pick a server which can handle many open connections. For a chat app I implemented which currently handles 10k open connections, I used Mochiweb. You might want to give that a look.

Going along the Mochiweb path, I will also recommend Erlang for implementing you server. It will be a small piece of code. Basically, you will listen on a path and hold the connection open till you have some data to respond with or timeout.

On the client side, you would write a simple JS function which will make an AJAX call and handle response timeout and data responses as and when they come. Nothing too different here. However, you may need JSONP instead (crossdomain/subdomain because of different servers for web and long poll), so ensure that your LongPoll server replies accordingly.

spicavigo
  • 4,116
  • 22
  • 28
  • Thanks for Reply..In my case I am least bother about the many number of connections.I just want to implement a multi-client app in which every client will be notified if any one of them made some change to the back end application.For this notification, live streaming is to be used. For that I wanted to know any comet server implementation which should be open source run on windows/linux(cross platform) – Ved Sep 29 '11 at 09:20
  • There was also this project called hookbox. I don't know if its active anymore, but it did seem promising when I last checked. There is also APE (http://www.ape-project.org/) which could be easily to integrate. – spicavigo Sep 29 '11 at 12:34