<div dir="ltr">Hi Shiva,<div><br></div><div>By "single static function" I assume you mean a regular function in Erlang, right?</div><div><br></div><div>All functions in Erlang are executed in a process, each gen_server is a process, so if you simply call the function from within the gen_server it will be executed in that process.</div><div><br></div><div>You mention using a pool, so I sense that there is an additional requirement that you are not articulating.</div><div><br></div><div>Cheers,</div><div>Torben </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 6 Apr 2021 at 08:50, shiva gattu <<a href="mailto:shiva.krishna17892@gmail.com">shiva.krishna17892@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all, <div>   </div><div>      If multiple gen_server processes are sending multiple messages to a single static function. The static function will execute all messages without loss of a single message ? </div><div><br></div><div>     Is there any method to do that like using a pool? </div><div><br></div><div>     My requirement is multiple processes will send multiple messages to one function, that function will send that messages to the web. </div><div><br></div><div>What is a simple way to do this?</div><div><br></div><div>Regards,</div><div>Shiva<br clear="all"><div><br></div><br></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><a href="http://www.linkedin.com/in/torbenhoffmann" target="_blank">http://www.linkedin.com/in/torbenhoffmann</a><br></div>@LeHoff<br></div></div>