Wednesday, December 19, 2018

Multithreaded or Singlethreaded UDP SFU ?

I'm currently working on a UDP SFU for VOIP. Essentially, a SFU will handle multiple calls at once, receive audio packets from clients over UDP, and forward them to another client.

Since UDP is connectionless, it would be nice to process everything in the same thread, basically just receiving queued packets, performing a lookup of the session ID, and forwarding to the correct user.

However, is multithreaded UDP worth looking into? (Multithreaded in the sense that new threads are spawned to process incoming packets and respond to the clients). The problem is, the server needs to handle a huge amount of requests/second since it's audio transfer.

What is the recommended approach here?



No comments:

Post a Comment