(A) Biggest issue: My (mis)understanding that comet sufferred from the 'one connection/one thread' problem. I see from Kris Zyp's response on http://cometdaily.com/2007/12/10/comet-gazing-scaling/ that with the Tomcat comet interface, this is decoupled, so that the number of connections can can scale independently of the number of threads. Are there any working examples of the Tomcat comet processor scaling to 10's of 1,000s of connections?

(B) Zyp [http://cometdaily.com/2007/12/10/comet-gazing-scaling/] states
"... the difficulty of horizontally scaling...
implementing a publish/subscribe type Comet mechanism on Tomcat that scales efficiently across multiple machines would require significant effort to properly route and distribute messages effectively."
What is the status on this?  Our target is to run in a cluster.

(C) Besides the chat pseudo-code at http://tomcat.apache.org/tomcat-6.0-doc/aio.html , are there other available examples?

(D) The description at http://wiki.apache.org/tomcat/WhatIsComet sounds very similar /in spirit/ to the implementation of JMS over AJAX in activeMQ (http://activemq.apache.org/ajax.html)? Any thoughts?

On Jun 26, 2008, at 5:33 PM, Filip Hanik - Dev Lists wrote:

Ken Bowen wrote:
Hi All,

I'm working on a project which has developed a need to push data from the server to browsers. In the short term, the numbers of browsers will be moderate, but in the long term, it appears that we will need to scale up to very large numbers, so the 'one thread per connection' issues
of Comet and Pushlets will become significant.

1) Clearly using NIO will help. My understanding is that NIO works ok with Tomcat 6; is this correct?
Can it also be used in 5.5?
unfortunately not, and a backport is not on the horizon

2) Is there any analogue of Jetty 6 Continuations available in Tomcat? They sound like a good mechanism for this problem. Does anyone on the list have any experience with them?
Tomcat has a CometProcessor interface, which is a step further than continuations. Allows you to decouple the connection from the thread and writing to the response in an async manner

More generally, does anyone have experience with a solution to our problem (large-scale pushes from server to browser)?
sure do, just let us know what questions you might have

Filip

Thanks in advance,
Ken Bowen


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to