background preloader

Server push

Facebook Twitter

Dklab_Realplexor: Comet-сервер промышленного масштаба с API для PHP и JavaScript. Обсудить на форуме Принять участие в разработке библиотеки/утилиты можно на GitHub. Dklab Realplexor — это Comet-сервер, позволяющий держать одновремено сотни тысяч долгоживущих открытых HTTP-соединений с браузерами пользователей. JavaScript-код, запущенный в браузере, подписывается на один или несколько каналов Realplexor-а и вешает обработчик на поступление данных. Сервер может в любой момент записать сообщение в один из таких каналов, и оно будет моментально передано всем подписчикам (хоть одному, хоть тысяче), в режиме реального времени и с минимальной нагрузкой для сервера. Хотя идейным вдохновителем Realplexor-а был предыдущий проект, dklab_multiplexor, код Realplexor-а не имеет с ним практически ничего общего. Главные преимущества Realplexor-а: простота использования: наличие API для JavaScript, API для PHP (в и для других языков); простота конфигурирования; широкий функционал (либо отстутствующий, либо недоступный напрямую в аналогах).

Лучше один раз увидеть... Установка Realplexor-а. Comet: Low Latency Data for the Browser. An old web technology is slowly being resurrected from the depths of history. Browser features that have gone untouched for years are once again being employed to bring better responsiveness to UIs. Servers are learning to cope with a new way of doing things. And I’m not talking about Ajax. New services like Jot Live and Meebo are built with a style of data transmission that is neither traditional nor Ajax. Their brand of low-latency data transfer to the browser is unique, and it is becoming ever-more common.

Lacking a better term, I’ve taken to calling this style of event-driven, server-push data streaming “Comet”. It doesn’t stand for anything, and I’m not sure that it should. Defining Comet For a new term to be useful, at a minimum we need some examples of the technology, a list of the problems being solved, and properties which distinguish it from other techniques. So what makes these apps special? Why Is Comet Better For Users? But Does It Scale? Endnotes. COMET. Welcome to CometD Project @ The Dojo Foundation | cometd.org. Specification | cometd.org. The primary purpose of Bayeux is to support responsive bidirectional interactions between web clients, for example using using AJAX, and the web server.

Bayeux is a protocol for transporting asynchronous messages (primarily over HTTP), with low latency between a web server and a web client. The messages are routed via named channels and can be delivered: server to clientclient to serverclient to client (via the server) Comet. Digg/stream - GitHub. jAndreas/Supply - GitHub.