<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_ym19_1_1507129101941_251092"><span style="font-family: verdana, sans-serif;" id="yui_3_16_0_ym19_1_1507129101941_251091">> So when to use rpc:call and when to send a message by RemotePID ! {call, procedure}? Is there any general guidelines?<br></span><span id="yui_3_16_0_ym19_1_1507129101941_251161"><br>No guidelines pretty much if you need code that requires responses from different endpoints, use RPC/custom_async_await, if you need to pass a message do that.<br><br>{:ok, ICareReply} = rpc:call(bid_node, bidder, sendBidToPolonix, [155000, 100])<br>bid_entered_in_books<br><br>DontCareReply = MarketScannerPid ! scan_market_price_and_enter_into_db<br><br><br></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, October 6, 2017 12:43 PM, Greg <silver.surfertab@gmail.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv0978230527"><div><div dir="ltr"><font face="verdana, sans-serif">So when to use rpc:call and when to send a message by RemotePID ! {call, procedure}? Is there any general guidelines?</font><div><font face="verdana, sans-serif"><br clear="none"></font></div><div><font face="verdana, sans-serif">There was these long standing debate over this <a rel="nofollow" shape="rect" target="_blank" href="http://armstrongonsoftware.blogspot.in/2008/05/road-we-didnt-go-down.html">http://armstrongonsoftware.blogspot.in/2008/05/road-we-didnt-go-down.html</a>; </font><span style="font-family:verdana, sans-serif;"> </span></div><div><div><font face="verdana, sans-serif"><br clear="none"></font></div><div><font face="verdana, sans-serif"><br clear="none"></font></div></div></div><div class="yiv0978230527yqt1468846728" id="yiv0978230527yqt40206"><div class="yiv0978230527gmail_extra"><br clear="none"><div class="yiv0978230527gmail_quote">On Fri, Oct 6, 2017 at 8:17 PM, zxq9 <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:zxq9@zxq9.com" target="_blank" href="mailto:zxq9@zxq9.com">zxq9@zxq9.com</a>></span> wrote:<br clear="none"><blockquote class="yiv0978230527gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span class="yiv0978230527">On 2017年10月06日 金曜日 10:43:48 Roger Lipscombe wrote:<br clear="none">
> On 6 October 2017 at 03:37, zxq9 <<a rel="nofollow" shape="rect" ymailto="mailto:zxq9@zxq9.com" target="_blank" href="mailto:zxq9@zxq9.com">zxq9@zxq9.com</a>> wrote:<br clear="none">
> > Thinking that the rpc module is specially useful for tests, CLI<br clear="none">
> > wrappers, or when you want to execute commands on a remote node (from<br clear="none">
> > a script or otherwise) is a bit of an odd conclusion to draw, given<br clear="none">
> > the way that the even-arity spawn_* functions work.<br clear="none">
><br clear="none">
> On occasion, we've needed to (e.g.) tweak application settings in a<br clear="none">
> remote node, at runtime, during system tests, synchronously. Sure, I<br clear="none">
> could do that with spawn_*, but that's a lot of plumbing I'd need to<br clear="none">
> write. Hey, look: someone already did; it's in the rpc module.<br clear="none">
<br clear="none">
</span>Sure. I'm not disagreeing with that.<br clear="none">
<br clear="none">
I'm disagreeing with the false notion that this is what "remote<br clear="none">
procedure call" actually means.<br clear="none">
<br clear="none">
-Craig<br clear="none">
<div class="yiv0978230527HOEnZb"><div class="yiv0978230527h5">______________________________ _________________<br clear="none">
erlang-questions mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:erlang-questions@erlang.org" target="_blank" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/ listinfo/erlang-questions</a><br clear="none">
</div></div></blockquote></div><br clear="none"></div></div></div></div><div class="yqt1468846728" id="yqt29575">_______________________________________________<br clear="none">erlang-questions mailing list<br clear="none"><a shape="rect" ymailto="mailto:erlang-questions@erlang.org" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br clear="none"><a shape="rect" href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>