<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: plurk</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/plurk.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2010-02-03T00:37:34+00:00</updated><author><name>Simon Willison</name></author><entry><title>Comet (long polling) for all browsers using ScriptCommunicator</title><link href="https://simonwillison.net/2010/Feb/3/scriptcommunicator/" rel="alternate"/><published>2010-02-03T00:37:34+00:00</published><updated>2010-02-03T00:37:34+00:00</updated><id>https://simonwillison.net/2010/Feb/3/scriptcommunicator/</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://amix.dk/blog/post/19489#ScriptCommunicator-implementing-comet-long-polling-for-all-browse"&gt;Comet (long polling) for all browsers using ScriptCommunicator&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
More Comet from the Plurk team: 80 lines of dependency free JavaScript implementing long polling using script tags (hence working cross-domain) across IE6+, Firefox, WebKit and Opera. The clever bit is the code to detect loading errors. It doesn’t try to fix the infinite loading indicator problem—is that still a cromulent usability concern?


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/comet"&gt;comet&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/long-polling"&gt;long-polling&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/plurk"&gt;plurk&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/usability"&gt;usability&lt;/a&gt;&lt;/p&gt;



</summary><category term="comet"/><category term="javascript"/><category term="long-polling"/><category term="plurk"/><category term="usability"/></entry><entry><title>Distributed lock on top of memcached</title><link href="https://simonwillison.net/2010/Feb/1/distributed/" rel="alternate"/><published>2010-02-01T10:15:02+00:00</published><updated>2010-02-01T10:15:02+00:00</updated><id>https://simonwillison.net/2010/Feb/1/distributed/</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://amix.dk/blog/post/19386"&gt;Distributed lock on top of memcached&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
A simple Python context manager (taking advantage of the with statement) that implements a distributed lock using memcached to store lock state: “memcached_lock can be used to ensure that some global data is only updated by one server”. Redis would work well for this kind of thing as well.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/concurrency"&gt;concurrency&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/contextmanager"&gt;contextmanager&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/locking"&gt;locking&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/memcached"&gt;memcached&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/plurk"&gt;plurk&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/redis"&gt;redis&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/with"&gt;with&lt;/a&gt;&lt;/p&gt;



</summary><category term="concurrency"/><category term="contextmanager"/><category term="locking"/><category term="memcached"/><category term="plurk"/><category term="python"/><category term="redis"/><category term="with"/></entry><entry><title>Plurk: Instant conversations using Comet</title><link href="https://simonwillison.net/2010/Feb/1/plurk/" rel="alternate"/><published>2010-02-01T10:13:14+00:00</published><updated>2010-02-01T10:13:14+00:00</updated><id>https://simonwillison.net/2010/Feb/1/plurk/</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://amix.dk/blog/post/19490"&gt;Plurk: Instant conversations using Comet&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Plurk’s comet implementation sounds pretty amazing. They’re using a single quad-core server with 32GB of RAM running 8 Node.js instances to serve long-polled comet to 100,000+ simultaneous users. They switched to Node from Java JBoss/Netty and found the new solution used 10 times less memory.

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="http://news.ycombinator.com/item?id=1088699"&gt;Hacker News&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/comet"&gt;comet&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/java"&gt;java&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/jboss"&gt;jboss&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/netty"&gt;netty&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/nodejs"&gt;nodejs&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/plurk"&gt;plurk&lt;/a&gt;&lt;/p&gt;



</summary><category term="comet"/><category term="java"/><category term="javascript"/><category term="jboss"/><category term="netty"/><category term="nodejs"/><category term="plurk"/></entry></feed>