I have a python program that continuously reads radar data from 8 different radars in the network, parses the data and writes them in JSON files. Back when I was working with just 1 radar, the flow of data I would receive in my python program looked much faster than when I am working with 8 radars. What I mean by this is (I am going to give random numbers for the sake of explaining) when I worked with 1 radar, I would read 10 sentences from the radar per second whereas now that I work with 8 radars, I read about 2 sentences from each radar per second. I read data from radars in a much slower manner since parsing and writing takes time and there's more radars to work with. So I definitely parse and write the data at a slower pace than it gets created and sent through the network. That means that at some point my socket buffer will overflow, right? Is there a way to check if it ever overflows? And if it does, how can I fix this problem? Would I need a virtual machine per 'x' number of radars? Are there other fixes?
Thanks.