I created a Websocket server in Python that receives data (maximum 300 bytes) from a browser, and in python when creating server/client you always use asyncio or threading, so you would be able to listen continuously while at the same time data is processed or handling other clients.
My question is it required in C++ too?
I try to make the C++ program get this data, process it, and store it, do I need to use multithreading/async for it too?
Bonus question
I on the fence between setting a separate python socket server and a socket C++ client to send the data
Or using shared memories
I was told shared memories is harder, and is more for if I need to share a lot of data very fast
But still want your opinion
Top comments (0)