title: Spark cache vs broadcast
body: <p>It looks like broadcast method makes a distributed copy of RDD in my cluster. On the other hand execution of cache() method simply loads data in memory. </p>
  
  <p>But I do not understand how does cached RDD is distributed in the cluster.</p>
  
  <p>Could you please tell me in what cases should I use <code>rdd.cache()</code> and <code>rdd.broadcast()</code> methods? </p>