I would like to build a dashboard to show analysers data. They are very dynamic in nature and i would like to have it updated in realtime. I am thinking of using websocket for sending data from webserver to client.
But, currently C++ is used to communicate between the analysers. How can I communicate with C++ and send the data to client effortlessly ? I think database will be a big no due to processing time and same issue with shared memory. Though of using memcached since we can share data easily over languages but there is no trigger upon new data and once again its ending up like shared memory.
We planned to use sockets to communicate between C++ and PHP. In this case C++ will act as server and PHP as client and then PHP should forward data to client using websocket ( Rachet ).
Since I am just familiar with basic concepts of PHP, I just wanted to know is there any good way to get data from C++ and top show on client ?
Should I need threading here to read from c++ and to send to client.
Open to all suggestions from other frameworks, libraries etc., as we prefer using them than building from scratch.
I have done my homework using google but I am ending up with not exact solution or really getting lost.