I am writing code in C++ for a data server in Linux. I have a socket list in the form of file descriptors for all the subscriber connections. My server need to continuously send data to the subscriber. I have about 100 to 200 subscriber at max. What is the fastest way to push data to all the subscribers simultaneously? I need the data to reach the subscriber as soon as possible. I am thinking of some asynchronous methods but not sure how should I implement that. Should I just call the system asynchronous method? Or should I create multiple threads to handle each of the subscriber? Or should I implement some sort of thread pool?
Thanks.