Author Archives: simon

Jetty-SPDY blogged

Jos Dirksen has written a nice blog about Jetty-SPDY, thanks Jos ! In the upcoming Jetty 7.6.3 and 8.1.3 (due in the next days), the Jetty-SPDY module has been enhanced with support for prioritized streams and for SPDY push (although the latter only available via the pure SPDY API), and we have fixed a few bugs that we spotted and … Continue reading

Posted in Jetty | 1 Comment

SPDY support in Jetty

SPDY is Google’s protocol that is intended to improve user experience on the web, by reducing the latency of web pages, sometimes up to a factor of 3. Yes, three times faster. How does SPDY accomplish that ? SPDY reduces roundtrips with the server, reduces the HTTP verboseness by compressing HTTP headers, improves the utilization of the TCP connection, multiplexes … Continue reading

Posted in Jetty | 12 Comments

WebSocket over SSL in Jetty

Jetty has always been in the front line on the implementation of the WebSocket Protocol. The CometD project leverages the Jetty WebSocket implementation to its maximum, to achieve great scalability and minimal latencies. Until now, however, support for WebSocket over SSL was lacking in Jetty. In Jetty 7.6.x a redesign of the connection layer allows for more pluggability of SSL … Continue reading

Posted in cometd, Jetty, WebSockets | Tagged , , | 6 Comments

CometD, Dojo and XDomainRequest

The CometD project implements various Comet techniques to implement a web messaging bus. You can find an introduction to CometD here. Web applications often need to access resources residing on different servers, making the request to access those resources a cross origin request and therefore subject to the same origin policy. Fortunately, all modern browsers implement the Cross Origin Resource … Continue reading

Posted in cometd | Tagged , , , , | 5 Comments

CometD and Opera

The Opera browser is working well with the CometD JavaScript library. However, recently a problem was reported by the BlastChat guys: with Opera, long-polling requests were strangely disconnecting and immediately reconnecting. This problem was only happening if the long poll request was held by the CometD server for the whole duration of the long-polling timeout. Reducing the long-polling timeout from … Continue reading

Posted in cometd | Tagged , | 2 Comments

CometD 2.4.0 WebSocket Benchmarks

Slightly more than one year has passed since the last CometD 2 benchmarks, and more than three years since the CometD 1 benchmark. During this year we have done a lot of work on CometD, both by adding features and by continuously improving performance and stability to make it faster and more scalable. With the upcoming CometD 2.4.0 release, one … Continue reading

Posted in cometd | Tagged , , | 4 Comments

CometD 2.4.0.beta1 Released

CometD 2.4.0.beta1 has been released. This is a major release that brings in a few new Java API (see this issue) – client-side channels can now be released to save memory, along with an API deprecation (see this issue) – client-side publish() should not specify the message id. On the WebSocket front, the WebSocket transports have been overhauled and made … Continue reading

Posted in Jetty | Tagged , , , , , , | 1 Comment

CometD JSON library pluggability

It all started when my colleague Joakim showed me the results of some JSON libraries benchmarks he was doing, which showed Jackson to be the clear winner among many libraries. So I decided that for the upcoming CometD 2.4.0 release it would have been good to make CometD independent of the JSON library used, so that Jackson or other libraries … Continue reading

Posted in cometd, Jetty | Tagged , , , , | 2 Comments

CometD Message Flow Control with Listeners

In the last blog entry I talked about message flow control using CometD‘s lazy channels. Now I want to show how it is possible to achieve a similar flow control using specialized listeners that allow to manipulate the ServerSession message queue. The ServerSession message queue is a data structure that is accessed concurrently when messages are published and delivered to … Continue reading

Posted in cometd | Tagged | 1 Comment

CometD Codemotion Slides

The Codemotion conference slides of my talk on Comet and WebSocket web applications are available here: slideshare, download.

Posted in cometd | Tagged , , | Leave a comment