新しいコンセプトを勉強した。
- Reverse Ajax
- Comet Queryies
Reverse Ajaxの意味はAjaxianからの説明を見れば分かると思う。
The big new feature is Reverse Ajax: DWR 1.x allowed you to asynchronously call Java code from Javascript. DWR 2.0 builds on this to allow you to asynchronously call Javascript code from Java. Reverse Ajax makes writing interactive applications much easier. Reverse Ajax makes writing interactive applications much easier. It can use polling or Comet (long-lived HTTP) queries.
「Comet Queryies」について、名前のとおり彗星のようないつも生きているHTTPコネクションだ。英語の説明はここに書いてある。
Comet applications can deliver data to the client at any time, not only in response to user input. The data is delivered over a single, previously-opened connection. This approach reduces the latency for data delivery significantly.
AJAXとの主な違いは二点ある。
- ブラウザの操作を反応する(AJAX)だけでなく、サーバーからブラウザにプッシュする(push)ことができる。最初にwebプログラミングをはじめた時に勉強してきたものと全然違うけど。。。
- ブラウザとのやりとりは一つのHTTPコネクションの中で行うこと
文の最後、刺激的な話があった:
The future of the read-write web is multi-user. There is life after Ajax.