Pushlets & streamlets

xiaoxiao2021-03-06  14

JMS1.1 Provider Activemq Prefers The Streamlet Approach (A Web Streaming Mechanism) for a COwle of Reasons:

1.using Streamlets means that we use a distinct HTTP request for each send / receive which is much more friendly to web infrastructure (firewalls, proxies, caches and so forth) rather than having an infinitely-long GET.

2.can still take advantage of HTTP 1.1 keep-alive sockets and pipeline processing to gain the efficiency of a single socket used for communication between the client and server side; though in a way that works with any HTTP-capable infrastructure

3.the server is pure REST and so will work with any client side (rather than being tied to custom JavaScript function calls used on the page which the Pushlet approach requires) So Pushlets tie the server to the web page;. With streamlets we can Have a Generic Service Which Works with Any Page.

4.the client can be in control over frequency of polling & timeouts. E.g. it can avoid the memory issues of Pushlets in some browsers by using a 20-second timeout HTTP GET. Or using a zero timeout GET to poll queues.

.

6.pushlets assume the server knows what functions are used on the client side as the server basically writes JavaScript function calls down the scoket - it's better for us to send generic XML packets (or strings or whatever the message format is) and let the JavaScript Client Side Be Totally Decoupled from the Server Side

7.Streamlets Support Clean XML Support Allowing Full Xml Documents To Be Street To The Client for Rich Messages Which Arey To Process Via Standard JavaScript Dom Support

转载请注明原文地址:https://www.9cbs.com/read-45798.html

New Post(0)