<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";
        color:#003366;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        background:#EFEFEF;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        background:#EFEFEF;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:480775408;
        mso-list-type:hybrid;
        mso-list-template-ids:948834298 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>I&#8217;ve installed spread 4.0 package and the updated
python &nbsp;module and everything seems to be working fine. I have a grid of
about 20 compute nodes each running about 4 different services. Each service
runs an event loop and I was thinking of using spread as the messaging layer
between the services on the different hosts. <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I saw an example (<a
href="http://www.onlamp.com/pub/a/onlamp/2006/11/30/lamp-and-spread.html?page=2">http://www.onlamp.com/pub/a/onlamp/2006/11/30/lamp-and-spread.html?page=2</a>)
on how to use spread for point to point communication:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>On machine1:<o:p></o:p></p>

<p class=MsoNormal style='background:#EFEFEF'><span style='font-size:10.0pt;
font-family:"Courier New";color:#003366'>Python 2.4.3 (#2, Apr 27 2006,
14:43:58) <o:p></o:p></span></p>

<p class=MsoNormal style='background:#EFEFEF'><span style='font-size:10.0pt;
font-family:"Courier New";color:#003366'>&gt;&gt;&gt; import spread<o:p></o:p></span></p>

<p class=MsoNormal style='background:#EFEFEF'><span style='font-size:10.0pt;
font-family:"Courier New";color:#003366'>&gt;&gt;&gt; c =
spread.connect('4804', 'testname1', 0, 0)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:#003366'>&gt;&gt;&gt; print c.receive().message<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:#003366'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:#003366'>On machine2:<o:p></o:p></span></p>

<pre><code>Python 2.4.3 (#2, Apr 27 2006, 14:43:58) <o:p></o:p></code></pre><pre><code>&gt;&gt;&gt; import spread<o:p></o:p></code></pre><pre><code>&gt;&gt;&gt; c = spread.connect('4804', 'testname2', 0, 0)<o:p></o:p></code></pre><pre><code>&gt;&gt;&gt; c.multicast(spread.RELIABLE_MESS, '#testname1#machine1', 'this is a point-to-point message')</code><o:p></o:p></pre>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Why do we have to specify &lt;#machine1&gt; when sending a
message from machine2. Isn&#8217;t testname1 unique identifier for message 1? <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>or is testname1 the group and what we are saying is that
send the message to group testname1 on machine1. Is this the preffered way to
do point to point communication? <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thanks,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Vineet<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>