I have c++ api that its job is connect to some server , this is the only way I can connect to this server via this c++ lib
Now. I need to be able to let users to register to web site done in php ( already done no problem here )
For each user I need to run this c++ lib to perform some tasks for the user and return results to the front end (php).
My main question is how to invoke this lib from say Apache server to the back end end back to the front end
Do I need to setup application server in the back to perform the tasks, remember many users could ask for this service?
Thanks
I have c++ api that its job is connect to some server , this
Share
You could enter these tasks into a job system or queue, such as Gearman. Jobs can be ran synchronously (get the results immediately) or asynchronously (for tasks that take a while and don’t need an immediate result sending back to the visitor).