<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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.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;}
-->
</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’m sorry that my last email went out as html. Here is
the text version:<o:p></o:p></p>
<p class=MsoNormal>-------------------------------------------------------------------------------------<br>
<br>
<o:p></o:p></p>
<p class=MsoNormal>I've installed spread 4.0 package and the updated
python 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> </o:p></p>
<p class=MsoNormal>Question 1<o:p></o:p></p>
<p class=MsoNormal>------------- <o:p></o:p></p>
<p class=MsoNormal>I saw an example
(http://www.onlamp.com/pub/a/onlamp/2006/11/30/lamp-and-spread.html?page=2) on
how to use spread for point to point
communication:
<o:p></o:p></p>
<p class=MsoNormal>
<o:p></o:p></p>
<p class=MsoNormal>On
machine1:
<o:p></o:p></p>
<p class=MsoNormal>Python 2.4.3 (#2, Apr 27 2006,
14:43:58)
<o:p></o:p></p>
<p class=MsoNormal>>>> import
spread
<o:p></o:p></p>
<p class=MsoNormal>>>> c = spread.connect('4804', 'testname1', 0,
0)
<o:p></o:p></p>
<p class=MsoNormal>>>> print
c.receive().message
<o:p></o:p></p>
<p class=MsoNormal>
<o:p></o:p></p>
<p class=MsoNormal>On
machine2:
<o:p></o:p></p>
<p class=MsoNormal>Python 2.4.3 (#2, Apr 27 2006,
14:43:58)
<o:p></o:p></p>
<p class=MsoNormal>>>> import
spread
<o:p></o:p></p>
<p class=MsoNormal>>>> c = spread.connect('4804', 'testname2', 0,
0)
<o:p></o:p></p>
<p class=MsoNormal>>>> c.multicast(spread.RELIABLE_MESS,
'#testname1#machine1', 'this is a point-to-point
message')
<o:p></o:p></p>
<p class=MsoNormal>
<o:p></o:p></p>
<p class=MsoNormal>Why do we have to specify <#machine1> when sending a
message from machine2. Isn’t testname1 unique identifier for message
1? or is testname1 the group and what we are saying is that send the
message to group testname1 on machine1. Is this the preferred way to do point
to point
communication?
<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Question 2<o:p></o:p></p>
<p class=MsoNormal>-------------<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’m looking to eventually migrate my application to
amazon’s ec2 cloud service. Where you can rent out compute nodes by the
hour. Will spread work in that environment. I don’t plan on having more
than 400-500 messages (max) per second cumulative between all the nodes. My
main concern with amazon’s ec2 service is that all the servers that I
rent out might not have the same broadcast service. If I’m looking to do
only point to point communication why do I even need to have a broadcast
address?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Vineet<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>
<o:p></o:p></p>
<p class=MsoNormal>Thanks,
<o:p></o:p></p>
<p class=MsoNormal>
<o:p></o:p></p>
<p class=MsoNormal>Vineet
<o:p></o:p></p>
</div>
</body>
</html>