[erlang-questions] Two beautiful programs - or web programming made easy
Sat Feb 12 15:34:40 CET 2011
Zotonic switches between a long polling comet connection and websockets depending on the capabilities of the browser.
By the way, websockets is not broken. Some proxies are broken.
On 12 feb 2011, at 14:03, Joe Armstrong wrote:
> As I see it the web is predominantly built with one concurrency pattern.
> A client (web browser) can do an RPC to a server
> We can't (easily)
> do an RPC from the server to the client
> send an asynchronous message from server to client
> send an asynchronous message from the client to the server
> Of these four concurrency patterns three are crippled.
> Instant messageing, for example,is trivial if you can push messages to a
> Turning web sockets off for security reasons is stupid.
> The solution is to sandbox the thing that receives the messages
> or if unsandboxed strongly authenticate the messages.
More information about the erlang-questions