Best practice to start a external process and interact via udp with it. (all in one GenServer?)

I am learning currently Elixir.
I want to start a external process and interact with it via udp.
Currently I set up a GenServer to start the process using a Port.And than I found an implementation that sets up a separate GenServers one to send to an udp-port and one to listen to an udp-port. (https://github.com/jwarwick/ex_osc/tree/master/lib/ex_osc)
To me it seems not very helpful to have three separate processes to interact with one external process. (especially because I want later to be able to use more than one instance of that process)
Is there any good reason to not setup a GenServer that starts a process and sends and listens to to a udp-port?

1 Like