<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: blocking</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/blocking.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2010-01-07T22:50:22+00:00</updated><author><name>Simon Willison</name></author><entry><title>BLPOP and BRPOP in Redis</title><link href="https://simonwillison.net/2010/Jan/7/blocking/#atom-tag" rel="alternate"/><published>2010-01-07T22:50:22+00:00</published><updated>2010-01-07T22:50:22+00:00</updated><id>https://simonwillison.net/2010/Jan/7/blocking/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://code.google.com/p/redis/wiki/BlpopCommand"&gt;BLPOP and BRPOP in Redis&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Added over Christmas—Redis now has blocking list pop operations. This means you can use Redis to drive a queue server without the need for polling—simply BLPOP against a key and, if it’s empty, your client will block until another client pushes an item on to the list. Multiple clients can block against the same key and only the first client will return when an item becomes available.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/blocking"&gt;blocking&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/queues"&gt;queues&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/redis"&gt;redis&lt;/a&gt;&lt;/p&gt;



</summary><category term="blocking"/><category term="queues"/><category term="redis"/></entry><entry><title>Loading Scripts Without Blocking</title><link href="https://simonwillison.net/2009/Apr/30/high/#atom-tag" rel="alternate"/><published>2009-04-30T19:56:33+00:00</published><updated>2009-04-30T19:56:33+00:00</updated><id>https://simonwillison.net/2009/Apr/30/high/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.stevesouders.com/blog/2009/04/27/loading-scripts-without-blocking/"&gt;Loading Scripts Without Blocking&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Steve Souders is publishing extracts from his new book, “Even Faster Web Sites”. Here’s a systematic study of different JavaScript loading methods, along with a decision tree for picking the most appropriate one for your application.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/blocking"&gt;blocking&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/loading"&gt;loading&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/performance"&gt;performance&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/steve-souders"&gt;steve-souders&lt;/a&gt;&lt;/p&gt;



</summary><category term="blocking"/><category term="javascript"/><category term="loading"/><category term="performance"/><category term="steve-souders"/></entry></feed>