In my application, I have a websocket thread and a main thread. Main thread does something every second and websocket thread does something when tick arrives.
However I see that the main thread completely gets blocked, when there is a burst of websocket data.
Has anyone handled this situation earlier? What is the best way to take care of this situation?