title: calling a method in which way?
body: <p>I want to make connection between two parts of my program which can be located in departed places.
  I have some choices for making this connection:</p>
  
  <ol>
  <li>using PRC/RMI: in every request a calling method will send to second part</li>
  <li>using normal function call</li>
  <li>using queue(in memory):every request will be placed in a queue and second part will get that and answer requests</li>
  <li>using queue(in DB):like number 3 but in DB</li>
  <li>using socket for sending data(TCP/IP or UDP or ...)</li>
  <li>using web service</li>
  </ol>
  
  <p>can anyone compare these available ways?</p>