I see...
My goal is to build a server cluster based on Janus, because we can't serve all our customers with only one serve. We have more than 40,000 media streams , IPC is absolutely required, so single thread is fine for us, we just start more processes and they will communicate with each other if necessary.
Indeed in single point server situation, writing all logic in a single thread may cause lacking of CPU resource. As a compromice, I suggest that we can start a fixed number (may be the number of CPU cores) of threads, these threads are used to balance the load of receiving and relaying RTP packets, we don't need to start a thread for every RTP link, I guess this should save much CPU resources when increasing the number of media streams.
Regards.
在 2018年9月7日星期五 UTC+8下午5:27:17,Lorenzo Miniero写道: