SitePen Blog Category ‘Cometd’

Using REST Channels with cometD June 15th, 2009 at 1:02 am by Kris Zyp

REST Channels provides a mechanism for receiving notifications of data changes and integrates Comet-style asynchronous server sent messages with a RESTful data-oriented architecture. Dojo includes a REST Channels client module which integrates completely with Dojo’s JsonRestStore, allowing messages to be delivered through the Dojo Data API seamlessly to consuming widgets, with minimal effort. The REST Channels module will automatically connect to a REST Channels server, like Persevere (which offers REST Channels out of the box). However, existing infrastructure may necessitate the use of an alternate Comet server like Jetty’s cometD server. REST Channels can be used on top of another Comet protocol like Bayeux’s long-polling protocol and with a little bit of reconfiguration, you can use Dojo’s REST Channels with a cometD server to achieve Comet-REST integration.

(more…)

Stocker: Advanced Dojo Made Easy April 1st, 2009 at 4:41 pm by Mike Wilcox

SitePen is excited to announce Stocker, which demonstrates some of the more advanced capabilities of Dojo, including the newly released DataChart, the DataGrid, Data Store, Comet, Persevere, and BorderContainer. SitePen is also offering a one-day workshop where you will learn how to create Stocker yourself, but I’m here to give you a sneak peak of what Stocker is and how it works.

Stocker uses these technologies to emulate a stock monitoring application. We’re using made up data, but that’s actually more interesting. The Persevere server generates new stock items at certain intervals, and then pushes them to the browser with Comet. Then the Data Store updates its items and triggers an onSet notification. The DataGrid and DataChart are both connected to the same store, and are listening to that event. They then update their displays and show the stock items and their latest data.

Stocker

(more…)

A Tale of Two Panels February 25th, 2009 at 1:02 am by Dylan Schiemann

Silicon Valley Web Builder has a series of monthly panels on topics of interest to web application developers. I had the opportunity to attend a pair of events recently, once as a speaker, once as an attendee, and the contrast between the two was intriguing. The first panel in November was focused on Comet, while the most recent panel was a comparison of Ajax toolkits.

As an attendee of the Comet panel, I found the discussion interesting, but was a bit disheartening and negative. In retrospect, the negative tone reflects the pain and disappointment Comet engineers face in trying to come up with the perfect solution for low-latency data transit across the wire. Michael Carter was the lone optimist, describing the work he has done to date with Orbited, and what the HTML5 WebSocket promises to bring us in the near future. The other panelists were not as optimistic, having been burned by specifications not adopted and the ongoing frustrations with HTTP connection limits, proxy configurations, flaky internet connections, and more—all of which prevent many of the better approaches to Comet being viable.

(more…)

The Tech of SitePen Support August 19th, 2008 at 12:01 am by Kevin Dangoor

SitePen’s Support service is built using a variety of interesting techniques and technologies. Read on to see how we built a system that treats the web browser as a real client tier and bridges the worlds of JavaScript, Python and PHP seamlessly to provide a great experience for our customers.

(more…)

Client/Server Model on the Web July 18th, 2008 at 7:48 am by Kris Zyp

Prior to the popularity of the web, client/server applications often involved the creation of native applications which were deployed to clients. In this model, developers had a great deal of freedom in determining which parts of the entire client/server application would be in the client and which in the server. Consequently, very mature models for client/server development emerged, and often well designed optimal distribution of processing and logic could be achieved. When the web took off, the client was no longer a viable application platform, it was really more of a document viewer. Consequently the user interface logic existed almost entirely on the server. However, the web has matured substantially and has proven itself to be a reasonable application platform. We can once again start utilizing more efficient and well-structured client/server model design. There are certainly still technical issues, but we are in a position to better to build true client/server applications now.

(more…)

Comet and Java May 22nd, 2008 at 6:04 am by Joe Walker

One of the difficulties implementing Comet on Java is the lack of any acknowledgement in the current Servlet spec (v2.5) that any HTTP connection may be anything other than short-lived. Unlike many of the other components in the JavaEE stack, servlets are ubiquitous so we don't really have a choice to use an alternative.

Servlet version 3.0 is in the works, several of the people that blog at Comet Daily are on the Servlet spec expert group and want to see this oversight fixed, but it will be a while before the spec is done, and even longer before we can rely on it’s support everywhere.

(more…)

The Latest from SitePen Labs May 13th, 2008 at 12:01 am by Dylan Schiemann

We’re pleased to announce the two latest projects from SitePen Labs: Paver and Persevere!

(more…)

Everyone can “Ask the Experts” May 11th, 2008 at 10:30 pm by Kevin Dangoor

In March, we introduced the SitePen Support service to provide high-quality support for Dojo, DWR and Cometd from the people who know those projects inside and out.

We’re always watching to see how we can make our services better and after listening to our early support clients we’re making changes to ensure that clients are successful with the products we support.

(more…)

Which Comet Implementation? March 27th, 2008 at 12:15 pm by Dylan Schiemann

As people are becoming more interested in Comet, “which Comet implementation should I use?” is becoming a common question.

At Comet Daily, we recently had a post comparing the maturity of various Comet implementations. From this, we came up with the idea of a Comet Comparison Guide to make it easy to learn about the major differences between implementations. We still have to add information about the Comet servers not developed by the contributors to Comet Daily. Once finished, we hope to have the definitive source for quickly comparing the options available for implementing Comet.

Now Available: Commercial Support for the Dojo Toolkit, DWR, and Cometd March 14th, 2008 at 3:54 pm by Dylan Schiemann

We’re very excited about our new commercial support offering for the Dojo Toolkit, DWR, and Cometd. So what is SitePen Support and what do we have to offer?

Advice

When getting started with something different or new, there’s rarely documentation or a tutorial that addresses things in quite the right way. As such, we offer unlimited advice as part of most of our support packages. This is especially useful when you don’t quite know the right question to ask, or what the best approach is to solve a problem.

(more…)