In previous email diagram got messed up.  Here is the better one:<br><br>                                              (3)            <br>    |-----------------<-----------------------------|<br>   v                                                                              ^<br>
python_client -                                           -> c++_server<br>                            -(1)                             (2) -<br>                             -                                     -<br>                               ->    gen_leader   -<br>
                             -                                    -        <br>                            -(1)                             (2) -<br>python_client -                                             -> c++_server<br>
   ^                                                                               v<br>    |----------------<------------------------------|<br>                                                    (3)<br><br>1) python_client makes a request<br>
2) gen_leader passes the request to one of the worker process<br>3) c++_server then replies backs synchronously back to python_client<br><br><div class="gmail_quote">On Tue, Mar 25, 2008 at 7:18 PM, db <<a href="mailto:masterofquestions@gmail.com">masterofquestions@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I need to load balance c++_server and thinking about using gen_leader.  My setup would be the following:<br>
<br><br>            (3)            <br>    |-----------------<---------------------|<br>    v                    ^<br>
python_client -                     -> c++_server<br>           -(1)           (2) -<br>        -              -<br>          ->    gen_leader   -<br>        -              -        <br>           -(1)           (2) -<br>

python_client -                -> c++_server<br>    ^                    v<br>    |----------------<----------------------|<br>            (3)<br><br>1) python_client makes a request<br>2) gen_leader passes the request to one of the worker process<br>

3) c++_server then replies backs synchronously back to python_client<br><br>question:<br><br>1) How can I get erlang(gen_leader) to communicate with c++_server?<br>2) Any hint on how I can get python_client to talk to gen_leader?<br>

3) Does gen_leader support synchronous request/reply kind of behaviour?<br clear="all"><font color="#888888"><br>-- <br>rk<br><br>That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased.<br>

-Ralph Waldo Emerson
</font></blockquote></div><br><br clear="all"><br>-- <br>rk<br><br>That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased.<br>
-Ralph Waldo Emerson