title: sequence of execution in Chef
body: <p>I'm a bit new to chef. I'm just wondering if chef resources are like node-js. </p>
  
  <p>For example, </p>
  
  <p><strong><em><code>recipe.rb</code></em></strong></p>
  
  <pre><code>resource1 'foo' do
      property value
  end
  
  resource2 'bar' do
      property value
  end
  </code></pre>
  
  <p>Consider that <code>resource1</code> is a heavy weight process and <code>resource2</code> is a light weight process. Is it possible that <code>bar</code> will be executed first and then <code>foo</code> in this case? Or will it be in sequence manner first <code>foo</code> will be executed and then <code>bar</code>.</p>