reverse-ajax

Can XMPP be used like Comet's http long wait?

半腔热情 提交于 2019-12-06 00:18:34
问题 Can XMPP be applied in a similar way to the reverse Ajax pattern? Can it be used to implement http long wait like Comet? Is there an example of using such a technique with XMPP? 回答1: Yes. Take a look at XMPP over BOSH. It's a long-lived non-polling technique. From the BOSH specification: This specification defines a transport protocol that emulates the semantics of a long-lived, bidirectional TCP connection between two entities (such as a client and a server) by efficiently using multiple

PHP + Comet (long-polling) scaling / hosts

寵の児 提交于 2019-12-04 22:32:22
问题 I have developped an application using PHP/MySQL which used comet technology, presicely long-polling. The proof of concept works great, but I am expecting traffic to quickly reach thousands of simultanous connections = thousands of open connections on the webserver. I do not have the ability to setup my own server (e.g. using lighttpd), and usually rely on simple 5$/month PHP hostings for other web projects. However, I realize those won't do the trick as they are not meant to support such a

AJAX/Reverse AJAX: Polling or Push?

痞子三分冷 提交于 2019-12-04 21:20:33
问题 Been studying a ton on AJAX because I'm making a real-time application out of Javascript and PHP. It needs to be able to update without refreshing the page and in real-time. I tried polling the server with setInterval() but for it to be quick I had to have it every second. It seems to be using a ton of bandwidth though. It does work however and I have a plan with my hosting provider for 'unlimited bandwidth'. It seems like a lot of stress on the site though so I wanted to use a Push

Broadcasting to a subset of subscribers in Atmosphere

我与影子孤独终老i 提交于 2019-12-04 15:51:56
What I'm trying to do: Be able to have users subscribed to a number of different 'chat rooms' and use reverse AJAX / comet to send messages from a chat room to everyone logged into that room. (a bit more complicated but this is a similar use case). What I'm doing: Using Grails with JMS and Atmosphere. When a message is sent, I'm using JMS to send the message object which is received by a Grails service which is then broadcasted to the atmosphere URL (i.e. atmosphere/messages). Obviously JMS is a bit redundant there but I though I could use it to help me filter who should retrieve the message

Can XMPP be used like Comet's http long wait?

不问归期 提交于 2019-12-04 06:42:08
Can XMPP be applied in a similar way to the reverse Ajax pattern? Can it be used to implement http long wait like Comet ? Is there an example of using such a technique with XMPP? Yes. Take a look at XMPP over BOSH . It's a long-lived non-polling technique. From the BOSH specification : This specification defines a transport protocol that emulates the semantics of a long-lived, bidirectional TCP connection between two entities (such as a client and a server) by efficiently using multiple synchronous HTTP request/response pairs without requiring the use of frequent polling or chunked responses.

PHP + Comet (long-polling) scaling / hosts

不羁岁月 提交于 2019-12-03 14:25:23
I have developped an application using PHP/MySQL which used comet technology, presicely long-polling. The proof of concept works great, but I am expecting traffic to quickly reach thousands of simultanous connections = thousands of open connections on the webserver. I do not have the ability to setup my own server (e.g. using lighttpd), and usually rely on simple 5$/month PHP hostings for other web projects. However, I realize those won't do the trick as they are not meant to support such a high number of simultanous open connections. What are my other options? I could not find any host

AJAX/Reverse AJAX: Polling or Push?

依然范特西╮ 提交于 2019-12-03 13:50:21
Been studying a ton on AJAX because I'm making a real-time application out of Javascript and PHP. It needs to be able to update without refreshing the page and in real-time. I tried polling the server with setInterval() but for it to be quick I had to have it every second. It seems to be using a ton of bandwidth though. It does work however and I have a plan with my hosting provider for 'unlimited bandwidth'. It seems like a lot of stress on the site though so I wanted to use a Push technology. Learning how to setup Push was extremely difficult. From what I managed to figure out, you have to

Comet, Ajax Push, Reverse Ajax

℡╲_俬逩灬. 提交于 2019-12-03 13:07:35
问题 Someone have any sample of Comet app .net? I need one sample how to persist connection of client in server? 回答1: Here are some good ones too: http://www.frozenmountain.com/websync/demos 回答2: Here are two nice and scalabe examples: example 1 example 2 Update Be sure to take a look at SignalR 回答3: There are many sample projects for ASP.NET HERE 来源: https://stackoverflow.com/questions/2601893/comet-ajax-push-reverse-ajax

Difference between async servlet long poll and bayeux protocol (Comet)

梦想与她 提交于 2019-12-03 06:20:45
问题 What is the difference between a simple Async servlet and the Comet / Bayeux protocol? I am trying to implement a "Server Push" (or "Reverse Ajax") kind of webpage that will receive updates from the server as and when events occur on the server. So even without the client explicitly sending a request, I need the server to be able to send responses to the specific client browser. I understand that Comet is the umbrella term for these kind of technologies; with 'Bayeux' being the protocol. But

Reverse Ajax + JSP-Servlet

此生再无相见时 提交于 2019-11-30 16:28:20
We are trying to create a reverse ajax in our project. I've checked on the net and didn't find something concrete. I was unable to run any of the tutorials provided successfully. My object is: to provide on-screen alerts (like a pop-up) when ever there is an even pushed from the server (it could be high cpu usage/ram, anything). The HTTP protocol (fortunately, after all) doesn't support PUSH, so it stops there. Best what you can do is to let the client fire ajax poll requests at timed intervals I can recommend jQuery.ajax() in combination with setInterval() for this. Alternatively (and with a