Here I have attached the complete solution that can handle millions of websockets connections and can read huge log files without any hinderance. This solution is accepted in BrowserStack and you can use the same concepts for other usecase also. Do check it out !!