title: How to serialize NodeJS?
body: <p>I'm exploring server side JavaScript with NodeJS and writing REST APIs with ExpressJS.  My REST API is for configuring a device, much like configuring your home router.  I would like to prevent parallel REST calls from attempting to configure the client without preventing multiple non-config requests.</p>
  
  <p>Example API resources:</p>
  
  <pre><code>/api/config/network
  /api/config/filesystem
  </code></pre>
  
  <p>In my example API, conceptually I'd like one client to be able to configure the network resource while another client configures the file system resource, while allowing other clients to query those resources.</p>
  
  <p>I'm not sure how to accomplish this with JavaScripts asynchronous programming model.  I come from a non-asynchronous programming background (multi-threaded C++).  I am having trouble wrapping my head around this problem and wondering what ways one can solve this problem by hand, what if I had to write the plugin/module?.</p>