Skip to main content

swan lin

Items from 51 people swan lin follows

Joel Liu
  • At twitter we're working on using Cassandra to replace our currents

    storage for all tweets. We have a cluster in production that's being

    populated outside the the user-critical path (ie, the cassandra

    writing is async).


    Additionally, we're testing and evaluating for basically everything

    else in our stack.


    We evaluated a lot of things: a custom mysql impl, voldemort, hbase,

    mongodb, memcachdb, hypertable, and others.


    -ryan
Joel Liu

Chromium Blog: Web Sockets Now Available In Google Chrome

The Web Sockets API enables web applications to handle bidirectional communications with server-side process in a straightforward way. Developers have been using XMLHttpRequest ("XHR") for such purposes, but XHR makes developing web applications that communicate back and forth to the server unnecessarily complex. XHR is basically asynchronous HTTP, and because you need to use a tricky technique like long-hanging GET for sending data from the server to the browser, simple tasks rapidly become complex. As opposed to XMLHttpRequest, Web Sockets provide a real bidirectional communication channel in your browser. Once you get a Web Socket connection, you can send data from browser to server by calling a send() method, and receive data from server to browser by an onmessage event handler. A simple example is included below.

Shared by Joel Liu, Joel Liu added annotation, 2 saves total

  • You can use Google Chrome and pywebsocket to start implementing Web Socket-enabled web applications now. We're more than happy to hear your feedback not only on our implementation, but also on API and/or protocol design. The protocol has not been completely locked down and is still in discussion in IETF, so we are especially grateful for any early adopter feedback.
Vincent Tsao
  • 从Google Chrome的developer channel释放的4.0.249.0版本开始,Web Sockets已经可用并默认开启了。Web Sockets是“网络的TCP”,它是Web Applications 1.0中下一代网络应用程序双向通信技术标准的一部分
  • 与XMLHttpRequest截然不同的的是,Web Sockets在你的浏览器里面提供一个真正的双向沟通渠道,一旦得到Web Socket连接,你就能通过直接调用send()方法从浏览器发送数据到服务器,并且使用onmessage的这个事件处理句柄接收数据
  • 1 more annotations...
Joel Liu
  • But perhaps even more problematic for Mozilla is the extension submission process. With Chrome, for the majority of extensions, once you submit them, they are instantaneously live in the Extensions Gallery. The exceptions are if they use native code or access the file system, Google reserves the right to review them (which basically amounts to the developer signing an agreement that they have no malicious intent, and sending it to Google).
Show more recent items

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo