Since cloud instance is just a machine hosted remotely it should be able to behave like a local server. I have written some programs in C++ which I usually call in a PHP file through exec() function on my Windows 10 server.
For instance, I save the program to htdocs
in the same folder and compile it and then PHP gets the data through frontend, does some logic and writes it to text file. Then it launches the C++ program like exec("main.exe")
, C++ reads the data in that text file and does the final logic.
How can I do this on cloud service like AWS Elastic Beanstalk?