<div dir="ltr">This makes sense, Rickard. Thank you for your clarification for what the <span style="color:rgb(77,81,86);font-family:arial,sans-serif;font-size:14px">± 2 releases of distribution also covers the infra-node message protocols.</span><div><span style="color:rgb(77,81,86);font-family:arial,sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(77,81,86);font-family:arial,sans-serif;font-size:14px">Best,</span></div><div><span style="color:rgb(77,81,86);font-family:arial,sans-serif;font-size:14px">r.</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 14, 2021 at 4:23 PM Rickard Green <<a href="mailto:rickard@erlang.org">rickard@erlang.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 13, 2021 at 10:56 PM Roberto Ostinelli <<a href="mailto:ostinelli@gmail.com" target="_blank">ostinelli@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">All,<div>I'm writing a distributed library that I would like to be compatible with clusters running multiple OTP versions. I am aware that backwards compatibility for the distribution protocol is only promised for two major releases in either direction, but that's already pretty significant.<br><br>Therefore, for instance maybe I should avoid using gen_server:call/2,3 to call processes running on a different node with something like gen_server:call({?MODULE, RemoteNode}, Message).</div><div><br></div><div>My thinking is that the internal call message format of gen_server is an internal implementation detail subject to change, thus it might be incompatible on different OTP versions, and if this is the case then the previous call would fail.</div><div> </div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>However, it's a pity to not use the robust usage of standard API calls. On the other hand, it does not look like this message format has changed recently, so maybe I'm just overthinking it and should just use gen_server:call/2,3 without fear of breaking anything.</div><div><br></div><div>I'd like to hear some thoughts, if someone would like to chime in.</div><div><br></div><div>Thanks,</div><div>r.</div></div>
</blockquote></div><br clear="all"></div><div>We don't make changes in the gen_server protocol which will cause failures to communicate with OTP nodes of +-2 releases. Communicating with nodes +-3 releases might fail. This is also the case if you implement your own protocol if it utilize the Erlang distribution. That is, I see no point in implementing your own protocol unless you also stop using the Erlang distribution all together. It is not safe to connect Erlang nodes over the Erlang distribution that differs more than 2 releases. Safe in the sense that you might get communication failures in other subsystems even though your protocol might work.<br></div><div><br></div><div>Regards,</div><div>Rickard<br></div><div>-- <br><div dir="ltr">Rickard Green, Erlang/OTP, Ericsson AB</div></div></div>
</blockquote></div>